Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",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.0008763/0.0008764, allocations: 86.53 kB / 16.31 MB, free: 6.449 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.001038/0.001038, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.451/1.451, allocations: 223.3 MB / 241.2 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3609/0.3609, allocations: 38.08 MB / 330.4 MB, free: 14.1 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003315/0.0003315, allocations: 8 kB / 400.2 MB, free: 9.125 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3518, allocations: 59.17 MB / 459.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003866/0.3557, allocations: 3.081 MB / 462.4 MB, free: 28.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.358, allocations: 1.189 MB / 463.6 MB, free: 27.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002183/0.3582, allocations: 11.22 kB / 463.6 MB, free: 27.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.3585, allocations: 35.72 kB / 463.6 MB, free: 27.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006262/0.3591, allocations: 144.2 kB / 463.8 MB, free: 27.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003931/0.3595, allocations: 97.3 kB / 463.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005162/0.36, allocations: 322.3 kB / 464.2 MB, free: 27.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006459/0.3607, allocations: 254 kB / 464.4 MB, free: 27.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002551/0.361, allocations: 95.95 kB / 464.5 MB, free: 26.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.3612, allocations: 105.7 kB / 464.6 MB, free: 26.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.3612, allocations: 11.81 kB / 464.6 MB, free: 26.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003121/0.3615, allocations: 109.9 kB / 464.8 MB, free: 26.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.419e-05/0.3616, allocations: 53 kB / 464.8 MB, free: 26.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.42e-05/0.3617, allocations: 63.86 kB / 464.9 MB, free: 26.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003948/0.3621, allocations: 200 kB / 465.1 MB, free: 26.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.393e-05/0.3621, allocations: 5.219 kB / 465.1 MB, free: 26.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.3622, allocations: 0 / 465.1 MB, free: 26.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.3622, allocations: 0 / 465.1 MB, free: 26.77 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0009134/0.3631, allocations: 470.2 kB / 465.5 MB, free: 26.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.428e-05/0.3632, allocations: 14.31 kB / 465.5 MB, free: 26.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.517e-05/0.3633, allocations: 52.91 kB / 465.6 MB, free: 26.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009398/0.3642, allocations: 80.73 kB / 465.7 MB, free: 26.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004536/0.3647, allocations: 250.6 kB / 465.9 MB, free: 26.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.968e-05/0.3648, allocations: 14.81 kB / 465.9 MB, free: 26.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.842e-05/0.3648, allocations: 18.77 kB / 466 MB, free: 26.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006718/0.3655, allocations: 274.8 kB / 466.2 MB, free: 25.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.3655, allocations: 1.406 kB / 466.2 MB, free: 25.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.3656, allocations: 5.312 kB / 466.2 MB, free: 25.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.636e-05/0.3656, allocations: 12.94 kB / 466.2 MB, free: 25.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005091/0.3662, allocations: 222.5 kB / 466.5 MB, free: 25.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00177/0.3679, allocations: 1.217 MB / 467.7 MB, free: 24.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002252/0.3682, allocations: 133.9 kB / 467.8 MB, free: 24.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.847e-05/0.3683, allocations: 46.02 kB / 467.8 MB, free: 24.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.3683, allocations: 6.984 kB / 467.9 MB, free: 24.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.3683, allocations: 35.44 kB / 467.9 MB, free: 24.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.3683, allocations: 0 / 467.9 MB, free: 24.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003723/0.3687, allocations: 165.8 kB / 468.1 MB, free: 24.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6e-05/0.3688, allocations: 84.27 kB / 468.1 MB, free: 24.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.369, allocations: 204.4 kB / 468.3 MB, free: 24.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.369, allocations: 29.7 kB / 468.4 MB, free: 24.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.093e-05/0.3691, allocations: 156 kB / 468.5 MB, free: 24.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.348e-05/0.3692, allocations: 52.5 kB / 468.6 MB, free: 24.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.766e-06/0.3692, allocations: 1.125 kB / 468.6 MB, free: 24.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.979e-05/0.3693, allocations: 328.9 kB / 468.9 MB, free: 23.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.433e-05/0.3693, allocations: 40.16 kB / 468.9 MB, free: 23.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.3695, allocations: 127.6 kB / 469.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001116/0.3696, allocations: 64.23 kB / 469.1 MB, free: 23.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3696, allocations: 1.375 kB / 469.1 MB, free: 23.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003047/0.3699, allocations: 210.6 kB / 469.3 MB, free: 23.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.3699, allocations: 5.719 kB / 469.3 MB, free: 23.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.37, allocations: 7.938 kB / 469.3 MB, free: 23.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.37, allocations: 7.938 kB / 469.3 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.3702, allocations: 50.17 kB / 469.4 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008025/0.371, allocations: 1.33 MB / 470.7 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.3712, allocations: 22.94 kB / 470.7 MB, free: 22.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.3712, allocations: 9.188 kB / 470.8 MB, free: 22.12 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.3713, allocations: 139 kB / 470.9 MB, free: 22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.297e-05/0.3714, allocations: 16.16 kB / 470.9 MB, free: 21.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002817/0.3716, allocations: 138.2 kB / 471 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3717, allocations: 2.875 kB / 471 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.3717, allocations: 0.7031 kB / 471 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.3717, allocations: 10.09 kB / 471.1 MB, free: 21.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006567/0.3724, allocations: 498.1 kB / 471.5 MB, free: 21.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3724, allocations: 0.9375 kB / 471.5 MB, free: 21.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.3726, allocations: 33.22 kB / 471.6 MB, free: 21.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.3726, allocations: 5 kB / 471.6 MB, free: 21.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.3726, allocations: 15.14 kB / 471.6 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006782/0.3733, allocations: 1.325 MB / 472.9 MB, free: 20.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3733, allocations: 4.906 kB / 472.9 MB, free: 20.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003342/0.3736, allocations: 302.6 kB / 473.2 MB, free: 19.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.766e-05/0.3737, allocations: 92.38 kB / 473.3 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.827e-05/0.3737, allocations: 10.83 kB / 473.3 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.036e-05/0.3738, allocations: 1.953 kB / 473.3 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.127e-05/0.3739, allocations: 11.64 kB / 473.3 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.3739, allocations: 13.06 kB / 473.3 MB, free: 19.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001419/0.374, allocations: 146.2 kB / 473.5 MB, free: 19.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.374, allocations: 0 / 473.5 MB, free: 19.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003533/0.3744, allocations: 51.38 kB / 473.5 MB, free: 19.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006252/0.375, allocations: 0.8309 MB / 474.4 MB, free: 18.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003919/0.3754, allocations: 119.8 kB / 474.5 MB, free: 18.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3755, allocations: 3.938 kB / 474.5 MB, free: 18.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.3756, allocations: 66.27 kB / 474.6 MB, free: 18.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004816/0.3761, allocations: 27.52 kB / 474.6 MB, free: 18.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.3786, allocations: 1.31 MB / 475.9 MB, free: 18.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.379, allocations: 0.7437 MB / 476.6 MB, free: 17.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001512/0.3791, allocations: 38.5 kB / 476.7 MB, free: 17.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.3793, allocations: 59.03 kB / 476.7 MB, free: 17.24 MB / 350.1 MB Notification: Performance of SimCode: time 1.183e-06/0.3793, allocations: 4 kB / 476.7 MB, free: 17.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0254/0.4047, allocations: 3.413 MB / 480.1 MB, free: 16.26 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.405, allocations: 225.7 kB / 480.4 MB, free: 16.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.796/2.201, allocations: 4 kB / 480.4 MB, free: 16.02 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat does not exist to compare? outputFormat=mat