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.001251/0.001251, allocations: 102.7 kB / 16.5 MB, free: 6.688 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.001306/0.001306, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.287/1.287, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1614/0.1614, allocations: 38.04 MB / 329.3 MB, free: 9.098 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001205, allocations: 64.03 kB / 398.2 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08778/0.089, allocations: 58.07 MB / 456.3 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.006771/0.09581, allocations: 6.209 MB / 462.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006107/0.102, allocations: 4.578 MB / 467 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005365/0.1025, allocations: 35.75 kB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007847/0.1104, allocations: 4.742 MB / 471.8 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008314/0.1113, allocations: 330.6 kB / 472.1 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005263/0.1118, allocations: 223.6 kB / 472.4 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00207/0.1139, allocations: 2.14 MB / 474.5 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005445/0.1145, allocations: 336.2 kB / 474.8 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003951/0.1149, allocations: 326.5 kB / 475.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005344/0.1154, allocations: 466.3 kB / 475.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.521e-05/0.1155, allocations: 32 kB / 475.6 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002544/0.1158, allocations: 119.8 kB / 475.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00022/0.116, allocations: 271.3 kB / 476 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002733/0.1163, allocations: 302.4 kB / 476.3 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005781/0.1169, allocations: 0.724 MB / 477 MB, free: 3.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.1169, allocations: 0 / 477 MB, free: 3.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1169, allocations: 0 / 477 MB, free: 3.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1169, allocations: 0 / 477 MB, free: 3.582 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.001543/0.1184, allocations: 0.9095 MB / 477.9 MB, free: 2.621 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.1185, allocations: 12.03 kB / 478 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.1186, allocations: 86.7 kB / 478 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004183/0.119, allocations: 92.06 kB / 478.1 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008674/0.1199, allocations: 0.5407 MB / 478.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/0.1199, allocations: 33 kB / 478.7 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.714e-05/0.12, allocations: 51.98 kB / 478.8 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008479/0.1209, allocations: 0.6452 MB / 479.4 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.1209, allocations: 8 kB / 479.4 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.579e-05/0.121, allocations: 23.98 kB / 479.4 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001253/0.1211, allocations: 48.97 kB / 479.5 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006783/0.1218, allocations: 491.6 kB / 480 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003102/0.1249, allocations: 2.535 MB / 482.5 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004455/0.1253, allocations: 318.8 kB / 482.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/0.1256, allocations: 186.9 kB / 483 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.1256, allocations: 11.98 kB / 483 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.1257, allocations: 34.56 kB / 483 MB, free: 13.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.924e-06/0.1257, allocations: 0 / 483 MB, free: 13.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002314/0.128, allocations: 1.621 MB / 484.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.1281, allocations: 110.8 kB / 484.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004209/0.1285, allocations: 425.8 kB / 485.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.819e-05/0.1285, allocations: 37.7 kB / 485.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.1287, allocations: 307.6 kB / 485.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.816e-05/0.1288, allocations: 122.3 kB / 485.6 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.129, allocations: 86.16 kB / 485.7 MB, free: 10.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1291, allocations: 366.7 kB / 486.1 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002367/0.1293, allocations: 165 kB / 486.2 MB, free: 9.871 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003072/0.1296, allocations: 301.8 kB / 486.5 MB, free: 9.516 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005654/0.1302, allocations: 495.7 kB / 487 MB, free: 8.973 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1302, allocations: 3.938 kB / 487 MB, free: 8.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.00124/0.1315, allocations: 0.7956 MB / 487.8 MB, free: 8.141 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1315, allocations: 8 kB / 487.8 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.1315, allocations: 8.031 kB / 487.8 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005992/0.1321, allocations: 205.5 kB / 488 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.1324, allocations: 75.83 kB / 488.1 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004018/0.1365, allocations: 3.894 MB / 492 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.1368, allocations: 16 kB / 492 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.1368, allocations: 23.98 kB / 492 MB, free: 3.641 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.0003049/0.1371, allocations: 232.7 kB / 492.3 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.061e-05/0.1372, allocations: 51.38 kB / 492.3 MB, free: 3.355 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000908/0.1382, allocations: 0.6302 MB / 492.9 MB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1382, allocations: 4 kB / 493 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1382, allocations: 4 kB / 493 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.168e-06/0.1382, allocations: 11.92 kB / 493 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.1398, allocations: 1.191 MB / 494.2 MB, free: 1.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1399, allocations: 0 / 494.2 MB, free: 1.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004222/0.1403, allocations: 79.88 kB / 494.2 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001522/0.1405, allocations: 57.73 kB / 494.3 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.871e-05/0.1405, allocations: 8 kB / 494.3 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001777/0.1423, allocations: 2.63 MB / 496.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1423, allocations: 0 / 496.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009859/0.1433, allocations: 0.953 MB / 497.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001576/0.1435, allocations: 152.5 kB / 498 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.644e-05/0.1435, allocations: 8 kB / 498 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.1438, allocations: 11.98 kB / 498.1 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.618e-05/0.1438, allocations: 23.97 kB / 498.1 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.1439, allocations: 16 kB / 498.1 MB, free: 13.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002757/0.1442, allocations: 291.1 kB / 498.4 MB, free: 12.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1442, allocations: 0 / 498.4 MB, free: 12.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005701/0.1447, allocations: 132 kB / 498.5 MB, free: 12.65 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.001308/0.146, allocations: 1.509 MB / 0.4883 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001139/0.1472, allocations: 0.7356 MB / 0.489 GB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1472, allocations: 256 / 0.489 GB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004808/0.1477, allocations: 425.1 kB / 0.4894 GB, free: 9.863 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006906/0.1484, allocations: 110.1 kB / 0.4895 GB, free: 9.754 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006695/0.1551, allocations: 5.817 MB / 0.4952 GB, free: 3.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004867/0.1556, allocations: 0.9405 MB / 0.4961 GB, free: 2.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003052/0.1559, allocations: 104.4 kB / 0.4962 GB, free: 2.605 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.1562, allocations: 203.4 kB / 0.4964 GB, free: 2.41 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1562, allocations: 0 / 0.4964 GB, free: 2.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02321/0.1794, allocations: 11.54 MB / 0.5077 GB, free: 7.062 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002365/0.1797, allocations: 246.7 kB / 0.5079 GB, free: 6.801 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.877/2.056, allocations: 0 / 0.5079 GB, free: 6.801 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","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches