Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",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.001407/0.001407, allocations: 178.2 kB / 8.134 MB, free: 2.191 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.399/1.399, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.000875/0.0008749, allocations: 82.56 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1748/0.1748, allocations: 37.97 MB / 347.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1862/0.3611, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09506/0.4561, allocations: 56.31 MB / 466.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3041/0.7603, allocations: 98.61 MB / 0.5518 GB, free: 11.88 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/0.7606, allocations: 75.97 kB / 0.5519 GB, free: 11.8 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.05582/0.8164, allocations: 19.73 MB / 0.5711 GB, free: 7.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.8164, allocations: 12 kB / 0.5711 GB, free: 7.809 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007685/0.8172, allocations: 142.8 kB / 0.5713 GB, free: 7.668 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002184/0.8194, allocations: 0.8667 MB / 0.5721 GB, free: 6.758 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.069e-05/0.8195, allocations: 24 kB / 0.5721 GB, free: 6.734 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/0.8197, allocations: 44.75 kB / 0.5722 GB, free: 6.691 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001364/0.821, allocations: 0.6911 MB / 0.5729 GB, free: 6 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.8225, allocations: 1.009 MB / 0.5738 GB, free: 4.883 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.219e-05/0.8226, allocations: 7.938 kB / 0.5738 GB, free: 4.875 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.525e-05/0.8227, allocations: 4 kB / 0.5738 GB, free: 4.871 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.947e-05/0.8227, allocations: 41.98 kB / 0.5739 GB, free: 4.832 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005504/0.8283, allocations: 4.865 MB / 0.5786 GB, free: 15.74 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000675/0.829, allocations: 385.7 kB / 0.579 GB, free: 15.34 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002809/0.8293, allocations: 210.4 kB / 0.5792 GB, free: 15.13 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.995e-05/0.8293, allocations: 12.33 kB / 0.5792 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.8294, allocations: 42.81 kB / 0.5793 GB, free: 15.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=47): time 3.066e-06/0.8294, allocations: 0 / 0.5793 GB, free: 15.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.001748/0.8311, allocations: 0.9072 MB / 0.5801 GB, free: 14.15 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.8312, allocations: 85.05 kB / 0.5802 GB, free: 14.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004146/0.8316, allocations: 396.9 kB / 0.5806 GB, free: 13.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.8317, allocations: 25.7 kB / 0.5806 GB, free: 13.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002196/0.8319, allocations: 413.7 kB / 0.581 GB, free: 13.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.832, allocations: 169.6 kB / 0.5812 GB, free: 13.05 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.489e-05/0.832, allocations: 0 / 0.5812 GB, free: 13.05 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.8322, allocations: 362.8 kB / 0.5815 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003342/0.8325, allocations: 229.7 kB / 0.5818 GB, free: 12.46 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005875/0.8331, allocations: 0.5983 MB / 0.5823 GB, free: 11.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006222/0.8338, allocations: 363.6 kB / 0.5827 GB, free: 11.32 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.8338, allocations: 8 kB / 0.5827 GB, free: 11.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.001295/0.8351, allocations: 0.8211 MB / 0.5835 GB, free: 10.48 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.8351, allocations: 5.406 kB / 0.5835 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.8351, allocations: 16 kB / 0.5835 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.545e-05/0.8352, allocations: 20 kB / 0.5835 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007084/0.8359, allocations: 196.3 kB / 0.5837 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.137e-05/0.8359, allocations: 31.92 kB / 0.5837 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004825/0.8364, allocations: 23.89 kB / 0.5838 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-05/0.8365, allocations: 40 kB / 0.5838 GB, free: 10.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (97): * Single equations (assignments): 95 * Array equations: 2 * 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.0001375/0.8366, allocations: 136.6 kB / 0.5839 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.8368, allocations: 59.25 kB / 0.584 GB, free: 9.961 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009914/0.8378, allocations: 0.5498 MB / 0.5845 GB, free: 9.406 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-05/0.8378, allocations: 15.94 kB / 0.5845 GB, free: 9.391 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.8378, allocations: 0 / 0.5845 GB, free: 9.391 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.8378, allocations: 3.984 kB / 0.5846 GB, free: 9.387 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/0.8399, allocations: 1.222 MB / 0.5857 GB, free: 8.098 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.8399, allocations: 4 kB / 0.5858 GB, free: 8.094 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004624/0.8404, allocations: 107.8 kB / 0.5859 GB, free: 7.988 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.195e-05/0.8404, allocations: 8 kB / 0.5859 GB, free: 7.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.303e-05/0.8404, allocations: 7.906 kB / 0.5859 GB, free: 7.973 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.8405, allocations: 4.25 kB / 0.5859 GB, free: 7.969 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.8405, allocations: 4 kB / 0.5859 GB, free: 7.965 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000901/0.8414, allocations: 0.7741 MB / 0.5866 GB, free: 7.09 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009792/0.8424, allocations: 1.156 MB / 0.5878 GB, free: 5.828 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000148/0.8425, allocations: 124.4 kB / 0.5879 GB, free: 5.688 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.449e-05/0.8426, allocations: 7.984 kB / 0.5879 GB, free: 5.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002875/0.8429, allocations: 11.98 kB / 0.5879 GB, free: 5.668 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.878e-05/0.843, allocations: 35.81 kB / 0.5879 GB, free: 5.633 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/0.843, allocations: 23.92 kB / 0.588 GB, free: 5.609 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.000287/0.8433, allocations: 279.2 kB / 0.5882 GB, free: 5.336 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001284/0.8446, allocations: 163.9 kB / 0.5884 GB, free: 5.176 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (48): * Single equations (assignments): 45 * Array equations: 2 * 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.000221/0.8448, allocations: 143 kB / 0.5885 GB, free: 5.023 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008444/0.8457, allocations: 0.5859 MB / 0.5891 GB, free: 4.438 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.8457, allocations: 0 / 0.5891 GB, free: 4.438 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003137/0.846, allocations: 249.9 kB / 0.5893 GB, free: 4.195 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004773/0.8465, allocations: 92.69 kB / 0.5894 GB, free: 4.109 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001809/0.8483, allocations: 1.043 MB / 0.5904 GB, free: 3.008 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007124/0.849, allocations: 1.07 MB / 0.5915 GB, free: 1.91 MB / 426.7 MB Notification: Performance of SimCode: time 2.81e-07/0.8491, allocations: 0 / 0.5915 GB, free: 1.91 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1)