Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.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.Examples.PowerLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.PowerLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized",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.7153/0.7153, allocations: 141.8 MB / 149.1 MB, free: 3.973 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.0009967/0.0009967, allocations: 178.5 kB / 181.9 MB, free: 15.71 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.213/1.213, allocations: 221.3 MB / 436 MB, free: 8.82 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.001013/0.001013, allocations: 100.3 kB / 0.507 GB, free: 24.28 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00189/0.00189, allocations: 283.6 kB / 0.5884 GB, free: 11.87 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1781/0.18, allocations: 89.63 MB / 0.676 GB, free: 2.152 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.5226, allocations: 82.76 MB / 0.7568 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1079/0.6305, allocations: 107.8 MB / 0.8621 GB, free: 4.445 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.6307, allocations: 80.41 kB / 0.8622 GB, free: 4.371 MB / 0.5263 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.002152/0.6329, allocations: 0.8114 MB / 0.863 GB, free: 3.535 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.6329, allocations: 8 kB / 0.863 GB, free: 3.527 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.472e-05/0.633, allocations: 3.906 kB / 0.863 GB, free: 3.523 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.142e-05/0.6331, allocations: 163.1 kB / 0.8631 GB, free: 3.324 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.6331, allocations: 1.031 kB / 0.8631 GB, free: 3.324 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.6331, allocations: 0 / 0.8631 GB, free: 3.324 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.088e-05/0.6332, allocations: 12 kB / 0.8631 GB, free: 3.312 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.853e-05/0.6332, allocations: 42.44 kB / 0.8632 GB, free: 3.266 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-06/0.6332, allocations: 0 / 0.8632 GB, free: 3.266 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.6332, allocations: 0.6562 kB / 0.8632 GB, free: 3.266 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.6333, allocations: 4.594 kB / 0.8632 GB, free: 3.262 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003152/0.6336, allocations: 248.6 kB / 0.8634 GB, free: 2.984 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 4.574e-05/0.6336, allocations: 27.67 kB / 0.8635 GB, free: 2.949 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.251e-05/0.6337, allocations: 13.33 kB / 0.8635 GB, free: 2.934 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00024/0.6339, allocations: 411.1 kB / 0.8639 GB, free: 2.441 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.485e-05/0.6339, allocations: 31.5 kB / 0.8639 GB, free: 2.402 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.6339, allocations: 0.8438 kB / 0.8639 GB, free: 2.402 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2): time 0.0001598/0.6341, allocations: 41.64 kB / 0.8639 GB, free: 2.355 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.708e-05/0.6341, allocations: 56.38 kB / 0.864 GB, free: 2.289 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.323e-05/0.6342, allocations: 101.9 kB / 0.8641 GB, free: 2.184 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 6.492e-06/0.6342, allocations: 25.7 kB / 0.8641 GB, free: 2.152 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 1.55e-05/0.6342, allocations: 84.73 kB / 0.8642 GB, free: 2.066 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 1.279e-05/0.6342, allocations: 11.84 kB / 0.8642 GB, free: 2.055 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-06/0.6342, allocations: 0.5312 kB / 0.8642 GB, free: 2.055 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 3.657e-05/0.6343, allocations: 316.2 kB / 0.8645 GB, free: 1.738 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.496e-05/0.6343, allocations: 8.719 kB / 0.8645 GB, free: 1.73 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.231e-05/0.6343, allocations: 4.75 kB / 0.8645 GB, free: 1.727 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.851e-05/0.6344, allocations: 5.688 kB / 0.8645 GB, free: 1.723 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.6344, allocations: 7.906 kB / 0.8645 GB, free: 1.715 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.464e-05/0.6345, allocations: 37.7 kB / 0.8646 GB, free: 1.672 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 9.257e-06/0.6345, allocations: 8 kB / 0.8646 GB, free: 1.664 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.6345, allocations: 4.531 kB / 0.8646 GB, free: 1.66 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.498e-06/0.6345, allocations: 0 / 0.8646 GB, free: 1.66 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.583e-05/0.6346, allocations: 18.52 kB / 0.8646 GB, free: 1.645 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.316e-06/0.6346, allocations: 0 / 0.8646 GB, free: 1.645 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.642e-05/0.6347, allocations: 14.11 kB / 0.8646 GB, free: 1.633 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.6347, allocations: 3.125 kB / 0.8646 GB, free: 1.633 MB / 0.5263 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 (2): * Single equations (assignments): 2 * 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 3.762e-05/0.6347, allocations: 105.7 kB / 0.8647 GB, free: 1.523 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.821e-05/0.6348, allocations: 4.906 kB / 0.8647 GB, free: 1.52 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.6349, allocations: 46.38 kB / 0.8648 GB, free: 1.469 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.6349, allocations: 4 kB / 0.8648 GB, free: 1.465 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.6349, allocations: 7.891 kB / 0.8648 GB, free: 1.457 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.6349, allocations: 1.969 kB / 0.8648 GB, free: 1.457 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.246e-05/0.635, allocations: 142.2 kB / 0.8649 GB, free: 1.281 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.635, allocations: 0.5938 kB / 0.8649 GB, free: 1.281 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.332e-05/0.6351, allocations: 10.28 kB / 0.8649 GB, free: 1.273 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.6351, allocations: 4 kB / 0.8649 GB, free: 1.27 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-06/0.6351, allocations: 0 / 0.8649 GB, free: 1.27 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.6351, allocations: 3.938 kB / 0.8649 GB, free: 1.266 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.6351, allocations: 8.141 kB / 0.8649 GB, free: 1.258 MB / 0.5263 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.475e-05/0.6352, allocations: 139.5 kB / 0.8651 GB, free: 1.105 MB / 0.5263 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001166/0.6354, allocations: 0.5038 MB / 0.8656 GB, free: 0.582 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 1.39e-05/0.6354, allocations: 77.17 kB / 0.8656 GB, free: 500 kB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.6354, allocations: 11.91 kB / 0.8656 GB, free: 488 kB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.813e-05/0.6355, allocations: 7.984 kB / 0.8656 GB, free: 480 kB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.088e-05/0.6355, allocations: 4 kB / 0.8657 GB, free: 476 kB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.6355, allocations: 4 kB / 0.8657 GB, free: 472 kB / 0.5263 GB Notification: Performance of sort global known variables: time 1.892e-05/0.6356, allocations: 81.31 kB / 0.8657 GB, free: 392 kB / 0.5263 GB Notification: Performance of remove unused functions: time 0.000774/0.6363, allocations: 15.92 kB / 0.8657 GB, free: 376 kB / 0.5263 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 (2): * Single equations (assignments): 2 * 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.0001159/0.6365, allocations: 103.2 kB / 0.8658 GB, free: 264 kB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 6.192e-05/0.6365, allocations: 12 kB / 0.8659 GB, free: 252 kB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.6365, allocations: 0 / 0.8659 GB, free: 252 kB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 1.949e-05/0.6366, allocations: 12 kB / 0.8659 GB, free: 240 kB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001587/0.6367, allocations: 0 / 0.8659 GB, free: 240 kB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001766/0.6369, allocations: 64.95 kB / 0.8659 GB, free: 152 kB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002491/0.6372, allocations: 0.6998 MB / 0.8666 GB, free: 15.42 MB / 0.5419 GB Notification: Performance of SimCode: time 2.21e-07/0.6372, allocations: 0 / 0.8666 GB, free: 15.42 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe 2>&1)