Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower",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/BuildingSystems 2.0.0-master/package.mo): time 0.7042/0.7042, allocations: 141.8 MB / 149.1 MB, free: 2.207 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 184 kB / 181.9 MB, free: 1.762 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.227/1.227, allocations: 221.4 MB / 436 MB, free: 6.566 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009171/0.000917, allocations: 108.5 kB / 0.507 GB, free: 3.246 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001709/0.001709, allocations: 276.7 kB / 0.5884 GB, free: 48.14 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.154/0.1557, allocations: 89.65 MB / 0.676 GB, free: 6.41 MB / 458.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.487, allocations: 82.77 MB / 0.7568 GB, free: 25.54 MB / 458.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1272/0.6142, allocations: 107.7 MB / 0.862 GB, free: 13.66 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.6145, allocations: 75.88 kB / 0.8621 GB, free: 13.59 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.01216/0.6267, allocations: 4.01 MB / 0.866 GB, free: 9.531 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.6268, allocations: 9 kB / 0.866 GB, free: 9.523 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.149e-05/0.6268, allocations: 0 / 0.866 GB, free: 9.523 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.567e-05/0.6269, allocations: 163 kB / 0.8662 GB, free: 9.324 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.6269, allocations: 0 / 0.8662 GB, free: 9.324 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.627, allocations: 3.906 kB / 0.8662 GB, free: 9.32 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.976e-05/0.627, allocations: 11.92 kB / 0.8662 GB, free: 9.309 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.024e-05/0.6271, allocations: 29.7 kB / 0.8662 GB, free: 9.273 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.53e-06/0.6271, allocations: 0 / 0.8662 GB, free: 9.273 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.6271, allocations: 0 / 0.8662 GB, free: 9.273 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.6271, allocations: 0 / 0.8662 GB, free: 9.273 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001103/0.6272, allocations: 126.2 kB / 0.8664 GB, free: 9.113 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 3.706e-05/0.6273, allocations: 18.56 kB / 0.8664 GB, free: 9.086 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.854e-05/0.6273, allocations: 8.859 kB / 0.8664 GB, free: 9.074 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004437/0.6277, allocations: 425.6 kB / 0.8668 GB, free: 8.566 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.6278, allocations: 30.56 kB / 0.8668 GB, free: 8.527 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=1): time 2.735e-06/0.6278, allocations: 0 / 0.8668 GB, free: 8.527 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1): time 0.0001559/0.6279, allocations: 41.48 kB / 0.8669 GB, free: 8.48 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.628, allocations: 59.39 kB / 0.8669 GB, free: 8.41 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.269e-05/0.628, allocations: 89.03 kB / 0.867 GB, free: 8.316 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.628, allocations: 25.7 kB / 0.867 GB, free: 8.285 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.362e-05/0.6281, allocations: 80.14 kB / 0.8671 GB, free: 8.203 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.317e-05/0.6281, allocations: 4 kB / 0.8671 GB, free: 8.199 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.355e-06/0.6281, allocations: 0 / 0.8671 GB, free: 8.199 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.6282, allocations: 310.8 kB / 0.8674 GB, free: 7.887 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.535e-06/0.6282, allocations: 0 / 0.8674 GB, free: 7.887 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.572e-06/0.6282, allocations: 0 / 0.8674 GB, free: 7.887 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.954e-05/0.6283, allocations: 8.062 kB / 0.8674 GB, free: 7.879 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.6283, allocations: 0 / 0.8674 GB, free: 7.879 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1) (initialization): time 8.151e-05/0.6284, allocations: 37.55 kB / 0.8674 GB, free: 7.836 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.6284, allocations: 7.125 kB / 0.8674 GB, free: 7.832 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.6284, allocations: 4 kB / 0.8675 GB, free: 7.828 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.6285, allocations: 3.984 kB / 0.8675 GB, free: 7.824 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.789e-05/0.6285, allocations: 0 / 0.8675 GB, free: 7.824 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.6285, allocations: 4 kB / 0.8675 GB, free: 7.82 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.071e-05/0.6285, allocations: 0 / 0.8675 GB, free: 7.82 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.6285, allocations: 0 / 0.8675 GB, free: 7.82 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 5.327e-05/0.6286, allocations: 109 kB / 0.8676 GB, free: 7.707 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.6286, allocations: 3.906 kB / 0.8676 GB, free: 7.703 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001/0.6287, allocations: 44.62 kB / 0.8676 GB, free: 7.652 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.6288, allocations: 0 / 0.8676 GB, free: 7.652 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.6288, allocations: 0 / 0.8676 GB, free: 7.652 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.6288, allocations: 4 kB / 0.8676 GB, free: 7.648 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.227e-05/0.6288, allocations: 122.2 kB / 0.8677 GB, free: 7.492 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6288, allocations: 4.031 kB / 0.8677 GB, free: 7.488 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.241e-05/0.6289, allocations: 0 / 0.8677 GB, free: 7.488 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.6289, allocations: 0 / 0.8677 GB, free: 7.488 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.6289, allocations: 7.906 kB / 0.8677 GB, free: 7.48 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.6289, allocations: 3.938 kB / 0.8677 GB, free: 7.477 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.6289, allocations: 0 / 0.8677 GB, free: 7.477 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.973e-05/0.629, allocations: 57.12 kB / 0.8678 GB, free: 7.402 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002209/0.6292, allocations: 445.5 kB / 0.8682 GB, free: 6.945 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 2.842e-05/0.6293, allocations: 77.11 kB / 0.8683 GB, free: 6.852 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.6293, allocations: 0 / 0.8683 GB, free: 6.852 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.919e-06/0.6293, allocations: 4 kB / 0.8683 GB, free: 6.848 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.021e-05/0.6293, allocations: 0 / 0.8683 GB, free: 6.848 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.6293, allocations: 0 / 0.8683 GB, free: 6.848 MB / 0.5419 GB Notification: Performance of sort global known variables: time 2.51e-05/0.6293, allocations: 79.22 kB / 0.8684 GB, free: 6.77 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0007757/0.6301, allocations: 19.97 kB / 0.8684 GB, free: 6.75 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.000179/0.6303, allocations: 127.1 kB / 0.8685 GB, free: 6.613 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 4.864e-05/0.6304, allocations: 4 kB / 0.8685 GB, free: 6.609 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.6304, allocations: 0 / 0.8685 GB, free: 6.609 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 6.562e-06/0.6304, allocations: 4 kB / 0.8685 GB, free: 6.605 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.246e-05/0.6305, allocations: 0 / 0.8685 GB, free: 6.605 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001423/0.6306, allocations: 44.08 kB / 0.8686 GB, free: 6.539 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002336/0.6309, allocations: 0.6842 MB / 0.8692 GB, free: 5.828 MB / 0.5419 GB Notification: Performance of SimCode: time 1.963e-06/0.6309, allocations: 4 kB / 0.8692 GB, free: 5.824 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1)