Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_Examples_GlobalPerezTiltedSurface",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_Examples_GlobalPerezTiltedSurface",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 10.0.0-master/package.mo): time 1.825/1.825, allocations: 390.4 MB / 397.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009467/0.0009468, allocations: 190.1 kB / 490.8 MB, free: 1.934 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.152/1.152, allocations: 221.3 MB / 0.7863 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008766/0.0008766, allocations: 91.84 kB / 0.9264 GB, free: 14.26 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4921/0.493, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.7151, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.625/3.34, allocations: 1.736 GB / 2.947 GB, free: 136.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/3.341, allocations: 91.94 kB / 2.948 GB, free: 136 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 640 * Number of variables: 640 Notification: Performance of Generate backend data structure: time 0.245/3.586, allocations: 121.9 MB / 3.067 GB, free: 13.65 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/3.586, allocations: 8 kB / 3.067 GB, free: 13.64 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01316/3.599, allocations: 2.174 MB / 3.069 GB, free: 11.46 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002038/3.601, allocations: 1.336 MB / 3.07 GB, free: 10.08 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.87e-05/3.601, allocations: 84 kB / 3.07 GB, free: 10 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003276/3.601, allocations: 140 kB / 3.07 GB, free: 9.863 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005257/3.607, allocations: 3.418 MB / 3.074 GB, free: 6.438 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003927/3.611, allocations: 2.696 MB / 3.076 GB, free: 3.664 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.431e-05/3.611, allocations: 0 / 3.076 GB, free: 3.664 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002522/3.611, allocations: 7.938 kB / 3.076 GB, free: 3.656 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.555e-05/3.611, allocations: 60 kB / 3.076 GB, free: 3.598 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3182/3.929, allocations: 9.331 MB / 3.085 GB, free: 0.49 GB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002845/3.932, allocations: 2.176 MB / 3.088 GB, free: 0.4899 GB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001518/3.933, allocations: 1.186 MB / 3.089 GB, free: 0.4899 GB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006262/3.934, allocations: 0.5203 MB / 3.089 GB, free: 0.4894 GB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00185/3.936, allocations: 1.453 MB / 3.091 GB, free: 0.4894 GB / 1.151 GB Notification: Performance of pre-optimization done (n=222): time 3.347e-06/3.936, allocations: 0 / 3.091 GB, free: 0.4894 GB / 1.151 GB Notification: Performance of matching and sorting (n=222): time 0.005109/3.941, allocations: 2.61 MB / 3.093 GB, free: 0.4892 GB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/3.941, allocations: 258.3 kB / 3.093 GB, free: 0.4889 GB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008148/3.942, allocations: 0.7766 MB / 3.094 GB, free: 0.4888 GB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.000171/3.942, allocations: 29.45 kB / 3.094 GB, free: 0.4888 GB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003132/3.942, allocations: 0.6895 MB / 3.095 GB, free: 0.4884 GB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004303/3.943, allocations: 0.6911 MB / 3.096 GB, free: 499.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/3.943, allocations: 0 / 3.096 GB, free: 499.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.096e-05/3.943, allocations: 379.9 kB / 3.096 GB, free: 499.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001383/3.945, allocations: 0.9384 MB / 3.097 GB, free: 499.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001493/3.946, allocations: 1.124 MB / 3.098 GB, free: 499.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002278/3.948, allocations: 1.226 MB / 3.099 GB, free: 499.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/3.948, allocations: 0 / 3.099 GB, free: 499.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.005069/3.953, allocations: 2.688 MB / 3.102 GB, free: 499.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/3.953, allocations: 2.688 kB / 3.102 GB, free: 499.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/3.953, allocations: 14.66 kB / 3.102 GB, free: 499.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005719/3.954, allocations: 92.47 kB / 3.102 GB, free: 499.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003875/3.958, allocations: 0.6346 MB / 3.102 GB, free: 499.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001556/3.959, allocations: 1.457 MB / 3.104 GB, free: 498 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003126/3.963, allocations: 318.3 kB / 3.104 GB, free: 497.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003479/3.963, allocations: 98.06 kB / 3.104 GB, free: 497.9 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (239): * Single equations (assignments): 238 * 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.0004941/3.963, allocations: 147.7 kB / 3.104 GB, free: 497.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003548/3.964, allocations: 151.3 kB / 3.105 GB, free: 497.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008305/3.972, allocations: 3.399 MB / 3.108 GB, free: 497.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/3.972, allocations: 23.19 kB / 3.108 GB, free: 497.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/3.972, allocations: 2.719 kB / 3.108 GB, free: 497.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.126e-05/3.972, allocations: 11.67 kB / 3.108 GB, free: 497.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009006/3.981, allocations: 6.054 MB / 3.114 GB, free: 497.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/3.981, allocations: 3.469 kB / 3.114 GB, free: 497.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003696/3.985, allocations: 0.614 MB / 3.114 GB, free: 497.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005026/3.985, allocations: 89.91 kB / 3.115 GB, free: 497.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002326/3.986, allocations: 47.03 kB / 3.115 GB, free: 497.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001432/3.987, allocations: 1.49 MB / 3.116 GB, free: 495.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/3.987, allocations: 0 / 3.116 GB, free: 495.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004981/3.992, allocations: 2.784 MB / 3.119 GB, free: 495.6 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00497/3.997, allocations: 3.21 MB / 3.122 GB, free: 494 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008883/3.998, allocations: 0.6579 MB / 3.123 GB, free: 493.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003774/3.998, allocations: 7.844 kB / 3.123 GB, free: 493.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002793/4.001, allocations: 245.5 kB / 3.123 GB, free: 493.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/4.001, allocations: 126.9 kB / 3.123 GB, free: 493.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002553/4.002, allocations: 88.75 kB / 3.123 GB, free: 493.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0007394/4.002, allocations: 0.6609 MB / 3.124 GB, free: 493.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002373/4.005, allocations: 0.7694 MB / 3.124 GB, free: 493.1 MB / 1.151 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.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (240): * Single equations (assignments): 237 * 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.001472/4.006, allocations: 1.091 MB / 3.125 GB, free: 493 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003571/4.01, allocations: 2.498 MB / 3.128 GB, free: 491.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/4.01, allocations: 0 / 3.128 GB, free: 491.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001866/4.012, allocations: 1.426 MB / 3.129 GB, free: 491.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/4.013, allocations: 244.2 kB / 3.129 GB, free: 491.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00789/4.021, allocations: 3.419 MB / 3.133 GB, free: 489.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002539/4.023, allocations: 1.856 MB / 3.135 GB, free: 489 MB / 1.151 GB Notification: Performance of SimCode: time 1.142e-06/4.024, allocations: 0 / 3.135 GB, free: 489 MB / 1.151 GB (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface_res.mat --tempDir=temp_Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_Examples_GlobalPerezTiltedSurface_fmu --startTime=1.82304e+07 --stopTime=1.83168e+07 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_Examples_GlobalPerezTiltedSurface.fmu > Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface_res.mat does not exist to compare? outputFormat=mat