Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.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.QuadraticLinear,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_QuadraticLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_QuadraticLinear",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.775/0.775, allocations: 141.8 MB / 149.1 MB, free: 1.121 MB / 115 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 182.8 kB / 182 MB, free: 1.93 MB / 147 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 221.3 MB / 436 MB, free: 7.598 MB / 323 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000864/0.0008637, allocations: 104.6 kB / 0.507 GB, free: 7.008 MB / 403 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001686/0.001686, allocations: 275.2 kB / 0.5885 GB, free: 98.18 MB / 451 MB Notification: Performance of FrontEnd - loaded program: time 0.1303/0.132, allocations: 89.64 MB / 0.676 GB, free: 9.16 MB / 451 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.4872, allocations: 82.77 MB / 0.7568 GB, free: 68.68 MB / 0.5029 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1246/0.6119, allocations: 107.9 MB / 0.8622 GB, free: 1.938 MB / 0.5185 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/0.6121, allocations: 71.89 kB / 0.8622 GB, free: 1.871 MB / 0.5185 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.003527/0.6157, allocations: 1.166 MB / 0.8634 GB, free: 0.707 MB / 0.5185 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.6157, allocations: 8 kB / 0.8634 GB, free: 0.6992 MB / 0.5185 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.583e-05/0.6158, allocations: 11.89 kB / 0.8634 GB, free: 0.6875 MB / 0.5185 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001262/0.6159, allocations: 175.2 kB / 0.8636 GB, free: 492 kB / 0.5185 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.6159, allocations: 0 / 0.8636 GB, free: 492 kB / 0.5185 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.6159, allocations: 3.906 kB / 0.8636 GB, free: 488 kB / 0.5185 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001064/0.6161, allocations: 35.98 kB / 0.8636 GB, free: 452 kB / 0.5185 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.029e-05/0.6162, allocations: 47.38 kB / 0.8636 GB, free: 400 kB / 0.5185 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.6162, allocations: 5.469 kB / 0.8636 GB, free: 400 kB / 0.5185 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.6162, allocations: 4 kB / 0.8636 GB, free: 396 kB / 0.5185 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.6162, allocations: 0 / 0.8636 GB, free: 396 kB / 0.5185 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005216/0.6167, allocations: 313.3 kB / 0.8639 GB, free: 44 kB / 0.5185 GB Notification: Performance of preOpt comSubExp (simulation): time 9.675e-05/0.6168, allocations: 42.62 kB / 0.864 GB, free: 15.99 MB / 0.5342 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.166e-05/0.6169, allocations: 24.8 kB / 0.864 GB, free: 15.96 MB / 0.5342 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001959/0.6171, allocations: 109.2 kB / 0.8641 GB, free: 15.84 MB / 0.5342 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.6171, allocations: 30.56 kB / 0.8641 GB, free: 15.8 MB / 0.5342 GB Notification: Performance of pre-optimization done (n=3): time 2.335e-06/0.6172, allocations: 0 / 0.8641 GB, free: 15.8 MB / 0.5342 GB Notification: Performance of matching and sorting (n=3): time 0.0002717/0.6174, allocations: 81.5 kB / 0.8642 GB, free: 15.71 MB / 0.5342 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.6175, allocations: 51.41 kB / 0.8643 GB, free: 15.65 MB / 0.5342 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.6176, allocations: 117 kB / 0.8644 GB, free: 15.53 MB / 0.5342 GB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.6176, allocations: 25.7 kB / 0.8644 GB, free: 15.5 MB / 0.5342 GB Notification: Performance of collectInitialEqns (initialization): time 3.591e-05/0.6176, allocations: 88.14 kB / 0.8645 GB, free: 15.41 MB / 0.5342 GB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.6177, allocations: 7.812 kB / 0.8645 GB, free: 15.4 MB / 0.5342 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.6177, allocations: 0 / 0.8645 GB, free: 15.4 MB / 0.5342 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.6178, allocations: 318.8 kB / 0.8648 GB, free: 15.08 MB / 0.5342 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.249e-05/0.6179, allocations: 17.03 kB / 0.8648 GB, free: 15.07 MB / 0.5342 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.997e-05/0.6179, allocations: 15.98 kB / 0.8648 GB, free: 15.05 MB / 0.5342 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.225e-05/0.618, allocations: 27.97 kB / 0.8649 GB, free: 15.02 MB / 0.5342 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.618, allocations: 4 kB / 0.8649 GB, free: 15.02 MB / 0.5342 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001638/0.6182, allocations: 73.58 kB / 0.8649 GB, free: 14.94 MB / 0.5342 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.6182, allocations: 8 kB / 0.8649 GB, free: 14.93 MB / 0.5342 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.6182, allocations: 0 / 0.8649 GB, free: 14.93 MB / 0.5342 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.6182, allocations: 0 / 0.8649 GB, free: 14.93 MB / 0.5342 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.6184, allocations: 31.91 kB / 0.865 GB, free: 14.9 MB / 0.5342 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.6184, allocations: 3.828 kB / 0.865 GB, free: 14.9 MB / 0.5342 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.918e-05/0.6185, allocations: 15.98 kB / 0.865 GB, free: 14.89 MB / 0.5342 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.6185, allocations: 5.219 kB / 0.865 GB, free: 14.88 MB / 0.5342 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 (3): * Single equations (assignments): 3 * 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 7.216e-05/0.6186, allocations: 108.9 kB / 0.8651 GB, free: 14.77 MB / 0.5342 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.924e-05/0.6187, allocations: 4 kB / 0.8651 GB, free: 14.77 MB / 0.5342 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002215/0.6189, allocations: 101.3 kB / 0.8652 GB, free: 14.66 MB / 0.5342 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.6189, allocations: 0 / 0.8652 GB, free: 14.66 MB / 0.5342 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.6189, allocations: 0 / 0.8652 GB, free: 14.66 MB / 0.5342 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.6189, allocations: 0 / 0.8652 GB, free: 14.66 MB / 0.5342 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000158/0.6191, allocations: 154.2 kB / 0.8653 GB, free: 14.47 MB / 0.5342 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.6191, allocations: 0 / 0.8653 GB, free: 14.47 MB / 0.5342 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/0.6192, allocations: 31.97 kB / 0.8654 GB, free: 14.44 MB / 0.5342 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.6192, allocations: 0 / 0.8654 GB, free: 14.44 MB / 0.5342 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.6192, allocations: 2.5 kB / 0.8654 GB, free: 14.44 MB / 0.5342 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.6193, allocations: 3.906 kB / 0.8654 GB, free: 14.44 MB / 0.5342 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.6193, allocations: 4.594 kB / 0.8654 GB, free: 14.43 MB / 0.5342 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002061/0.6195, allocations: 179.4 kB / 0.8656 GB, free: 14.24 MB / 0.5342 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002975/0.6198, allocations: 0.5372 MB / 0.8661 GB, free: 13.69 MB / 0.5342 GB Notification: Performance of postOpt removeConstants (simulation): time 4.805e-05/0.6198, allocations: 88.95 kB / 0.8662 GB, free: 13.58 MB / 0.5342 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.6199, allocations: 0 / 0.8662 GB, free: 13.58 MB / 0.5342 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.62, allocations: 19.98 kB / 0.8662 GB, free: 13.56 MB / 0.5342 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.903e-05/0.62, allocations: 11.98 kB / 0.8662 GB, free: 13.55 MB / 0.5342 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.6201, allocations: 0.8438 kB / 0.8662 GB, free: 13.55 MB / 0.5342 GB Notification: Performance of sort global known variables: time 5.238e-05/0.6201, allocations: 96.64 kB / 0.8663 GB, free: 13.45 MB / 0.5342 GB Notification: Performance of remove unused functions: time 0.000792/0.6209, allocations: 12 kB / 0.8663 GB, free: 13.44 MB / 0.5342 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 (3): * Single equations (assignments): 3 * 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.000189/0.6211, allocations: 107.2 kB / 0.8664 GB, free: 13.33 MB / 0.5342 GB Notification: Performance of simCode: created initialization part: time 0.0001394/0.6213, allocations: 35.98 kB / 0.8664 GB, free: 13.29 MB / 0.5342 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.6213, allocations: 4 kB / 0.8664 GB, free: 13.29 MB / 0.5342 GB Notification: Performance of simCode: created simulation system equations: time 4.118e-05/0.6213, allocations: 16 kB / 0.8665 GB, free: 13.27 MB / 0.5342 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001784/0.6215, allocations: 5.766 kB / 0.8665 GB, free: 13.27 MB / 0.5342 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003576/0.6219, allocations: 101.8 kB / 0.8666 GB, free: 13.14 MB / 0.5342 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003943/0.6223, allocations: 0.7052 MB / 0.8672 GB, free: 12.42 MB / 0.5342 GB Notification: Performance of SimCode: time 2.81e-07/0.6223, allocations: 5.594 kB / 0.8673 GB, free: 12.41 MB / 0.5342 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_QuadraticLinear_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_QuadraticLinear.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1)