Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",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.2+maint.om/package.mo): time 0.0009945/0.0009946, allocations: 183.4 kB / 8.137 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.086/1.086, allocations: 194.2 MB / 202.8 MB, free: 8.66 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001732/0.001732, allocations: 125.7 kB / 247.7 MB, free: 6.379 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1652/0.1652, allocations: 37.91 MB / 330.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1919/0.3572, allocations: 59.35 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07758/0.4348, allocations: 53.22 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2674/0.7023, allocations: 88.64 MB / 0.5193 GB, free: 10.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000324/0.7027, allocations: 86.14 kB / 0.5194 GB, free: 10.57 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.02/0.7227, allocations: 6.827 MB / 0.526 GB, free: 7.703 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.7227, allocations: 9.562 kB / 0.5261 GB, free: 7.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001597/0.7229, allocations: 35.59 kB / 0.5261 GB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001693/0.7246, allocations: 0.5933 MB / 0.5267 GB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.7246, allocations: 7.438 kB / 0.5267 GB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.252e-05/0.7247, allocations: 12.09 kB / 0.5267 GB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003655/0.7251, allocations: 199.9 kB / 0.5269 GB, free: 7.293 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00041/0.7255, allocations: 295.2 kB / 0.5272 GB, free: 7.141 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.7255, allocations: 1.125 kB / 0.5272 GB, free: 7.141 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.495e-05/0.7255, allocations: 1.094 kB / 0.5272 GB, free: 7.141 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.7256, allocations: 5.625 kB / 0.5272 GB, free: 7.141 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.7271, allocations: 1.295 MB / 0.5284 GB, free: 6.113 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000307/0.7274, allocations: 134.2 kB / 0.5286 GB, free: 6.047 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.339e-05/0.7275, allocations: 58.89 kB / 0.5286 GB, free: 6.027 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.7275, allocations: 6.125 kB / 0.5286 GB, free: 6.023 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.7276, allocations: 31.91 kB / 0.5287 GB, free: 5.984 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.795e-06/0.7276, allocations: 0 / 0.5287 GB, free: 5.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006376/0.7282, allocations: 306.6 kB / 0.5289 GB, free: 5.832 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.822e-05/0.7283, allocations: 83.31 kB / 0.529 GB, free: 5.734 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.7285, allocations: 216.9 kB / 0.5292 GB, free: 5.613 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.7285, allocations: 26.95 kB / 0.5293 GB, free: 5.582 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.005e-05/0.7285, allocations: 173 kB / 0.5294 GB, free: 5.438 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.337e-05/0.7286, allocations: 44.61 kB / 0.5295 GB, free: 5.406 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.027e-06/0.7286, allocations: 0 / 0.5295 GB, free: 5.406 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.195e-05/0.7287, allocations: 339.8 kB / 0.5298 GB, free: 5.078 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.259e-05/0.7288, allocations: 50.23 kB / 0.5298 GB, free: 5.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.7289, allocations: 139 kB / 0.53 GB, free: 4.945 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.729, allocations: 77.42 kB / 0.53 GB, free: 4.922 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.729, allocations: 4 kB / 0.53 GB, free: 4.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003382/0.7294, allocations: 217.7 kB / 0.5303 GB, free: 4.836 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.7294, allocations: 8.266 kB / 0.5303 GB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.7294, allocations: 4.906 kB / 0.5303 GB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.7294, allocations: 9.219 kB / 0.5303 GB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001982/0.7296, allocations: 47.42 kB / 0.5303 GB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.7296, allocations: 16.08 kB / 0.5303 GB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.7298, allocations: 12.66 kB / 0.5303 GB, free: 4.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.7298, allocations: 7.969 kB / 0.5304 GB, free: 4.801 MB / 346.7 MB 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 (25): * Single equations (assignments): 25 * 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 6.82e-05/0.7299, allocations: 111.8 kB / 0.5305 GB, free: 4.688 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.379e-05/0.73, allocations: 22.91 kB / 0.5305 GB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003435/0.7303, allocations: 190.8 kB / 0.5307 GB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.7303, allocations: 2.219 kB / 0.5307 GB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.7303, allocations: 5.125 kB / 0.5307 GB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.7304, allocations: 1.156 kB / 0.5307 GB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005482/0.7309, allocations: 0.5042 MB / 0.5312 GB, free: 4.262 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.7309, allocations: 3.906 kB / 0.5312 GB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.7311, allocations: 26.86 kB / 0.5312 GB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.7311, allocations: 1.25 kB / 0.5312 GB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.7311, allocations: 6.516 kB / 0.5312 GB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.7311, allocations: 5.219 kB / 0.5312 GB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.7312, allocations: 1.312 kB / 0.5312 GB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002884/0.7314, allocations: 305.5 kB / 0.5315 GB, free: 4.027 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002991/0.7318, allocations: 0.6743 MB / 0.5322 GB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.336e-05/0.7318, allocations: 103.2 kB / 0.5323 GB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.143e-05/0.7319, allocations: 1.312 kB / 0.5323 GB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.732, allocations: 5.312 kB / 0.5323 GB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.43e-05/0.732, allocations: 11.89 kB / 0.5323 GB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.732, allocations: 7.188 kB / 0.5323 GB, free: 3.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001174/0.7322, allocations: 168.8 kB / 0.5324 GB, free: 3.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009172/0.7331, allocations: 53.16 kB / 0.5325 GB, free: 3.227 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 16 * 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.0001545/0.7333, allocations: 113.1 kB / 0.5326 GB, free: 3.125 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002353/0.7335, allocations: 141.2 kB / 0.5327 GB, free: 3.105 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.7335, allocations: 5.312 kB / 0.5327 GB, free: 3.102 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.969e-05/0.7336, allocations: 75.38 kB / 0.5328 GB, free: 3.086 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.734, allocations: 41.02 kB / 0.5329 GB, free: 3.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006883/0.7347, allocations: 343.3 kB / 0.5332 GB, free: 2.883 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002856/0.735, allocations: 0.8206 MB / 0.534 GB, free: 2.125 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.735, allocations: 1.281 kB / 0.534 GB, free: 2.125 MB / 346.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1)