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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001532/0.001532, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.609/1.609, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009344/0.0009345, allocations: 85.47 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1839/0.1839, allocations: 37.99 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.312e-05/2.315e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1384, allocations: 56.31 MB / 467 MB, free: 6.488 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4481/0.5866, allocations: 93.66 MB / 0.5475 GB, free: 1.145 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.5869, allocations: 87.94 kB / 0.5476 GB, free: 1.059 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02503/0.6119, allocations: 9.733 MB / 0.5571 GB, free: 7.234 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.612, allocations: 0 / 0.5571 GB, free: 7.234 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.294e-05/0.612, allocations: 8 kB / 0.5571 GB, free: 7.227 MB / 395.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.0007063/0.6127, allocations: 480.3 kB / 0.5576 GB, free: 6.707 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/0.6128, allocations: 12.03 kB / 0.5576 GB, free: 6.695 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007058/0.6135, allocations: 91.56 kB / 0.5577 GB, free: 6.605 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003858/0.6139, allocations: 259 kB / 0.5579 GB, free: 6.312 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.6139, allocations: 4 kB / 0.5579 GB, free: 6.309 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.932e-05/0.614, allocations: 12 kB / 0.5579 GB, free: 6.297 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002644/0.6142, allocations: 136.3 kB / 0.5581 GB, free: 6.164 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003522/0.6146, allocations: 227.7 kB / 0.5583 GB, free: 5.918 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.6146, allocations: 3.906 kB / 0.5583 GB, free: 5.914 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.6147, allocations: 4 kB / 0.5583 GB, free: 5.91 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.08e-05/0.6147, allocations: 12.31 kB / 0.5583 GB, free: 5.898 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.6163, allocations: 1.223 MB / 0.5595 GB, free: 4.586 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003318/0.6167, allocations: 149.3 kB / 0.5596 GB, free: 4.422 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.391e-05/0.6168, allocations: 45.77 kB / 0.5597 GB, free: 4.371 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.6168, allocations: 3.984 kB / 0.5597 GB, free: 4.367 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.6168, allocations: 42.45 kB / 0.5597 GB, free: 4.316 MB / 395.1 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.6168, allocations: 0 / 0.5597 GB, free: 4.316 MB / 395.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003188/0.6172, allocations: 127.5 kB / 0.5598 GB, free: 4.188 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.6173, allocations: 81.14 kB / 0.5599 GB, free: 4.09 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.6174, allocations: 147.5 kB / 0.5601 GB, free: 3.938 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.6174, allocations: 25.7 kB / 0.5601 GB, free: 3.906 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.6176, allocations: 155.9 kB / 0.5602 GB, free: 3.75 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.056e-05/0.6176, allocations: 43.3 kB / 0.5603 GB, free: 3.707 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-06/0.6176, allocations: 0 / 0.5603 GB, free: 3.707 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.6178, allocations: 326.8 kB / 0.5606 GB, free: 3.379 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.04e-05/0.6178, allocations: 43.98 kB / 0.5606 GB, free: 3.336 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.618, allocations: 111 kB / 0.5607 GB, free: 3.191 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.087e-05/0.6181, allocations: 55.97 kB / 0.5608 GB, free: 3.137 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.6181, allocations: 4 kB / 0.5608 GB, free: 3.133 MB / 395.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002656/0.6184, allocations: 188.6 kB / 0.561 GB, free: 2.945 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.6184, allocations: 4 kB / 0.561 GB, free: 2.941 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.6184, allocations: 4 kB / 0.561 GB, free: 2.938 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.6184, allocations: 7.953 kB / 0.561 GB, free: 2.93 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.6186, allocations: 51.91 kB / 0.561 GB, free: 2.879 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.6186, allocations: 4 kB / 0.561 GB, free: 2.875 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.652e-05/0.6187, allocations: 15.75 kB / 0.561 GB, free: 2.859 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.6188, allocations: 12 kB / 0.5611 GB, free: 2.848 MB / 395.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * 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.0001023/0.6189, allocations: 113.1 kB / 0.5612 GB, free: 2.73 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001932/0.6191, allocations: 125.5 kB / 0.5613 GB, free: 2.602 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.517e-05/0.6191, allocations: 19.8 kB / 0.5613 GB, free: 2.582 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002757/0.6194, allocations: 139.5 kB / 0.5614 GB, free: 2.445 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.6194, allocations: 4 kB / 0.5614 GB, free: 2.441 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.6194, allocations: 3.938 kB / 0.5614 GB, free: 2.438 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.6194, allocations: 0 / 0.5614 GB, free: 2.438 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006025/0.62, allocations: 469.4 kB / 0.5619 GB, free: 1.926 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.6201, allocations: 0 / 0.5619 GB, free: 1.926 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.6202, allocations: 35.92 kB / 0.5619 GB, free: 1.891 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.6202, allocations: 0 / 0.5619 GB, free: 1.891 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/0.6203, allocations: 11.98 kB / 0.5619 GB, free: 1.879 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.6203, allocations: 0 / 0.5619 GB, free: 1.879 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.6203, allocations: 4 kB / 0.5619 GB, free: 1.875 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004032/0.6207, allocations: 361.6 kB / 0.5623 GB, free: 1.469 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.029e-05/0.6208, allocations: 96.98 kB / 0.5624 GB, free: 1.355 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.899e-05/0.6208, allocations: 7.938 kB / 0.5624 GB, free: 1.348 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.898e-05/0.6209, allocations: 3.953 kB / 0.5624 GB, free: 1.344 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.208e-05/0.6209, allocations: 11.92 kB / 0.5624 GB, free: 1.332 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.621, allocations: 4 kB / 0.5624 GB, free: 1.328 MB / 395.1 MB Notification: Performance of sorting global known variables: time 8.893e-05/0.621, allocations: 128.3 kB / 0.5625 GB, free: 1.203 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6211, allocations: 0 / 0.5625 GB, free: 1.203 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003234/0.6214, allocations: 47.84 kB / 0.5626 GB, free: 1.156 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * 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.0007371/0.6221, allocations: 1.168 MB / 0.5637 GB, free: 15.93 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0002088/0.6223, allocations: 108.4 kB / 0.5638 GB, free: 15.83 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.6224, allocations: 0 / 0.5638 GB, free: 15.83 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 8.002e-05/0.6224, allocations: 56.52 kB / 0.5639 GB, free: 15.77 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003023/0.6228, allocations: 28.91 kB / 0.5639 GB, free: 15.75 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.6238, allocations: 446.4 kB / 0.5643 GB, free: 15.26 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.6241, allocations: 0.7479 MB / 0.5651 GB, free: 14.49 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.6243, allocations: 33.83 kB / 0.5651 GB, free: 14.45 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.408e-05/0.6244, allocations: 63.41 kB / 0.5652 GB, free: 14.39 MB / 411.1 MB Notification: Performance of SimCode: time 2.574e-06/0.6244, allocations: 0 / 0.5652 GB, free: 14.39 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02634/0.6507, allocations: 2.717 MB / 0.5678 GB, free: 11.68 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.651, allocations: 147 kB / 0.5679 GB, free: 11.48 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.741/2.392, allocations: 8.031 kB / 0.568 GB, free: 11.47 MB / 411.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) 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