Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001027/0.001027, allocations: 182 kB / 8.129 MB, free: 2.219 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.202/1.202, allocations: 205.2 MB / 213.7 MB, free: 13.88 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000838/0.0008381, allocations: 85.19 kB / 261.7 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1663/0.1663, allocations: 37.98 MB / 347.7 MB, free: 7.543 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1875/0.3539, allocations: 62.43 MB / 410.1 MB, free: 46.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08865/0.4426, allocations: 56.32 MB / 466.4 MB, free: 6.402 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3139/0.7565, allocations: 97.17 MB / 0.5504 GB, free: 13.34 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.7568, allocations: 85.33 kB / 0.5505 GB, free: 13.26 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.06289/0.8197, allocations: 24.21 MB / 0.5741 GB, free: 4.754 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.8198, allocations: 8 kB / 0.5741 GB, free: 4.746 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002006/0.8218, allocations: 211.1 kB / 0.5743 GB, free: 4.539 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007072/0.8225, allocations: 374.1 kB / 0.5747 GB, free: 4.137 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.8226, allocations: 16 kB / 0.5747 GB, free: 4.121 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.8227, allocations: 31.91 kB / 0.5747 GB, free: 4.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008024/0.8235, allocations: 441.8 kB / 0.5751 GB, free: 3.656 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000924/0.8244, allocations: 0.5619 MB / 0.5757 GB, free: 3.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.8245, allocations: 4 kB / 0.5757 GB, free: 3.066 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.213e-05/0.8245, allocations: 0 / 0.5757 GB, free: 3.066 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001411/0.8247, allocations: 48.88 kB / 0.5757 GB, free: 3.02 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003533/0.8282, allocations: 2.221 MB / 0.5779 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006701/0.8289, allocations: 465.7 kB / 0.5783 GB, free: 200 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000385/0.8293, allocations: 245.7 kB / 0.5786 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.702e-05/0.8294, allocations: 4 kB / 0.5786 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.8294, allocations: 42.56 kB / 0.5786 GB, free: 15.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=44): time 2.044e-06/0.8294, allocations: 0 / 0.5786 GB, free: 15.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.002325/0.8317, allocations: 1.24 MB / 0.5798 GB, free: 14.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.8318, allocations: 89.05 kB / 0.5799 GB, free: 14.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.832, allocations: 209 kB / 0.5801 GB, free: 14.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.8321, allocations: 25.7 kB / 0.5801 GB, free: 14.24 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.8322, allocations: 204 kB / 0.5803 GB, free: 14.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.8323, allocations: 149.8 kB / 0.5805 GB, free: 13.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/0.8323, allocations: 3.938 kB / 0.5805 GB, free: 13.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.8325, allocations: 346.8 kB / 0.5808 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002665/0.8328, allocations: 169 kB / 0.581 GB, free: 13.37 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003585/0.8331, allocations: 289.2 kB / 0.5813 GB, free: 13.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.8334, allocations: 225.4 kB / 0.5815 GB, free: 12.83 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.8335, allocations: 0 / 0.5815 GB, free: 12.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001233/0.8347, allocations: 0.6383 MB / 0.5821 GB, free: 12.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.8347, allocations: 5.406 kB / 0.5821 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.8347, allocations: 4.438 kB / 0.5821 GB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006081/0.8354, allocations: 160.7 kB / 0.5823 GB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.8358, allocations: 107.8 kB / 0.5824 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003188/0.839, allocations: 2.28 MB / 0.5846 GB, free: 9.512 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.8393, allocations: 11.98 kB / 0.5846 GB, free: 9.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.393e-05/0.8394, allocations: 23.98 kB / 0.5846 GB, free: 9.477 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedLoad.terminal.i[2]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (48): * Single equations (assignments): 47 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002097/0.8396, allocations: 116.9 kB / 0.5847 GB, free: 9.355 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.861e-05/0.8397, allocations: 35.53 kB / 0.5848 GB, free: 9.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/0.8409, allocations: 0.6163 MB / 0.5854 GB, free: 8.695 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.8409, allocations: 4 kB / 0.5854 GB, free: 8.691 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.8409, allocations: 3.906 kB / 0.5854 GB, free: 8.688 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.8409, allocations: 3.984 kB / 0.5854 GB, free: 8.684 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002431/0.8434, allocations: 1.333 MB / 0.5867 GB, free: 7.285 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.8434, allocations: 3.938 kB / 0.5867 GB, free: 7.281 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004273/0.8438, allocations: 79.89 kB / 0.5868 GB, free: 7.203 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004752/0.8443, allocations: 128.7 kB / 0.5869 GB, free: 7.074 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.089e-05/0.8444, allocations: 12.06 kB / 0.5869 GB, free: 7.062 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002847/0.8472, allocations: 2.146 MB / 0.589 GB, free: 4.801 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.8472, allocations: 0 / 0.589 GB, free: 4.801 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001636/0.8489, allocations: 0.9934 MB / 0.59 GB, free: 3.762 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00201/0.8509, allocations: 1.645 MB / 0.5916 GB, free: 2.066 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.851, allocations: 112.6 kB / 0.5917 GB, free: 1.938 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.503e-05/0.8511, allocations: 3.984 kB / 0.5917 GB, free: 1.934 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.8513, allocations: 4 kB / 0.5917 GB, free: 1.93 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.941e-05/0.8514, allocations: 35.89 kB / 0.5917 GB, free: 1.895 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.974e-05/0.8514, allocations: 8 kB / 0.5917 GB, free: 1.887 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0001691/0.8516, allocations: 161.2 kB / 0.5919 GB, free: 1.727 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001329/0.853, allocations: 128 kB / 0.592 GB, free: 1.602 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001762/0.8531, allocations: 107.2 kB / 0.5921 GB, free: 1.488 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.8544, allocations: 0.6341 MB / 0.5927 GB, free: 0.8438 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.8544, allocations: 0 / 0.5927 GB, free: 0.8438 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006913/0.8551, allocations: 406.5 kB / 0.5931 GB, free: 448 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.8555, allocations: 47.05 kB / 0.5932 GB, free: 404 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.8572, allocations: 0.9167 MB / 0.594 GB, free: 15.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006025/0.8578, allocations: 0.9136 MB / 0.5949 GB, free: 14.51 MB / 442.7 MB Notification: Performance of SimCode: time 3.01e-07/0.8578, allocations: 4 kB / 0.5949 GB, free: 14.5 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat does not exist to compare? outputFormat=mat