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.001043/0.001043, allocations: 107.9 kB / 16.92 MB, free: 6.332 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.001117/0.001117, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.225/1.225, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1675/0.1675, allocations: 38.02 MB / 329.7 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 65.27 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08091/0.08214, allocations: 58.07 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.005298/0.08747, allocations: 4.417 MB / 461.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.08956, allocations: 1.422 MB / 462.8 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001864/0.08976, allocations: 11.94 kB / 462.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009341/0.09071, allocations: 378.5 kB / 463.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004554/0.09118, allocations: 246.8 kB / 463.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005351/0.09172, allocations: 243.4 kB / 463.7 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004811/0.09222, allocations: 0.5612 MB / 464.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003774/0.09261, allocations: 293 kB / 464.5 MB, free: 408 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000261/0.09288, allocations: 251 kB / 464.7 MB, free: 156 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004294/0.09332, allocations: 351.1 kB / 465.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.513e-05/0.09339, allocations: 40 kB / 465.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003817/0.09378, allocations: 231.5 kB / 465.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001946/0.09398, allocations: 247.4 kB / 465.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002246/0.09422, allocations: 258.7 kB / 465.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000564/0.09479, allocations: 0.6504 MB / 466.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.0948, allocations: 0 / 466.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.09481, allocations: 0 / 466.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.09482, allocations: 0 / 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.001196/0.09602, allocations: 0.7805 MB / 467.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.09607, allocations: 15.89 kB / 467.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.453e-05/0.09617, allocations: 94.69 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005307/0.09671, allocations: 84.23 kB / 467.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005516/0.09727, allocations: 407.2 kB / 467.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.09731, allocations: 33.31 kB / 467.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.09742, allocations: 51.86 kB / 468 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008508/0.09828, allocations: 0.6843 MB / 468.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.09831, allocations: 3.938 kB / 468.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.597e-05/0.09836, allocations: 16 kB / 468.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001689/0.09854, allocations: 44.97 kB / 468.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009405/0.09948, allocations: 0.6752 MB / 469.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003123/0.1026, allocations: 2.517 MB / 471.9 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004857/0.1031, allocations: 337.3 kB / 472.2 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002834/0.1034, allocations: 222 kB / 472.4 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.1035, allocations: 19.91 kB / 472.5 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.1035, allocations: 38.56 kB / 472.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.763e-06/0.1035, allocations: 0 / 472.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.001905/0.1054, allocations: 1.344 MB / 473.8 MB, free: 6.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/0.1055, allocations: 81.11 kB / 473.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000272/0.1057, allocations: 296.5 kB / 474.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.1058, allocations: 33.7 kB / 474.2 MB, free: 6.266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.1059, allocations: 263.6 kB / 474.5 MB, free: 6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.106, allocations: 153.8 kB / 474.6 MB, free: 5.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.1062, allocations: 94.16 kB / 474.7 MB, free: 5.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.1063, allocations: 346.8 kB / 475.1 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002633/0.1065, allocations: 197 kB / 475.3 MB, free: 5.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003574/0.1069, allocations: 369 kB / 475.6 MB, free: 4.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000702/0.1076, allocations: 0.6099 MB / 476.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1076, allocations: 0 / 476.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008613/0.1085, allocations: 0.6267 MB / 476.9 MB, free: 3.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.1085, allocations: 6.344 kB / 476.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.1085, allocations: 8.688 kB / 476.9 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.1086, allocations: 8 kB / 476.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004171/0.109, allocations: 119.8 kB / 477 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.109, allocations: 8 kB / 477 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.1092, allocations: 19.98 kB / 477 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.28e-05/0.1093, allocations: 23.98 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.0002008/0.1095, allocations: 213.6 kB / 477.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.362e-05/0.1096, allocations: 43.45 kB / 477.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007025/0.1103, allocations: 0.4972 MB / 477.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-05/0.1103, allocations: 12 kB / 477.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1103, allocations: 0 / 477.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.1103, allocations: 7.922 kB / 477.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.1119, allocations: 1.096 MB / 478.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.1119, allocations: 4.094 kB / 478.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003561/0.1123, allocations: 75.89 kB / 479 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.1123, allocations: 0 / 479 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-05/0.1123, allocations: 12 kB / 479 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.1123, allocations: 0 / 479 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1123, allocations: 0 / 479 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009795/0.1133, allocations: 0.8473 MB / 479.9 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.661e-05/0.1134, allocations: 108.6 kB / 480 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.334e-05/0.1134, allocations: 12.03 kB / 480 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.1137, allocations: 15.98 kB / 480 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.1137, allocations: 27.91 kB / 480 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.1137, allocations: 8 kB / 480 MB, free: 180 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001914/0.1139, allocations: 219 kB / 480.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1139, allocations: 0 / 480.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004244/0.1144, allocations: 112 kB / 480.4 MB, free: 15.86 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.001267/0.1156, allocations: 1.4 MB / 481.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007581/0.1164, allocations: 0.5632 MB / 482.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1164, allocations: 448 / 482.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002708/0.1167, allocations: 244 kB / 482.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004733/0.1172, allocations: 68.44 kB / 482.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004508/0.1217, allocations: 4.385 MB / 487 MB, free: 8.926 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.1221, allocations: 0.8704 MB / 487.9 MB, free: 8.031 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003217/0.1224, allocations: 135 kB / 488 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001903/0.1226, allocations: 143.4 kB / 488.1 MB, free: 7.754 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1226, allocations: 0 / 488.1 MB, free: 7.754 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02388/0.1465, allocations: 7.685 MB / 495.8 MB, free: 152 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.233/7.38, allocations: 7.922 kB / 495.8 MB, free: 148 kB / 366.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)