Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 111.8 kB / 16.63 MB, free: 6.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 193.8 kB / 17.55 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1738/0.1738, allocations: 38.03 MB / 329.4 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001466, allocations: 63.5 kB / 398.4 MB, free: 34.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09093/0.09241, allocations: 58.07 MB / 456.5 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.008319/0.1008, allocations: 6.213 MB / 462.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006534/0.1074, allocations: 4.423 MB / 467.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000599/0.108, allocations: 31.81 kB / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01907/0.1271, allocations: 4.909 MB / 472 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000843/0.1279, allocations: 326.6 kB / 472.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006032/0.1286, allocations: 227.6 kB / 472.6 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001879/0.1305, allocations: 1.602 MB / 474.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006057/0.1311, allocations: 400.2 kB / 474.6 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005216/0.1316, allocations: 378.5 kB / 474.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008562/0.1325, allocations: 478.2 kB / 475.4 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002128/0.1327, allocations: 48 kB / 475.5 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004557/0.1332, allocations: 119.8 kB / 475.6 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000421/0.1336, allocations: 283.3 kB / 475.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005916/0.1342, allocations: 314.4 kB / 476.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008791/0.1351, allocations: 0.7553 MB / 476.9 MB, free: 3.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1351, allocations: 0 / 476.9 MB, free: 3.781 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1351, allocations: 0 / 476.9 MB, free: 3.781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.658e-05/0.1352, allocations: 0 / 476.9 MB, free: 3.781 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001803/0.137, allocations: 0.9017 MB / 477.8 MB, free: 2.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.137, allocations: 11.89 kB / 477.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001358/0.1372, allocations: 90.69 kB / 477.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004603/0.1376, allocations: 92.06 kB / 478 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009591/0.1386, allocations: 0.533 MB / 478.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.08e-05/0.1386, allocations: 40.92 kB / 478.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.701e-05/0.1387, allocations: 44 kB / 478.6 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009189/0.1397, allocations: 0.6531 MB / 479.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.1397, allocations: 3.938 kB / 479.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.609e-05/0.1397, allocations: 20 kB / 479.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001282/0.1399, allocations: 48.97 kB / 479.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007346/0.1406, allocations: 499.6 kB / 479.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003168/0.1438, allocations: 2.535 MB / 482.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000448/0.1443, allocations: 311.6 kB / 482.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002391/0.1445, allocations: 186.5 kB / 482.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.44e-05/0.1445, allocations: 8.438 kB / 482.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.1446, allocations: 38.56 kB / 482.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.583e-06/0.1446, allocations: 0 / 482.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002321/0.1469, allocations: 1.626 MB / 484.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.147, allocations: 111 kB / 484.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003991/0.1474, allocations: 425.8 kB / 485 MB, free: 11.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.1474, allocations: 29.7 kB / 485.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.1476, allocations: 319.5 kB / 485.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.924e-05/0.1477, allocations: 114.3 kB / 485.5 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.1479, allocations: 90.16 kB / 485.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.148, allocations: 362.7 kB / 485.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002424/0.1482, allocations: 165 kB / 486.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003118/0.1486, allocations: 301.8 kB / 486.4 MB, free: 9.723 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005874/0.1492, allocations: 487.7 kB / 486.9 MB, free: 9.188 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.1492, allocations: 4 kB / 486.9 MB, free: 9.184 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001249/0.1504, allocations: 0.7992 MB / 487.7 MB, free: 8.352 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.1505, allocations: 8 kB / 487.7 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1505, allocations: 4 kB / 487.7 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006148/0.1511, allocations: 213.8 kB / 487.9 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.1514, allocations: 83.83 kB / 488 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004315/0.1557, allocations: 4.223 MB / 492.2 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.156, allocations: 19.94 kB / 492.2 MB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.683e-05/0.156, allocations: 24.08 kB / 492.2 MB, free: 3.496 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002711/0.1563, allocations: 239.5 kB / 492.5 MB, free: 3.254 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-05/0.1564, allocations: 43.44 kB / 492.5 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008589/0.1573, allocations: 0.634 MB / 493.2 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.1573, allocations: 8.031 kB / 493.2 MB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1573, allocations: 0 / 493.2 MB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.1573, allocations: 3.984 kB / 493.2 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001713/0.159, allocations: 1.195 MB / 494.4 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.1591, allocations: 0 / 494.4 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004443/0.1595, allocations: 75.88 kB / 494.4 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001608/0.1597, allocations: 53.67 kB / 494.5 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.268e-05/0.1597, allocations: 16.06 kB / 494.5 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/0.1619, allocations: 2.835 MB / 497.3 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.1619, allocations: 0 / 497.3 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.163, allocations: 0.953 MB / 498.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001705/0.1632, allocations: 144.4 kB / 498.4 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.565e-05/0.1632, allocations: 16 kB / 498.4 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002578/0.1635, allocations: 15.98 kB / 498.5 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.342e-05/0.1636, allocations: 23.97 kB / 498.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/0.1636, allocations: 8 kB / 498.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003114/0.1639, allocations: 295.1 kB / 498.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1639, allocations: 0 / 498.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000634/0.1646, allocations: 136 kB / 498.9 MB, free: 12.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001486/0.1661, allocations: 1.51 MB / 0.4887 GB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001348/0.1674, allocations: 0.7822 MB / 0.4895 GB, free: 9.887 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.1674, allocations: 0 / 0.4895 GB, free: 9.887 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005106/0.1679, allocations: 418 kB / 0.4899 GB, free: 9.453 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007288/0.1687, allocations: 122.8 kB / 0.49 GB, free: 9.336 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007504/0.1762, allocations: 5.829 MB / 0.4957 GB, free: 3.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005664/0.1768, allocations: 0.9366 MB / 0.4966 GB, free: 2.289 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003623/0.1772, allocations: 104.4 kB / 0.4967 GB, free: 2.184 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002834/0.1775, allocations: 199.4 kB / 0.4969 GB, free: 1.988 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1775, allocations: 0 / 0.4969 GB, free: 1.988 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03111/0.2086, allocations: 11.91 MB / 0.5085 GB, free: 6.305 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002442/0.2089, allocations: 236.3 kB / 0.5087 GB, free: 6.051 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.015/2.224, allocations: 0 / 0.5087 GB, free: 6.051 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches