Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_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.001009/0.001009, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.001033/0.001034, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.251/1.251, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1667/0.1667, allocations: 38.02 MB / 329.4 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 61.83 kB / 398.4 MB, free: 34.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08369/0.08494, allocations: 58.07 MB / 456.4 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.005832/0.09081, allocations: 5.057 MB / 461.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002841/0.09369, allocations: 1.616 MB / 463.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004755/0.09419, allocations: 27.81 kB / 463.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.09524, allocations: 346.8 kB / 463.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005835/0.09584, allocations: 231.1 kB / 463.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006551/0.0965, allocations: 223.6 kB / 463.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007313/0.09725, allocations: 0.5573 MB / 464.5 MB, free: 224 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005509/0.09781, allocations: 317 kB / 464.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003805/0.0982, allocations: 250.9 kB / 465 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005021/0.09872, allocations: 378.9 kB / 465.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.681e-05/0.0988, allocations: 40 kB / 465.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004246/0.09924, allocations: 235.6 kB / 465.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002166/0.09946, allocations: 231.5 kB / 465.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002911/0.09976, allocations: 270.7 kB / 466.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006751/0.1004, allocations: 0.6582 MB / 466.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1005, allocations: 0 / 466.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1005, allocations: 0 / 466.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.1005, allocations: 0 / 466.8 MB, free: 13.87 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.001365/0.1019, allocations: 0.7661 MB / 467.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.1019, allocations: 11.89 kB / 467.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001058/0.102, allocations: 98.67 kB / 467.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005428/0.1026, allocations: 88.22 kB / 467.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006317/0.1032, allocations: 403.2 kB / 468.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.375e-05/0.1033, allocations: 29.38 kB / 468.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.1034, allocations: 55.84 kB / 468.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.1045, allocations: 0.6726 MB / 468.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/0.1046, allocations: 7.938 kB / 468.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.208e-05/0.1046, allocations: 19.98 kB / 469 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001966/0.1048, allocations: 52.95 kB / 469 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.1059, allocations: 0.6635 MB / 469.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003345/0.1093, allocations: 2.524 MB / 472.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005053/0.1098, allocations: 341.3 kB / 472.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002884/0.1101, allocations: 226 kB / 472.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.521e-05/0.1101, allocations: 11.92 kB / 472.8 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.1102, allocations: 42.48 kB / 472.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.174e-06/0.1102, allocations: 4 kB / 472.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.001971/0.1121, allocations: 1.341 MB / 474.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.1122, allocations: 85.09 kB / 474.2 MB, free: 6.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.1125, allocations: 296.5 kB / 474.5 MB, free: 5.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.1125, allocations: 29.7 kB / 474.6 MB, free: 5.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.1127, allocations: 259.5 kB / 474.8 MB, free: 5.484 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.1128, allocations: 154 kB / 475 MB, free: 5.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001293/0.113, allocations: 98.14 kB / 475.1 MB, free: 5.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.1131, allocations: 350.8 kB / 475.4 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002808/0.1134, allocations: 201 kB / 475.6 MB, free: 4.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003733/0.1138, allocations: 369 kB / 476 MB, free: 4.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007088/0.1145, allocations: 0.6098 MB / 476.6 MB, free: 3.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1145, allocations: 4 kB / 476.6 MB, free: 3.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008797/0.1154, allocations: 0.6227 MB / 477.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1154, allocations: 8 kB / 477.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.1154, allocations: 4 kB / 477.2 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1154, allocations: 8.688 kB / 477.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004106/0.1158, allocations: 111.8 kB / 477.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.1159, allocations: 15.98 kB / 477.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002312/0.1161, allocations: 23.98 kB / 477.4 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.377e-05/0.1162, allocations: 24 kB / 477.4 MB, free: 2.746 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.0002258/0.1164, allocations: 213.6 kB / 477.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.341e-05/0.1165, allocations: 35.56 kB / 477.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007184/0.1172, allocations: 0.4886 MB / 478.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.258e-05/0.1172, allocations: 15.98 kB / 478.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1173, allocations: 4 kB / 478.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.1173, allocations: 0 / 478.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.1189, allocations: 1.1 MB / 479.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1189, allocations: 3.938 kB / 479.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/0.1192, allocations: 71.98 kB / 479.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.1193, allocations: 11.97 kB / 479.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.1193, allocations: 8 kB / 479.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.1193, allocations: 4 kB / 479.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1193, allocations: 3.938 kB / 479.3 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.1204, allocations: 0.8357 MB / 480.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.508e-05/0.1204, allocations: 112.6 kB / 480.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.389e-05/0.1205, allocations: 8 kB / 480.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.1207, allocations: 24 kB / 480.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.296e-05/0.1208, allocations: 19.86 kB / 480.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.1208, allocations: 15.98 kB / 480.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001945/0.121, allocations: 215.1 kB / 480.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.121, allocations: 4 kB / 480.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004561/0.1215, allocations: 104 kB / 480.7 MB, free: 15.34 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.001331/0.1228, allocations: 1.388 MB / 482.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000802/0.1236, allocations: 0.5823 MB / 482.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1236, allocations: 384 / 482.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.1239, allocations: 227.8 kB / 482.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000503/0.1244, allocations: 79.12 kB / 482.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004991/0.1294, allocations: 4.552 MB / 487.5 MB, free: 8.234 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004368/0.1299, allocations: 0.8782 MB / 488.4 MB, free: 7.332 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003392/0.1302, allocations: 131.1 kB / 488.5 MB, free: 7.199 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.1304, allocations: 143.4 kB / 488.6 MB, free: 7.059 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1304, allocations: 0 / 488.6 MB, free: 7.059 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01982/0.1503, allocations: 7.612 MB / 496.2 MB, free: 15.58 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003193/0.1506, allocations: 205.7 kB / 496.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.861/2.011, allocations: 0 / 496.4 MB, free: 15.32 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)