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.00115/0.00115, allocations: 89.44 kB / 16.31 MB, free: 6.461 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.001279/0.00128, allocations: 177.6 kB / 17.21 MB, free: 6.336 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.559/1.559, allocations: 223.2 MB / 241.2 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3768/0.3768, allocations: 38.08 MB / 330.4 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003487/0.0003492, allocations: 8 kB / 400.2 MB, free: 9.152 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3954/0.3957, allocations: 59.16 MB / 459.3 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.005743/0.4015, allocations: 4.454 MB / 463.8 MB, free: 26.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003169/0.4048, allocations: 1.518 MB / 465.3 MB, free: 25.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003498/0.4051, allocations: 26.03 kB / 465.3 MB, free: 25.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002952/0.4055, allocations: 80.48 kB / 465.4 MB, free: 25.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008253/0.4063, allocations: 272.5 kB / 465.7 MB, free: 25.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008303/0.4071, allocations: 232.7 kB / 465.9 MB, free: 25.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009271/0.4081, allocations: 0.6769 MB / 466.6 MB, free: 25.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009163/0.409, allocations: 0.5159 MB / 467.1 MB, free: 25.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000366/0.4094, allocations: 201.5 kB / 467.3 MB, free: 24.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000645/0.41, allocations: 352.3 kB / 467.6 MB, free: 24.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.799e-05/0.4101, allocations: 24.25 kB / 467.6 MB, free: 24.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005114/0.4106, allocations: 179.2 kB / 467.8 MB, free: 24.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003069/0.4109, allocations: 221.8 kB / 468 MB, free: 24.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.4111, allocations: 109.3 kB / 468.1 MB, free: 24.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007765/0.4119, allocations: 498.3 kB / 468.6 MB, free: 24.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.4119, allocations: 1.156 kB / 468.6 MB, free: 24.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.4119, allocations: 0 / 468.6 MB, free: 24.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.4119, allocations: 0 / 468.6 MB, free: 24.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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001307/0.4132, allocations: 0.7012 MB / 469.3 MB, free: 24.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.4133, allocations: 10 kB / 469.3 MB, free: 24.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001139/0.4134, allocations: 82.83 kB / 469.4 MB, free: 23.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006278/0.414, allocations: 90.22 kB / 469.5 MB, free: 23.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006342/0.4147, allocations: 395.5 kB / 469.9 MB, free: 23.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/0.4147, allocations: 32.39 kB / 469.9 MB, free: 23.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.4148, allocations: 46.12 kB / 470 MB, free: 23.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.4161, allocations: 0.6762 MB / 470.7 MB, free: 23.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.4161, allocations: 9.156 kB / 470.7 MB, free: 23.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.056e-05/0.4161, allocations: 12.38 kB / 470.7 MB, free: 23.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001869/0.4163, allocations: 52 kB / 470.7 MB, free: 23.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.4176, allocations: 0.6764 MB / 471.4 MB, free: 23.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003598/0.4212, allocations: 2.518 MB / 473.9 MB, free: 21.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005722/0.4218, allocations: 340.3 kB / 474.3 MB, free: 21.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000345/0.4221, allocations: 229.2 kB / 474.5 MB, free: 21.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.531e-05/0.4222, allocations: 9.141 kB / 474.5 MB, free: 21.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.4222, allocations: 36.5 kB / 474.5 MB, free: 21.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.605e-06/0.4222, allocations: 0 / 474.5 MB, free: 21.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002405/0.4246, allocations: 1.346 MB / 475.9 MB, free: 20.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.4247, allocations: 90.19 kB / 476 MB, free: 20.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004004/0.4251, allocations: 297.8 kB / 476.2 MB, free: 20.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.688e-05/0.4252, allocations: 31.14 kB / 476.3 MB, free: 20.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.4253, allocations: 253 kB / 476.5 MB, free: 19.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.4255, allocations: 150.8 kB / 476.7 MB, free: 19.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.273e-05/0.4255, allocations: 5.5 kB / 476.7 MB, free: 19.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.4257, allocations: 348.9 kB / 477 MB, free: 19.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003321/0.426, allocations: 199.3 kB / 477.2 MB, free: 19.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004321/0.4264, allocations: 376.5 kB / 477.6 MB, free: 19.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003995/0.4268, allocations: 260.9 kB / 477.8 MB, free: 18.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4269, allocations: 1.594 kB / 477.8 MB, free: 18.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009939/0.4279, allocations: 0.6322 MB / 478.5 MB, free: 18.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.4279, allocations: 9.375 kB / 478.5 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.4279, allocations: 9.531 kB / 478.5 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.838e-05/0.4279, allocations: 8.688 kB / 478.5 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004394/0.4284, allocations: 117.3 kB / 478.6 MB, free: 18.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.696e-05/0.4284, allocations: 8.531 kB / 478.6 MB, free: 18.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002279/0.4287, allocations: 28.16 kB / 478.6 MB, free: 18.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.483e-05/0.4287, allocations: 19.69 kB / 478.7 MB, free: 18.6 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002792/0.429, allocations: 219.6 kB / 478.9 MB, free: 18.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.754e-05/0.4291, allocations: 39.58 kB / 478.9 MB, free: 18.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008644/0.43, allocations: 0.4897 MB / 479.4 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.869e-05/0.43, allocations: 9.938 kB / 479.4 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.43, allocations: 1.031 kB / 479.4 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.43, allocations: 4.953 kB / 479.4 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.4318, allocations: 1.103 MB / 480.5 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.4318, allocations: 1.281 kB / 480.5 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003369/0.4322, allocations: 68.77 kB / 480.6 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.4322, allocations: 3.375 kB / 480.6 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.184e-05/0.4322, allocations: 15.69 kB / 480.6 MB, free: 17.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.4323, allocations: 2.969 kB / 480.6 MB, free: 17.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4323, allocations: 1.219 kB / 480.6 MB, free: 17.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.4334, allocations: 0.8327 MB / 481.4 MB, free: 16.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.294e-05/0.4335, allocations: 108.1 kB / 481.6 MB, free: 16.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.603e-05/0.4335, allocations: 8.125 kB / 481.6 MB, free: 16.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.4337, allocations: 14.42 kB / 481.6 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.4338, allocations: 22.78 kB / 481.6 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.989e-05/0.4338, allocations: 11.84 kB / 481.6 MB, free: 16.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002156/0.434, allocations: 213.6 kB / 481.8 MB, free: 16.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.32e-07/0.4341, allocations: 0.7812 kB / 481.8 MB, free: 16.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005763/0.4346, allocations: 114.4 kB / 481.9 MB, free: 16.54 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001263/0.4359, allocations: 1.385 MB / 483.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005967/0.4365, allocations: 492.8 kB / 483.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4365, allocations: 4.062 kB / 483.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000243/0.4368, allocations: 223.8 kB / 484 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004974/0.4373, allocations: 67.11 kB / 484.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.4406, allocations: 2.973 MB / 487.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.4409, allocations: 0.8782 MB / 487.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003087/0.4413, allocations: 123.2 kB / 488.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.4414, allocations: 143.4 kB / 488.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4414, allocations: 0 / 488.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01739/0.4588, allocations: 7.373 MB / 495.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/0.4591, allocations: 200.4 kB / 495.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.084/2.543, allocations: 0 / 495.8 MB, free: 2.844 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat does not exist to compare? outputFormat=mat