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.0009906/0.0009906, allocations: 95.28 kB / 16.3 MB, free: 5.996 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.001035/0.001035, allocations: 184 kB / 17.2 MB, free: 5.914 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.227/1.227, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2697/0.2697, allocations: 38.07 MB / 330.3 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002794/0.0002794, allocations: 11.98 kB / 400.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2548, allocations: 59.16 MB / 459.2 MB, free: 30.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003119/0.2579, allocations: 2.997 MB / 462.2 MB, free: 28.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.2592, allocations: 1.171 MB / 463.4 MB, free: 27.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.2594, allocations: 11.5 kB / 463.4 MB, free: 27.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.2595, allocations: 30.34 kB / 463.4 MB, free: 27.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003645/0.2599, allocations: 136.5 kB / 463.6 MB, free: 27.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002109/0.2601, allocations: 104.4 kB / 463.7 MB, free: 27.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002239/0.2603, allocations: 161.3 kB / 463.8 MB, free: 27.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004206/0.2608, allocations: 246 kB / 464.1 MB, free: 26.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.2609, allocations: 94.92 kB / 464.1 MB, free: 26.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.2611, allocations: 74.19 kB / 464.2 MB, free: 26.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.2611, allocations: 7.938 kB / 464.2 MB, free: 26.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002143/0.2613, allocations: 106.5 kB / 464.3 MB, free: 26.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.003e-05/0.2614, allocations: 51.56 kB / 464.4 MB, free: 26.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.306e-05/0.2614, allocations: 59.89 kB / 464.4 MB, free: 26.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002721/0.2617, allocations: 207.5 kB / 464.6 MB, free: 26.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.2617, allocations: 3.938 kB / 464.6 MB, free: 26.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2617, allocations: 0.9688 kB / 464.6 MB, free: 26.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.2617, allocations: 0 / 464.6 MB, free: 26.75 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.0004897/0.2622, allocations: 462.8 kB / 465.1 MB, free: 26.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.2623, allocations: 8.562 kB / 465.1 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.907e-05/0.2623, allocations: 53.72 kB / 465.2 MB, free: 26.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006536/0.263, allocations: 83.98 kB / 465.2 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/0.2633, allocations: 261 kB / 465.5 MB, free: 26.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.2633, allocations: 15.91 kB / 465.5 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.718e-05/0.2633, allocations: 14.72 kB / 465.5 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004229/0.2638, allocations: 265.3 kB / 465.8 MB, free: 25.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.2638, allocations: 5.609 kB / 465.8 MB, free: 25.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.622e-05/0.2638, allocations: 6.094 kB / 465.8 MB, free: 25.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.194e-05/0.2639, allocations: 20.45 kB / 465.8 MB, free: 25.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003374/0.2642, allocations: 219.5 kB / 466 MB, free: 25.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.2655, allocations: 1.216 MB / 467.2 MB, free: 24.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001965/0.2657, allocations: 135.7 kB / 467.4 MB, free: 24.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.2657, allocations: 1.562 kB / 467.4 MB, free: 24.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.944e-05/0.2658, allocations: 36.7 kB / 467.4 MB, free: 24.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.342e-06/0.2658, allocations: 0 / 467.4 MB, free: 24.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002974/0.2661, allocations: 157.8 kB / 467.6 MB, free: 24.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.235e-05/0.2661, allocations: 87.52 kB / 467.7 MB, free: 24.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.2663, allocations: 216.1 kB / 467.9 MB, free: 24.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.2663, allocations: 26.27 kB / 467.9 MB, free: 24.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/0.2664, allocations: 155.1 kB / 468 MB, free: 24.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.949e-05/0.2664, allocations: 46.25 kB / 468.1 MB, free: 24.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/0.2664, allocations: 7.938 kB / 468.1 MB, free: 24.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.318e-05/0.2665, allocations: 329.4 kB / 468.4 MB, free: 23.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.146e-05/0.2666, allocations: 41.95 kB / 468.5 MB, free: 23.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.358e-05/0.2667, allocations: 125.5 kB / 468.6 MB, free: 23.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.205e-05/0.2668, allocations: 62.34 kB / 468.6 MB, free: 23.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2668, allocations: 1 kB / 468.6 MB, free: 23.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002563/0.267, allocations: 207.5 kB / 468.8 MB, free: 23.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.2671, allocations: 6.656 kB / 468.9 MB, free: 23.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2671, allocations: 3.031 kB / 468.9 MB, free: 23.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.2671, allocations: 7.844 kB / 468.9 MB, free: 23.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/0.2673, allocations: 50.03 kB / 468.9 MB, free: 23.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006296/0.268, allocations: 1.35 MB / 470.3 MB, free: 22.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.905e-05/0.2681, allocations: 17.94 kB / 470.3 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.2681, allocations: 13.3 kB / 470.3 MB, free: 22.13 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 9.443e-05/0.2682, allocations: 139.8 kB / 470.4 MB, free: 22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.595e-05/0.2682, allocations: 15.97 kB / 470.4 MB, free: 22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002046/0.2684, allocations: 142.8 kB / 470.6 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.2685, allocations: 1.984 kB / 470.6 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.2685, allocations: 1.5 kB / 470.6 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.2685, allocations: 4.562 kB / 470.6 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005307/0.269, allocations: 499 kB / 471.1 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.269, allocations: 0.9688 kB / 471.1 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.2692, allocations: 28.53 kB / 471.1 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.2692, allocations: 3.203 kB / 471.1 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.2692, allocations: 13.33 kB / 471.1 MB, free: 21.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005237/0.2697, allocations: 1.328 MB / 472.5 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.2698, allocations: 9.062 kB / 472.5 MB, free: 20.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002648/0.27, allocations: 335.3 kB / 472.8 MB, free: 19.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.77e-05/0.2701, allocations: 94.86 kB / 472.9 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.2701, allocations: 3.047 kB / 472.9 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.088e-05/0.2702, allocations: 6.062 kB / 472.9 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.432e-05/0.2702, allocations: 8.562 kB / 472.9 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.2703, allocations: 4.188 kB / 472.9 MB, free: 19.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001044/0.2704, allocations: 150 kB / 473.1 MB, free: 19.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2704, allocations: 1.25 kB / 473.1 MB, free: 19.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003145/0.2707, allocations: 58.8 kB / 473.1 MB, free: 19.64 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.0004555/0.2711, allocations: 1.075 MB / 474.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002756/0.2714, allocations: 124.5 kB / 474.3 MB, free: 18.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2714, allocations: 0 / 474.3 MB, free: 18.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001465/0.2716, allocations: 63.33 kB / 474.4 MB, free: 18.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.2719, allocations: 34.22 kB / 474.4 MB, free: 18.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001889/0.2738, allocations: 2.963 MB / 477.4 MB, free: 16.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001978/0.274, allocations: 0.7485 MB / 478.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.974e-05/0.2741, allocations: 32.69 kB / 478.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.617e-05/0.2742, allocations: 57.34 kB / 478.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2742, allocations: 0 / 478.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01527/0.2895, allocations: 3.4 MB / 481.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/0.2897, allocations: 212.8 kB / 481.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.739/2.029, allocations: 1.406 kB / 481.8 MB, free: 14.29 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