Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.conf.json 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/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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008618/0.0008618, allocations: 92.31 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009317/0.0009317, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 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: 223.3 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.472/2.472, allocations: 409.4 MB / 0.684 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003356, allocations: 8 kB / 0.8378 GB, free: 6.5 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7451/0.7454, allocations: 146.8 MB / 0.9811 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.005899/0.7514, allocations: 4.604 MB / 0.9856 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.1459/0.8973, allocations: 137.2 MB / 1.12 GB, free: 8.082 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008317/0.8981, allocations: 19.94 kB / 1.12 GB, free: 8.062 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0004996/0.8987, allocations: 146.7 kB / 1.12 GB, free: 7.918 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001489/0.9002, allocations: 0.5161 MB / 1.12 GB, free: 7.402 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.00187/0.902, allocations: 0.7386 MB / 1.121 GB, free: 6.672 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001613/0.9037, allocations: 1.56 MB / 1.122 GB, free: 5.105 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001159/0.9048, allocations: 0.9348 MB / 1.123 GB, free: 4.148 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007161/0.9056, allocations: 489.6 kB / 1.124 GB, free: 3.668 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006083/0.9062, allocations: 0.5438 MB / 1.124 GB, free: 3.121 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.9063, allocations: 36 kB / 1.124 GB, free: 3.086 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007451/0.907, allocations: 343.6 kB / 1.125 GB, free: 2.75 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.000251/0.9073, allocations: 258.7 kB / 1.125 GB, free: 2.496 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002459/0.9076, allocations: 296.8 kB / 1.125 GB, free: 2.199 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.00165/0.9092, allocations: 1.886 MB / 1.127 GB, free: 316 kB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.9092, allocations: 0 / 1.127 GB, free: 316 kB / 0.8731 GB Notification: Performance of FrontEnd: time 1.944e-06/0.9092, allocations: 0 / 1.127 GB, free: 316 kB / 0.8731 GB Notification: Performance of Transformations before backend: time 3.261e-05/0.9093, allocations: 4 kB / 1.127 GB, free: 312 kB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.003121/0.9124, allocations: 1.678 MB / 1.129 GB, free: 14.57 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.9125, allocations: 12.03 kB / 1.129 GB, free: 14.56 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002852/0.9128, allocations: 224 kB / 1.129 GB, free: 14.33 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009372/0.9137, allocations: 269.5 kB / 1.129 GB, free: 14.06 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.9151, allocations: 0.9383 MB / 1.13 GB, free: 13.08 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.9153, allocations: 156.7 kB / 1.13 GB, free: 12.92 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001702/0.9154, allocations: 156 kB / 1.13 GB, free: 12.77 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002619/0.9181, allocations: 1.577 MB / 1.132 GB, free: 11.13 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.968e-05/0.9181, allocations: 0 / 1.132 GB, free: 11.13 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.9183, allocations: 68 kB / 1.132 GB, free: 11.07 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.784e-05/0.9183, allocations: 36 kB / 1.132 GB, free: 11.03 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002729/0.921, allocations: 1.596 MB / 1.134 GB, free: 9.43 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006983/0.9281, allocations: 4.274 MB / 1.138 GB, free: 5.078 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001879/0.93, allocations: 1.094 MB / 1.139 GB, free: 3.98 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007027/0.9307, allocations: 431.7 kB / 1.139 GB, free: 3.555 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001099/0.9308, allocations: 49.08 kB / 1.139 GB, free: 3.504 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.932, allocations: 0.6959 MB / 1.14 GB, free: 2.793 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=111): time 2.705e-06/0.932, allocations: 0 / 1.14 GB, free: 2.793 MB / 0.8887 GB Notification: Performance of matching and sorting (n=111): time 0.003682/0.9357, allocations: 1.649 MB / 1.142 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.581e-05/0.9358, allocations: 196.9 kB / 1.142 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.9369, allocations: 0.8339 MB / 1.143 GB, free: 20 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.9371, allocations: 49.7 kB / 1.143 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004846/0.9375, allocations: 0.6323 MB / 1.143 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002792/0.9378, allocations: 350.9 kB / 1.144 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.362e-05/0.9379, allocations: 20 kB / 1.144 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.938, allocations: 341.9 kB / 1.144 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000706/0.9387, allocations: 378.4 kB / 1.144 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007961/0.9396, allocations: 0.5063 MB / 1.145 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007906/0.9404, allocations: 430.8 kB / 1.145 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.9404, allocations: 4 kB / 1.145 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002387/0.9428, allocations: 1.149 MB / 1.146 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.9428, allocations: 5.719 kB / 1.146 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.9428, allocations: 0 / 1.146 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005489/0.9434, allocations: 88.83 kB / 1.146 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009389/0.9443, allocations: 227.7 kB / 1.147 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001891/0.9462, allocations: 1.533 MB / 1.148 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009804/0.9472, allocations: 148.4 kB / 1.148 GB, free: 10 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.783e-05/0.9473, allocations: 43.97 kB / 1.148 GB, free: 9.957 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext,$PRE.HDirRoo.incAng.decAng.tNext,HDirRoo.incAng.decAng.tNext,$PRE.HDirFlo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,$PRE.HDirWal.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 126 * 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.000654/0.948, allocations: 355.8 kB / 1.149 GB, free: 9.602 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/0.9482, allocations: 114.5 kB / 1.149 GB, free: 9.488 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003243/0.9514, allocations: 1.547 MB / 1.15 GB, free: 7.926 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.9515, allocations: 20 kB / 1.15 GB, free: 7.906 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.9515, allocations: 0 / 1.15 GB, free: 7.906 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.448e-05/0.9515, allocations: 7.969 kB / 1.15 GB, free: 7.898 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.9531, allocations: 1.38 MB / 1.152 GB, free: 6.465 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.9532, allocations: 0 / 1.152 GB, free: 6.465 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008416/0.954, allocations: 199.7 kB / 1.152 GB, free: 6.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004918/0.9545, allocations: 84.77 kB / 1.152 GB, free: 6.184 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.307e-05/0.9546, allocations: 35.97 kB / 1.152 GB, free: 6.148 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.9564, allocations: 1.559 MB / 1.154 GB, free: 4.449 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.9564, allocations: 3.984 kB / 1.154 GB, free: 4.445 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/0.9589, allocations: 1.281 MB / 1.155 GB, free: 3.145 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005683/0.9595, allocations: 387 kB / 1.155 GB, free: 2.746 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.9597, allocations: 32 kB / 1.155 GB, free: 2.715 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008183/0.9605, allocations: 111.8 kB / 1.155 GB, free: 2.605 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001956/0.9607, allocations: 101.2 kB / 1.155 GB, free: 2.504 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.599e-05/0.9608, allocations: 43.97 kB / 1.155 GB, free: 2.461 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0008292/0.9617, allocations: 0.6137 MB / 1.156 GB, free: 1.836 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.853e-06/0.9617, allocations: 0 / 1.156 GB, free: 1.836 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001052/0.9628, allocations: 442.4 kB / 1.156 GB, free: 1.402 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of discrete states: 8 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.003899/0.9667, allocations: 2.339 MB / 1.159 GB, free: 15.21 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002088/0.9688, allocations: 1.113 MB / 1.16 GB, free: 14.09 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.9688, allocations: 0 / 1.16 GB, free: 14.09 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001129/0.9699, allocations: 0.6818 MB / 1.16 GB, free: 13.39 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.9713, allocations: 287 kB / 1.161 GB, free: 13.12 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/0.9856, allocations: 7.441 MB / 1.168 GB, free: 5.438 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009282/0.9866, allocations: 1.216 MB / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001226/0.9878, allocations: 321.1 kB / 1.17 GB, free: 3.871 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009608/0.9888, allocations: 0.6008 MB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of SimCode: time 1.203e-06/0.9888, allocations: 0 / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05437/1.043, allocations: 28.6 MB / 1.198 GB, free: 7.102 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002536/1.044, allocations: 298.1 kB / 1.198 GB, free: 6.742 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.837/3.88, allocations: 0 / 1.198 GB, free: 6.742 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.mat --tempDir=temp_Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_fmu --startTime=1.82304e+07 --stopTime=1.83168e+07 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.fmu > Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.mat does not exist to compare? outputFormat=mat