Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.389/1.389, allocations: 289.8 MB / 297.1 MB, free: 6.711 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009622/0.0009622, allocations: 189.2 kB / 366.3 MB, free: 2.004 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.069/1.069, allocations: 205.1 MB / 0.6256 GB, free: 5.836 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008125/0.0008126, allocations: 98.27 kB / 0.7396 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1909/0.1917, allocations: 122.4 MB / 0.8591 GB, free: 13.28 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4264/0.6181, allocations: 116.3 MB / 0.9727 GB, free: 68.49 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.161/0.7791, allocations: 165 MB / 1.134 GB, free: 15.43 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.7794, allocations: 104.4 kB / 1.134 GB, free: 15.33 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.03885/0.8183, allocations: 16.53 MB / 1.15 GB, free: 14.61 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.8183, allocations: 12 kB / 1.15 GB, free: 14.6 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008357/0.8192, allocations: 99.59 kB / 1.15 GB, free: 14.5 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004013/0.8196, allocations: 264.7 kB / 1.15 GB, free: 14.21 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.8196, allocations: 8 kB / 1.15 GB, free: 14.2 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.697e-05/0.8197, allocations: 12 kB / 1.15 GB, free: 14.19 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003882/0.8201, allocations: 236.8 kB / 1.151 GB, free: 13.96 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004743/0.8205, allocations: 335.7 kB / 1.151 GB, free: 13.61 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.8206, allocations: 0 / 1.151 GB, free: 13.61 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.8206, allocations: 0 / 1.151 GB, free: 13.61 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.709e-05/0.8206, allocations: 28.41 kB / 1.151 GB, free: 13.58 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.8223, allocations: 1.474 MB / 1.152 GB, free: 11.96 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002598/0.8226, allocations: 194.5 kB / 1.153 GB, free: 11.76 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000181/0.8228, allocations: 117.1 kB / 1.153 GB, free: 11.64 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001402/0.8229, allocations: 89 kB / 1.153 GB, free: 11.54 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.823, allocations: 38.56 kB / 1.153 GB, free: 11.49 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=18): time 1.342e-06/0.823, allocations: 0 / 1.153 GB, free: 11.49 MB / 0.7605 GB Notification: Performance of matching and sorting (n=19): time 0.00131/0.8243, allocations: 0.7232 MB / 1.154 GB, free: 10.71 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.286e-05/0.8243, allocations: 55.41 kB / 1.154 GB, free: 10.65 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001365/0.8245, allocations: 158 kB / 1.154 GB, free: 10.49 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.8245, allocations: 29.7 kB / 1.154 GB, free: 10.45 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 6.798e-05/0.8246, allocations: 160.1 kB / 1.154 GB, free: 10.29 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 4.857e-05/0.8246, allocations: 74.94 kB / 1.154 GB, free: 10.22 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.397e-05/0.8246, allocations: 0 / 1.154 GB, free: 10.22 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 8.436e-05/0.8247, allocations: 322.8 kB / 1.154 GB, free: 9.895 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.8249, allocations: 112 kB / 1.154 GB, free: 9.785 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.8251, allocations: 165.9 kB / 1.155 GB, free: 9.602 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003194/0.8254, allocations: 155.8 kB / 1.155 GB, free: 9.449 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.8254, allocations: 0 / 1.155 GB, free: 9.449 MB / 0.7605 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008379/0.8262, allocations: 423.8 kB / 1.155 GB, free: 9.027 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.8263, allocations: 4 kB / 1.155 GB, free: 9.023 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.8263, allocations: 2.5 kB / 1.155 GB, free: 9.023 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003744/0.8267, allocations: 101 kB / 1.155 GB, free: 8.922 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.8269, allocations: 47.91 kB / 1.155 GB, free: 8.875 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/0.8286, allocations: 1.65 MB / 1.157 GB, free: 7.105 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/0.8289, allocations: 8.062 kB / 1.157 GB, free: 7.098 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.8289, allocations: 16.05 kB / 1.157 GB, free: 7.082 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.496e-05/0.829, allocations: 105 kB / 1.157 GB, free: 6.973 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.718e-05/0.8291, allocations: 15.81 kB / 1.157 GB, free: 6.957 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000543/0.8296, allocations: 311.2 kB / 1.157 GB, free: 6.652 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.8296, allocations: 7.906 kB / 1.157 GB, free: 6.645 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.8296, allocations: 0 / 1.157 GB, free: 6.645 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.8296, allocations: 3.984 kB / 1.157 GB, free: 6.641 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000903/0.8305, allocations: 0.6666 MB / 1.158 GB, free: 5.926 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.8306, allocations: 4.062 kB / 1.158 GB, free: 5.922 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003048/0.8309, allocations: 51.91 kB / 1.158 GB, free: 5.871 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.8309, allocations: 4 kB / 1.158 GB, free: 5.867 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.8309, allocations: 3.906 kB / 1.158 GB, free: 5.863 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.8309, allocations: 4 kB / 1.158 GB, free: 5.859 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.8309, allocations: 0 / 1.158 GB, free: 5.859 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006661/0.8316, allocations: 0.5513 MB / 1.159 GB, free: 5.273 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009178/0.8325, allocations: 1.086 MB / 1.16 GB, free: 4.152 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.8326, allocations: 116.9 kB / 1.16 GB, free: 4.02 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.628e-05/0.8327, allocations: 0 / 1.16 GB, free: 4.02 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.8329, allocations: 7.984 kB / 1.16 GB, free: 4.012 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.993e-05/0.8329, allocations: 7.984 kB / 1.16 GB, free: 4.004 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.8329, allocations: 4 kB / 1.16 GB, free: 4 MB / 0.7605 GB Notification: Performance of sort global known variables: time 9.64e-05/0.833, allocations: 139.2 kB / 1.16 GB, free: 3.863 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0009789/0.834, allocations: 75.92 kB / 1.16 GB, free: 3.789 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001905/0.8342, allocations: 111.2 kB / 1.16 GB, free: 3.672 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0006642/0.8349, allocations: 389.7 kB / 1.16 GB, free: 3.281 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.8349, allocations: 4.125 kB / 1.16 GB, free: 3.277 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.8351, allocations: 127.8 kB / 1.161 GB, free: 3.152 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.8354, allocations: 30.3 kB / 1.161 GB, free: 3.125 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.8364, allocations: 499.2 kB / 1.161 GB, free: 2.609 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003965/0.8368, allocations: 0.8012 MB / 1.162 GB, free: 1.785 MB / 0.7605 GB Notification: Performance of SimCode: time 2.5e-07/0.8368, allocations: 0 / 1.162 GB, free: 1.785 MB / 0.7605 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)