Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.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.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic",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.7789/0.7789, allocations: 141.8 MB / 149.1 MB, free: 13.88 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 175 kB / 181.9 MB, free: 10.49 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.52/1.52, allocations: 221.3 MB / 436 MB, free: 3.129 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.001082/0.001082, allocations: 95.09 kB / 0.507 GB, free: 18.04 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001862/0.001862, allocations: 272.3 kB / 0.5884 GB, free: 4.5 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.56/0.5619, allocations: 89.64 MB / 0.676 GB, free: 137.3 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.7529, allocations: 82.78 MB / 0.7568 GB, free: 84.39 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.887/4.64, allocations: 1.691 GB / 2.448 GB, free: 50.34 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/4.641, allocations: 87.94 kB / 2.448 GB, free: 50.25 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.5995/5.24, allocations: 82.31 MB / 2.528 GB, free: 229.8 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 6.281e-05/5.24, allocations: 8.844 kB / 2.529 GB, free: 229.8 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001695/5.242, allocations: 233.4 kB / 2.529 GB, free: 229.7 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002111/5.244, allocations: 0.7103 MB / 2.529 GB, free: 229.4 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/5.244, allocations: 38.44 kB / 2.529 GB, free: 229.4 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002511/5.244, allocations: 66.47 kB / 2.53 GB, free: 229.4 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00301/5.247, allocations: 1.128 MB / 2.531 GB, free: 229.4 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002594/5.25, allocations: 0.9334 MB / 2.532 GB, free: 229.1 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.692e-05/5.25, allocations: 0 / 2.532 GB, free: 229.1 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001589/5.25, allocations: 1.562 kB / 2.532 GB, free: 229.1 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-05/5.25, allocations: 27.75 kB / 2.532 GB, free: 229.1 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006747/5.257, allocations: 2.863 MB / 2.534 GB, free: 227.8 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/5.259, allocations: 0.6833 MB / 2.535 GB, free: 227.7 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004843/5.259, allocations: 259.7 kB / 2.535 GB, free: 227.6 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/5.259, allocations: 37.73 kB / 2.535 GB, free: 227.6 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007315/5.26, allocations: 394 kB / 2.536 GB, free: 227.5 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=78): time 5.821e-06/5.26, allocations: 0 / 2.536 GB, free: 227.5 MB / 0.6982 GB Notification: Performance of matching and sorting (n=78): time 0.001999/5.262, allocations: 0.6767 MB / 2.536 GB, free: 227.3 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.5e-05/5.262, allocations: 244.3 kB / 2.537 GB, free: 227 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009383/5.263, allocations: 0.5568 MB / 2.537 GB, free: 226.9 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 8.823e-05/5.263, allocations: 28.92 kB / 2.537 GB, free: 226.8 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003684/5.264, allocations: 415.7 kB / 2.538 GB, free: 226.5 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002159/5.264, allocations: 245.9 kB / 2.538 GB, free: 226.4 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.213e-05/5.264, allocations: 0 / 2.538 GB, free: 226.4 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001396/5.264, allocations: 382.4 kB / 2.538 GB, free: 226 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003396/5.264, allocations: 210.5 kB / 2.538 GB, free: 226 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004006/5.265, allocations: 311.4 kB / 2.539 GB, free: 225.9 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004318/5.265, allocations: 263.5 kB / 2.539 GB, free: 225.9 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/5.265, allocations: 3.938 kB / 2.539 GB, free: 225.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001612/5.267, allocations: 0.7078 MB / 2.54 GB, free: 225.7 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/5.267, allocations: 7.781 kB / 2.54 GB, free: 225.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/5.267, allocations: 0 / 2.54 GB, free: 225.7 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006298/5.267, allocations: 81.72 kB / 2.54 GB, free: 225.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006715/5.268, allocations: 153.1 kB / 2.54 GB, free: 225.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001966/5.27, allocations: 1.452 MB / 2.541 GB, free: 224.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009371/5.271, allocations: 74.97 kB / 2.541 GB, free: 224.3 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.651e-05/5.271, allocations: 29.52 kB / 2.541 GB, free: 224.3 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002889/5.271, allocations: 121.6 kB / 2.541 GB, free: 224.2 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003536/5.272, allocations: 81.56 kB / 2.542 GB, free: 224.1 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00243/5.274, allocations: 0.9415 MB / 2.542 GB, free: 223.9 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/5.274, allocations: 10.06 kB / 2.542 GB, free: 223.9 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/5.274, allocations: 8.219 kB / 2.542 GB, free: 223.9 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/5.274, allocations: 7.703 kB / 2.542 GB, free: 223.9 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001858/5.276, allocations: 0.8432 MB / 2.543 GB, free: 223.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/5.276, allocations: 0 / 2.543 GB, free: 223.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006753/5.277, allocations: 156.7 kB / 2.543 GB, free: 223.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005586/5.277, allocations: 85.19 kB / 2.544 GB, free: 223.5 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.731e-05/5.278, allocations: 17.2 kB / 2.544 GB, free: 223.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001776/5.279, allocations: 1.477 MB / 2.545 GB, free: 222.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/5.279, allocations: 3.906 kB / 2.545 GB, free: 222.2 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001679/5.281, allocations: 0.7801 MB / 2.546 GB, free: 222 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001848/5.283, allocations: 1.207 MB / 2.547 GB, free: 221.4 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000539/5.283, allocations: 288.6 kB / 2.547 GB, free: 221.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002354/5.284, allocations: 5.781 kB / 2.547 GB, free: 221.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006861/5.284, allocations: 61.41 kB / 2.547 GB, free: 221.2 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/5.285, allocations: 46.83 kB / 2.547 GB, free: 221.1 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.971e-05/5.285, allocations: 35.42 kB / 2.547 GB, free: 221.1 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0007151/5.285, allocations: 450.9 kB / 2.548 GB, free: 221 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002229/5.288, allocations: 453.5 kB / 2.548 GB, free: 220.9 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002617/5.29, allocations: 1.053 MB / 2.549 GB, free: 220.6 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001727/5.292, allocations: 0.6845 MB / 2.55 GB, free: 220.5 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/5.292, allocations: 0 / 2.55 GB, free: 220.5 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0007681/5.293, allocations: 465.4 kB / 2.55 GB, free: 220.3 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/5.294, allocations: 226.2 kB / 2.551 GB, free: 220.3 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0058/5.3, allocations: 1.559 MB / 2.552 GB, free: 219.7 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001832/5.302, allocations: 1.209 MB / 2.553 GB, free: 218.8 MB / 0.6982 GB Notification: Performance of SimCode: time 1.363e-06/5.302, allocations: 3.75 kB / 2.553 GB, free: 218.8 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic_fmu --startTime=1.82304e+07 --stopTime=1.83168e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe 2>&1)