Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.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.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",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.001321/0.001321, allocations: 106.8 kB / 16.92 MB, free: 5.773 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.001406/0.001406, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.34/1.34, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1753/0.1753, allocations: 38.03 MB / 329.7 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 72.02 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09923/0.1005, allocations: 58.06 MB / 457 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.006036/0.1065, allocations: 4.415 MB / 461.4 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00242/0.109, allocations: 1.425 MB / 462.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000257/0.1093, allocations: 19.88 kB / 462.8 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001035/0.1103, allocations: 373.5 kB / 463.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006519/0.111, allocations: 246.8 kB / 463.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006815/0.1117, allocations: 239.4 kB / 463.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006285/0.1123, allocations: 0.569 MB / 464.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004255/0.1127, allocations: 281 kB / 464.5 MB, free: 428 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003976/0.1132, allocations: 255 kB / 464.8 MB, free: 172 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005425/0.1137, allocations: 358.9 kB / 465.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.95e-05/0.1138, allocations: 36 kB / 465.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004785/0.1143, allocations: 239.6 kB / 465.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002399/0.1145, allocations: 247.4 kB / 465.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002987/0.1149, allocations: 254.8 kB / 465.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007077/0.1156, allocations: 0.6504 MB / 466.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1156, allocations: 0 / 466.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.1156, allocations: 3.938 kB / 466.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.1156, allocations: 3.938 kB / 466.5 MB, free: 14.39 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.00144/0.1171, allocations: 0.7738 MB / 467.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1171, allocations: 15.89 kB / 467.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.1172, allocations: 90.7 kB / 467.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005837/0.1178, allocations: 88.17 kB / 467.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006124/0.1184, allocations: 407.2 kB / 467.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.1185, allocations: 33.36 kB / 467.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.1186, allocations: 43.94 kB / 468 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009352/0.1195, allocations: 0.6842 MB / 468.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.1196, allocations: 4 kB / 468.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.677e-05/0.1196, allocations: 16 kB / 468.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001823/0.1198, allocations: 48.97 kB / 468.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009876/0.1208, allocations: 0.6791 MB / 469.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003415/0.1242, allocations: 2.505 MB / 471.9 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005215/0.1248, allocations: 337.3 kB / 472.2 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003055/0.1251, allocations: 226 kB / 472.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-05/0.1251, allocations: 19.89 kB / 472.5 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.1252, allocations: 42.5 kB / 472.5 MB, free: 8.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.124e-06/0.1252, allocations: 0 / 472.5 MB, free: 8.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002001/0.1272, allocations: 1.336 MB / 473.8 MB, free: 6.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.1273, allocations: 81.11 kB / 473.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.1275, allocations: 296.5 kB / 474.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.094e-05/0.1276, allocations: 33.69 kB / 474.2 MB, free: 6.281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.1278, allocations: 263.6 kB / 474.5 MB, free: 6.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.1279, allocations: 153.8 kB / 474.7 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.128, allocations: 94.16 kB / 474.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1281, allocations: 350.8 kB / 475.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002818/0.1284, allocations: 197 kB / 475.3 MB, free: 5.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003792/0.1288, allocations: 369.1 kB / 475.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000727/0.1296, allocations: 0.606 MB / 476.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.1296, allocations: 4 kB / 476.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009029/0.1305, allocations: 0.6189 MB / 476.9 MB, free: 3.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.1305, allocations: 8 kB / 476.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.1305, allocations: 4.688 kB / 476.9 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.1306, allocations: 8 kB / 476.9 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004252/0.131, allocations: 119.8 kB / 477 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.131, allocations: 8 kB / 477 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/0.1312, allocations: 27.92 kB / 477 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.322e-05/0.1313, allocations: 35.91 kB / 477.1 MB, free: 3.277 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002102/0.1315, allocations: 205.7 kB / 477.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.507e-05/0.1316, allocations: 43.45 kB / 477.3 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007393/0.1324, allocations: 0.4933 MB / 477.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.191e-05/0.1324, allocations: 8 kB / 477.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1324, allocations: 7.938 kB / 477.8 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.1324, allocations: 7.969 kB / 477.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001654/0.1341, allocations: 1.104 MB / 478.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.1341, allocations: 4.094 kB / 478.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003551/0.1345, allocations: 67.95 kB / 479 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.1345, allocations: 0 / 479 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.881e-05/0.1345, allocations: 8 kB / 479 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.1345, allocations: 7.938 kB / 479 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.1345, allocations: 4 kB / 479 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.1356, allocations: 0.8357 MB / 479.9 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.063e-05/0.1357, allocations: 112.6 kB / 480 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.802e-05/0.1357, allocations: 12.03 kB / 480 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.1359, allocations: 15.98 kB / 480 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.815e-05/0.136, allocations: 23.84 kB / 480 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.136, allocations: 12 kB / 480 MB, free: 188 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002087/0.1362, allocations: 219.1 kB / 480.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1363, allocations: 0 / 480.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004524/0.1367, allocations: 104 kB / 480.4 MB, free: 15.87 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001375/0.1381, allocations: 1.396 MB / 481.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008321/0.1389, allocations: 0.5751 MB / 482.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.139, allocations: 4.188 kB / 482.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002869/0.1392, allocations: 232 kB / 482.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005011/0.1398, allocations: 68.94 kB / 482.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005088/0.1449, allocations: 4.393 MB / 487 MB, free: 8.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/0.1454, allocations: 0.8743 MB / 487.9 MB, free: 8.031 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003516/0.1457, allocations: 127.1 kB / 488 MB, free: 7.902 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002027/0.1459, allocations: 139.4 kB / 488.2 MB, free: 7.766 MB / 366.1 MB Notification: Performance of SimCode: time 4.8e-07/0.1459, allocations: 0 / 488.2 MB, free: 7.766 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02531/0.1713, allocations: 7.698 MB / 495.9 MB, free: 180 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.918/8.09, allocations: 14.16 kB / 495.9 MB, free: 172 kB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches