Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00256/0.002559, allocations: 186.8 kB / 7.803 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.67/1.67, allocations: 205.2 MB / 213.4 MB, free: 13.95 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001257/0.001257, allocations: 98.47 kB / 261.4 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2629/0.2629, allocations: 37.97 MB / 347.3 MB, free: 7.555 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.148e-05/1.156e-05, allocations: 0 / 409.3 MB, free: 47.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1528, allocations: 56.32 MB / 465.6 MB, free: 6.867 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3819/0.5347, allocations: 93.69 MB / 0.5462 GB, free: 1.215 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.5351, allocations: 87.95 kB / 0.5463 GB, free: 1.129 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.02863/0.5638, allocations: 6.288 MB / 0.5524 GB, free: 10.77 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.503e-05/0.5638, allocations: 4.844 kB / 0.5524 GB, free: 10.77 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001132/0.565, allocations: 0.5503 MB / 0.553 GB, free: 10.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.565, allocations: 8.031 kB / 0.553 GB, free: 10.17 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.5651, allocations: 31.62 kB / 0.553 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/0.5672, allocations: 0.5952 MB / 0.5536 GB, free: 9.496 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.5672, allocations: 8 kB / 0.5536 GB, free: 9.488 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.23e-05/0.5673, allocations: 15.91 kB / 0.5536 GB, free: 9.473 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005941/0.5679, allocations: 196.9 kB / 0.5538 GB, free: 9.281 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006407/0.5685, allocations: 285 kB / 0.5541 GB, free: 8.977 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.5686, allocations: 7.875 kB / 0.5541 GB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.5686, allocations: 0 / 0.5541 GB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.5686, allocations: 8 kB / 0.5541 GB, free: 8.961 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002304/0.571, allocations: 1.305 MB / 0.5554 GB, free: 7.574 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000422/0.5714, allocations: 137.1 kB / 0.5555 GB, free: 7.422 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.5716, allocations: 65.75 kB / 0.5556 GB, free: 7.352 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.5716, allocations: 0 / 0.5556 GB, free: 7.352 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.5717, allocations: 38.5 kB / 0.5556 GB, free: 7.305 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 2.004e-06/0.5717, allocations: 0 / 0.5556 GB, free: 7.305 MB / 394.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008859/0.5726, allocations: 292.8 kB / 0.5559 GB, free: 7.012 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.428e-05/0.5727, allocations: 77.33 kB / 0.5559 GB, free: 6.918 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000322/0.573, allocations: 223.3 kB / 0.5562 GB, free: 6.691 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.573, allocations: 33.64 kB / 0.5562 GB, free: 6.652 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.5732, allocations: 222.2 kB / 0.5564 GB, free: 6.434 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.082e-05/0.5732, allocations: 51.3 kB / 0.5565 GB, free: 6.383 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.336e-05/0.5733, allocations: 0 / 0.5565 GB, free: 6.383 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.5734, allocations: 318.8 kB / 0.5568 GB, free: 6.062 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.5736, allocations: 47.98 kB / 0.5568 GB, free: 6.016 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.5738, allocations: 144.8 kB / 0.5569 GB, free: 5.828 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002006/0.574, allocations: 72.28 kB / 0.557 GB, free: 5.758 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.574, allocations: 4 kB / 0.557 GB, free: 5.754 MB / 394.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005433/0.5746, allocations: 213.2 kB / 0.5572 GB, free: 5.539 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.5746, allocations: 4 kB / 0.5572 GB, free: 5.535 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.5746, allocations: 8 kB / 0.5572 GB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.5747, allocations: 4 kB / 0.5572 GB, free: 5.523 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003848/0.5751, allocations: 47.91 kB / 0.5573 GB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.5751, allocations: 7.938 kB / 0.5573 GB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001742/0.5753, allocations: 4.438 kB / 0.5573 GB, free: 5.465 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.848e-05/0.5753, allocations: 12 kB / 0.5573 GB, free: 5.453 MB / 394.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 8.122e-05/0.5754, allocations: 49.44 kB / 0.5574 GB, free: 5.398 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-05/0.5755, allocations: 23.72 kB / 0.5574 GB, free: 5.375 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005236/0.576, allocations: 184.5 kB / 0.5575 GB, free: 5.191 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.576, allocations: 4 kB / 0.5576 GB, free: 5.188 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.5761, allocations: 0 / 0.5576 GB, free: 5.188 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.5761, allocations: 3.906 kB / 0.5576 GB, free: 5.184 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009925/0.5771, allocations: 0.505 MB / 0.5581 GB, free: 4.633 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.5771, allocations: 3.984 kB / 0.5581 GB, free: 4.629 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002849/0.5774, allocations: 28 kB / 0.5581 GB, free: 4.602 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.244e-05/0.5774, allocations: 7.891 kB / 0.5581 GB, free: 4.594 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.5775, allocations: 0 / 0.5581 GB, free: 4.594 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.5775, allocations: 4 kB / 0.5581 GB, free: 4.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.5775, allocations: 0 / 0.5581 GB, free: 4.59 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004932/0.578, allocations: 312.2 kB / 0.5584 GB, free: 4.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.5781, allocations: 100.7 kB / 0.5585 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.678e-05/0.5782, allocations: 0 / 0.5585 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.5784, allocations: 0 / 0.5585 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.604e-05/0.5785, allocations: 7.984 kB / 0.5585 GB, free: 4.125 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.5785, allocations: 8 kB / 0.5585 GB, free: 4.117 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0002253/0.5787, allocations: 175.1 kB / 0.5587 GB, free: 3.949 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004669/0.5792, allocations: 52 kB / 0.5587 GB, free: 3.898 MB / 394.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.000207/0.5794, allocations: 127 kB / 0.5588 GB, free: 3.762 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004137/0.5799, allocations: 139.8 kB / 0.559 GB, free: 3.625 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.5799, allocations: 0.875 kB / 0.559 GB, free: 3.625 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001804/0.5801, allocations: 71.91 kB / 0.559 GB, free: 3.555 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005793/0.5807, allocations: 45.08 kB / 0.5591 GB, free: 3.504 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.5817, allocations: 385.9 kB / 0.5595 GB, free: 3.094 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006084/0.5824, allocations: 0.8138 MB / 0.5602 GB, free: 2.254 MB / 394.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5824, allocations: 3.938 kB / 0.5603 GB, free: 2.25 MB / 394.7 MB Notification: Performance of Templates: time 0.00769/0.5901, allocations: 3.19 MB / 0.5634 GB, free: 15.06 MB / 410.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1)