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.0008621/0.0008622, allocations: 90.17 kB / 16.65 MB, free: 6.602 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.001092/0.001092, allocations: 181.4 kB / 17.56 MB, free: 6.203 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.249/1.249, allocations: 223.2 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1681/0.1681, allocations: 38.09 MB / 330.8 MB, free: 8.551 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000318/0.0003178, allocations: 13 kB / 400.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09365/0.09398, allocations: 59.17 MB / 460 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.006228/0.1002, allocations: 5.815 MB / 465.8 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006293/0.1066, allocations: 4.481 MB / 470.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004464/0.107, allocations: 31.81 kB / 470.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0072/0.1143, allocations: 4.571 MB / 474.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008118/0.1151, allocations: 326.6 kB / 475.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005921/0.1157, allocations: 227.7 kB / 475.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002203/0.1179, allocations: 2.136 MB / 477.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008093/0.1187, allocations: 0.5474 MB / 478.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003412/0.1191, allocations: 290.7 kB / 478.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005328/0.1196, allocations: 458.3 kB / 478.8 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.278e-05/0.1197, allocations: 24 kB / 478.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002242/0.1199, allocations: 115.8 kB / 479 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002312/0.1202, allocations: 255.3 kB / 479.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002806/0.1205, allocations: 324 kB / 479.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006431/0.1211, allocations: 0.7122 MB / 480.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1211, allocations: 0 / 480.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1211, allocations: 0 / 480.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.1211, allocations: 0 / 480.2 MB, free: 2.59 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.001413/0.1226, allocations: 0.785 MB / 481 MB, free: 1.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.1226, allocations: 12.03 kB / 481 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.1227, allocations: 90.64 kB / 481.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004046/0.1231, allocations: 96.05 kB / 481.2 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008852/0.124, allocations: 0.5291 MB / 481.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.203e-05/0.1241, allocations: 40.97 kB / 481.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.603e-05/0.1242, allocations: 48 kB / 481.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008929/0.1251, allocations: 0.6453 MB / 482.5 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.1251, allocations: 0 / 482.5 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.754e-05/0.1251, allocations: 20 kB / 482.5 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001343/0.1253, allocations: 52.89 kB / 482.6 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007513/0.126, allocations: 0.4918 MB / 483.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.1291, allocations: 2.546 MB / 485.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004519/0.1295, allocations: 311.6 kB / 485.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/0.1298, allocations: 179.1 kB / 486.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.614e-05/0.1298, allocations: 15.94 kB / 486.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.1299, allocations: 46.53 kB / 486.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.753e-06/0.1299, allocations: 3.938 kB / 486.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002285/0.1322, allocations: 1.621 MB / 487.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.1322, allocations: 110.8 kB / 487.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000411/0.1327, allocations: 426 kB / 488.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/0.1327, allocations: 37.7 kB / 488.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.1329, allocations: 299.6 kB / 488.6 MB, free: 9.727 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.735e-05/0.133, allocations: 126.3 kB / 488.7 MB, free: 9.602 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.135e-05/0.1331, allocations: 45.69 kB / 488.8 MB, free: 9.551 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1332, allocations: 358.7 kB / 489.1 MB, free: 9.191 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002399/0.1334, allocations: 165 kB / 489.3 MB, free: 9.031 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003277/0.1338, allocations: 305.8 kB / 489.6 MB, free: 8.672 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006015/0.1344, allocations: 495.7 kB / 490.1 MB, free: 8.129 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1344, allocations: 0 / 490.1 MB, free: 8.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001247/0.1357, allocations: 0.807 MB / 490.9 MB, free: 7.289 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.1357, allocations: 4 kB / 490.9 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.1357, allocations: 8 kB / 490.9 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006073/0.1363, allocations: 209.7 kB / 491.1 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.1366, allocations: 75.89 kB / 491.2 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004106/0.1407, allocations: 3.889 MB / 495.1 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/0.141, allocations: 19.98 kB / 495.1 MB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.536e-05/0.141, allocations: 20 kB / 495.1 MB, free: 2.801 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.0002862/0.1413, allocations: 230.5 kB / 495.3 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.354e-05/0.1414, allocations: 47.44 kB / 495.4 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009369/0.1424, allocations: 0.6417 MB / 496 MB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.82e-06/0.1424, allocations: 8.031 kB / 496 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.1424, allocations: 4 kB / 496 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.922e-06/0.1424, allocations: 3.938 kB / 496 MB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.144, allocations: 1.187 MB / 497.2 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.144, allocations: 0 / 497.2 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004184/0.1445, allocations: 75.89 kB / 497.3 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001519/0.1446, allocations: 49.67 kB / 497.3 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.018e-05/0.1447, allocations: 12 kB / 497.4 MB, free: 392 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00191/0.1466, allocations: 2.646 MB / 0.4883 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1466, allocations: 160 / 0.4883 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.1478, allocations: 0.9568 MB / 0.4892 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001832/0.148, allocations: 144.4 kB / 0.4894 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.451e-05/0.1481, allocations: 12 kB / 0.4894 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.1483, allocations: 15.98 kB / 0.4894 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.291e-05/0.1484, allocations: 27.91 kB / 0.4894 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.1484, allocations: 11.98 kB / 0.4894 GB, free: 12.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003337/0.1488, allocations: 295.1 kB / 0.4897 GB, free: 11.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1488, allocations: 0 / 0.4897 GB, free: 11.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006222/0.1494, allocations: 132 kB / 0.4898 GB, free: 11.8 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.001361/0.1508, allocations: 1.508 MB / 0.4913 GB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.1521, allocations: 0.7313 MB / 0.492 GB, free: 9.453 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.1521, allocations: 0 / 0.492 GB, free: 9.453 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005284/0.1526, allocations: 422.1 kB / 0.4924 GB, free: 9.016 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008026/0.1534, allocations: 109.8 kB / 0.4925 GB, free: 8.906 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007349/0.1608, allocations: 5.963 MB / 0.4983 GB, free: 2.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005267/0.1614, allocations: 0.9366 MB / 0.4993 GB, free: 1.719 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003432/0.1617, allocations: 108.4 kB / 0.4994 GB, free: 1.609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002883/0.162, allocations: 195.4 kB / 0.4995 GB, free: 1.418 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.162, allocations: 4 kB / 0.4996 GB, free: 1.414 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2003/0.3624, allocations: 11.37 MB / 0.5107 GB, free: 54.27 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001617/0.3626, allocations: 244.6 kB / 0.5109 GB, free: 54.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.903/2.266, allocations: 0 / 0.5109 GB, free: 54.02 MB / 382.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