Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.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.IO.SignalExchange.Examples.FirstOrder,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_SignalExchange_Examples_FirstOrder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_SignalExchange_Examples_FirstOrder",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.7256/0.7256, allocations: 141.8 MB / 149.1 MB, free: 11.02 MB / 142.2 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 180.3 kB / 181.9 MB, free: 7.941 MB / 158.2 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.234/1.234, allocations: 221.4 MB / 436 MB, free: 164 kB / 334.2 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000911/0.0009109, allocations: 96.66 kB / 0.507 GB, free: 9.211 MB / 398.2 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001768/0.001768, allocations: 283.8 kB / 0.5884 GB, free: 6.059 MB / 478.2 MB Notification: Performance of FrontEnd - loaded program: time 0.3539/0.3558, allocations: 89.64 MB / 0.676 GB, free: 167.4 MB / 0.5451 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.4905, allocations: 82.77 MB / 0.7568 GB, free: 115.8 MB / 0.5451 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.115/0.6055, allocations: 113.7 MB / 0.8678 GB, free: 2.004 MB / 0.5451 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.6058, allocations: 86.05 kB / 0.8679 GB, free: 1.922 MB / 0.5451 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0162/0.622, allocations: 7.126 MB / 0.8749 GB, free: 10.72 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.6221, allocations: 12.94 kB / 0.8749 GB, free: 10.71 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.6222, allocations: 47.44 kB / 0.8749 GB, free: 10.66 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005514/0.6227, allocations: 371.6 kB / 0.8753 GB, free: 10.26 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.6228, allocations: 8 kB / 0.8753 GB, free: 10.25 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.492e-05/0.6228, allocations: 16 kB / 0.8753 GB, free: 10.24 MB / 0.5607 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003784/0.6232, allocations: 197.2 kB / 0.8755 GB, free: 10.05 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004309/0.6237, allocations: 265.6 kB / 0.8757 GB, free: 9.77 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.6237, allocations: 7.938 kB / 0.8757 GB, free: 9.762 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.6237, allocations: 0 / 0.8757 GB, free: 9.762 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.6237, allocations: 4 kB / 0.8758 GB, free: 9.758 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.6252, allocations: 1.1 MB / 0.8768 GB, free: 8.609 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004181/0.6256, allocations: 190.9 kB / 0.877 GB, free: 8.414 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001266/0.6258, allocations: 72.86 kB / 0.8771 GB, free: 8.34 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.6258, allocations: 0 / 0.8771 GB, free: 8.34 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.934e-05/0.6259, allocations: 42.56 kB / 0.8771 GB, free: 8.289 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.6259, allocations: 0 / 0.8771 GB, free: 8.289 MB / 0.5607 GB Notification: Performance of matching and sorting (n=16): time 0.0003759/0.6263, allocations: 177.3 kB / 0.8773 GB, free: 8.109 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.6263, allocations: 85.11 kB / 0.8774 GB, free: 8.008 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002502/0.6266, allocations: 231.3 kB / 0.8776 GB, free: 7.777 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.6266, allocations: 25.7 kB / 0.8776 GB, free: 7.746 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 8.776e-05/0.6267, allocations: 160.4 kB / 0.8778 GB, free: 7.586 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 4.548e-05/0.6268, allocations: 55.2 kB / 0.8778 GB, free: 7.531 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.728e-06/0.6268, allocations: 0 / 0.8778 GB, free: 7.531 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.6269, allocations: 346.7 kB / 0.8782 GB, free: 7.184 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.627, allocations: 60 kB / 0.8782 GB, free: 7.125 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.6271, allocations: 97.84 kB / 0.8783 GB, free: 7.02 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.6273, allocations: 63.98 kB / 0.8784 GB, free: 6.957 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.6273, allocations: 3.938 kB / 0.8784 GB, free: 6.953 MB / 0.5607 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003203/0.6276, allocations: 211.9 kB / 0.8786 GB, free: 6.742 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.6277, allocations: 270.9 kB / 0.8788 GB, free: 6.457 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.6277, allocations: 0 / 0.8788 GB, free: 6.457 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.6278, allocations: 3.984 kB / 0.8788 GB, free: 6.453 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.628, allocations: 43.98 kB / 0.8789 GB, free: 6.41 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.628, allocations: 3.938 kB / 0.8789 GB, free: 6.406 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.6281, allocations: 19.84 kB / 0.8789 GB, free: 6.387 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.6281, allocations: 7.984 kB / 0.8789 GB, free: 6.379 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 7.093e-06/0.6281, allocations: 4 kB / 0.8789 GB, free: 6.375 MB / 0.5607 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000242/0.6284, allocations: 147.8 kB / 0.879 GB, free: 6.23 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-06/0.6284, allocations: 4 kB / 0.8791 GB, free: 6.227 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.056e-06/0.6284, allocations: 0 / 0.8791 GB, free: 6.227 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.6286, allocations: 23.98 kB / 0.8791 GB, free: 6.203 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.294e-06/0.6286, allocations: 7.938 kB / 0.8791 GB, free: 6.195 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.6287, allocations: 7.906 kB / 0.8791 GB, free: 6.188 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.6287, allocations: 4 kB / 0.8791 GB, free: 6.184 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (actSet.y,actAct.y,expMod.mod.conPI.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 9.904e-05/0.6288, allocations: 121 kB / 0.8792 GB, free: 6.059 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.76e-05/0.6289, allocations: 23.72 kB / 0.8792 GB, free: 6.035 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.604e-05/0.6289, allocations: 29.97 kB / 0.8793 GB, free: 6.004 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.629, allocations: 3.906 kB / 0.8793 GB, free: 6 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.629, allocations: 0 / 0.8793 GB, free: 6 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.629, allocations: 0 / 0.8793 GB, free: 6 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003965/0.6294, allocations: 361.8 kB / 0.8796 GB, free: 5.609 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.6294, allocations: 3.984 kB / 0.8796 GB, free: 5.605 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.6296, allocations: 31.92 kB / 0.8796 GB, free: 5.574 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.6296, allocations: 4 kB / 0.8796 GB, free: 5.57 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.6296, allocations: 0 / 0.8796 GB, free: 5.57 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.6296, allocations: 0 / 0.8796 GB, free: 5.57 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6296, allocations: 0 / 0.8796 GB, free: 5.57 MB / 0.5607 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004688/0.6301, allocations: 375.1 kB / 0.88 GB, free: 5.188 MB / 0.5607 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007307/0.6309, allocations: 0.8506 MB / 0.8808 GB, free: 4.324 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.631, allocations: 124.8 kB / 0.881 GB, free: 4.184 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.065e-05/0.631, allocations: 3.906 kB / 0.881 GB, free: 4.18 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.6312, allocations: 11.98 kB / 0.881 GB, free: 4.168 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.6313, allocations: 11.98 kB / 0.881 GB, free: 4.156 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.6313, allocations: 4 kB / 0.881 GB, free: 4.152 MB / 0.5607 GB Notification: Performance of sort global known variables: time 0.0001759/0.6315, allocations: 183.2 kB / 0.8812 GB, free: 3.973 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.001537/0.633, allocations: 107.6 kB / 0.8813 GB, free: 3.867 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (expMod.mod.conPI.I.y,expMod.mod.firOrd.y) * Number of discrete variables: 2 (actSet.y,actAct.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.0001437/0.6332, allocations: 95.25 kB / 0.8814 GB, free: 3.766 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.0004877/0.6337, allocations: 245.8 kB / 0.8816 GB, free: 3.523 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.6337, allocations: 0 / 0.8816 GB, free: 3.523 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.6338, allocations: 87.81 kB / 0.8817 GB, free: 3.438 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004525/0.6343, allocations: 67.81 kB / 0.8817 GB, free: 3.371 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009741/0.6353, allocations: 391.9 kB / 0.8821 GB, free: 2.961 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004502/0.6357, allocations: 0.807 MB / 0.8829 GB, free: 2.125 MB / 0.5607 GB Notification: Performance of SimCode: time 2.7e-07/0.6357, allocations: 0 / 0.8829 GB, free: 2.125 MB / 0.5607 GB (rm -f BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_SignalExchange_Examples_FirstOrder_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_SignalExchange_Examples_FirstOrder.fmu > BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1)