Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.001082/0.001082, allocations: 183.9 kB / 8.135 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.37/1.37, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.001075/0.001075, allocations: 87.97 kB / 261.7 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1978/0.1978, allocations: 37.97 MB / 347.7 MB, free: 7.527 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2063/0.4042, allocations: 62.43 MB / 410.1 MB, free: 46.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.5095, allocations: 56.32 MB / 466.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2891/0.7987, allocations: 93.92 MB / 0.5472 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.799, allocations: 77.11 kB / 0.5473 GB, free: 0.5117 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0339/0.8329, allocations: 14.31 MB / 0.5613 GB, free: 2.012 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.833, allocations: 8 kB / 0.5613 GB, free: 2.004 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009111/0.8339, allocations: 95.59 kB / 0.5614 GB, free: 1.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003837/0.8343, allocations: 274.5 kB / 0.5616 GB, free: 1.602 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.8343, allocations: 4 kB / 0.5616 GB, free: 1.598 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.919e-05/0.8344, allocations: 8 kB / 0.5616 GB, free: 1.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003471/0.8347, allocations: 204.3 kB / 0.5618 GB, free: 1.391 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004118/0.8351, allocations: 289.7 kB / 0.5621 GB, free: 1.082 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.8352, allocations: 0 / 0.5621 GB, free: 1.082 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.8352, allocations: 4 kB / 0.5621 GB, free: 1.078 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-05/0.8353, allocations: 27.98 kB / 0.5621 GB, free: 1.051 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.8372, allocations: 1.302 MB / 0.5634 GB, free: 15.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003279/0.8375, allocations: 213 kB / 0.5636 GB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.8376, allocations: 105.7 kB / 0.5637 GB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.8377, allocations: 288 / 0.5637 GB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.8377, allocations: 42.56 kB / 0.5637 GB, free: 15.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.8377, allocations: 0 / 0.5637 GB, free: 15.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006738/0.8384, allocations: 348.2 kB / 0.5641 GB, free: 14.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.8384, allocations: 77.11 kB / 0.5642 GB, free: 14.83 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001694/0.8386, allocations: 175.1 kB / 0.5643 GB, free: 14.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.8387, allocations: 25.7 kB / 0.5643 GB, free: 14.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.13e-05/0.8387, allocations: 148 kB / 0.5645 GB, free: 14.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.449e-05/0.8388, allocations: 55.23 kB / 0.5645 GB, free: 14.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.014e-05/0.8388, allocations: 0 / 0.5645 GB, free: 14.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.8389, allocations: 334.7 kB / 0.5649 GB, free: 14.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.8391, allocations: 80.44 kB / 0.5649 GB, free: 13.99 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.8392, allocations: 150.6 kB / 0.5651 GB, free: 13.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001491/0.8394, allocations: 105.3 kB / 0.5652 GB, free: 13.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.8394, allocations: 0 / 0.5652 GB, free: 13.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003835/0.8398, allocations: 277 kB / 0.5654 GB, free: 13.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.8398, allocations: 4 kB / 0.5654 GB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.8398, allocations: 7.938 kB / 0.5655 GB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.8398, allocations: 7.984 kB / 0.5655 GB, free: 13.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002461/0.8401, allocations: 51.91 kB / 0.5655 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.066e-06/0.8401, allocations: 4 kB / 0.5655 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.8403, allocations: 7.984 kB / 0.5655 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.8403, allocations: 16.28 kB / 0.5655 GB, free: 13.34 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * Single equations (assignments): 27 * 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 8.775e-05/0.8404, allocations: 112.9 kB / 0.5656 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.74e-05/0.8404, allocations: 19.72 kB / 0.5657 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003613/0.8408, allocations: 215.1 kB / 0.5659 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.8408, allocations: 7.984 kB / 0.5659 GB, free: 12.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.8408, allocations: 0 / 0.5659 GB, free: 12.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.8409, allocations: 3.938 kB / 0.5659 GB, free: 12.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/0.8423, allocations: 1.08 MB / 0.5669 GB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.8423, allocations: 4 kB / 0.5669 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001485/0.8424, allocations: 36.45 kB / 0.567 GB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.435e-05/0.8425, allocations: 8 kB / 0.567 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.8425, allocations: 15.92 kB / 0.567 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/0.8425, allocations: 7.906 kB / 0.567 GB, free: 11.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.8425, allocations: 8 kB / 0.567 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005138/0.843, allocations: 0.6119 MB / 0.5676 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005719/0.8436, allocations: 0.9678 MB / 0.5686 GB, free: 9.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.895e-05/0.8437, allocations: 104.9 kB / 0.5687 GB, free: 9.629 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.81e-05/0.8438, allocations: 7.984 kB / 0.5687 GB, free: 9.621 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.8439, allocations: 4 kB / 0.5687 GB, free: 9.617 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.844, allocations: 23.89 kB / 0.5687 GB, free: 9.594 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.844, allocations: 8 kB / 0.5687 GB, free: 9.586 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001119/0.8441, allocations: 147 kB / 0.5688 GB, free: 9.441 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009522/0.8451, allocations: 56 kB / 0.5689 GB, free: 9.387 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 simulation (18): * Single equations (assignments): 17 * 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.0001829/0.8453, allocations: 107.1 kB / 0.569 GB, free: 9.273 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003339/0.8456, allocations: 200.3 kB / 0.5692 GB, free: 9.078 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.8456, allocations: 0 / 0.5692 GB, free: 9.078 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.8458, allocations: 97.14 kB / 0.5693 GB, free: 8.984 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.8461, allocations: 44.42 kB / 0.5693 GB, free: 8.938 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008101/0.8469, allocations: 428.2 kB / 0.5697 GB, free: 8.441 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004365/0.8474, allocations: 0.7978 MB / 0.5705 GB, free: 7.617 MB / 410.7 MB Notification: Performance of SimCode: time 3.1e-07/0.8474, allocations: 0 / 0.5705 GB, free: 7.617 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat does not exist to compare? outputFormat=mat