Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="Buildings_9_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.0008581/0.0008581, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.0007968/0.0007968, allocations: 168.7 kB / 15.95 MB, free: 204 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.379/1.379, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.442/2.442, allocations: 390.4 MB / 0.6655 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.000355, allocations: 12 kB / 0.8149 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7448/0.7452, allocations: 142.3 MB / 0.9538 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.005964/0.7512, allocations: 4.607 MB / 0.9583 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.2111/0.9624, allocations: 137.2 MB / 1.092 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001671/0.9641, allocations: 27.88 kB / 1.092 GB, free: 1.953 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001134/0.9653, allocations: 142.8 kB / 1.092 GB, free: 1.812 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003377/0.9687, allocations: 0.5126 MB / 1.093 GB, free: 1.301 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004014/0.9727, allocations: 0.7518 MB / 1.094 GB, free: 0.5586 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.003121/0.9759, allocations: 1.556 MB / 1.095 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00238/0.9783, allocations: 0.9388 MB / 1.096 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001353/0.9796, allocations: 489.5 kB / 1.097 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001349/0.981, allocations: 0.5361 MB / 1.097 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0003266/0.9814, allocations: 40 kB / 1.097 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001528/0.9829, allocations: 347.6 kB / 1.097 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0005313/0.9834, allocations: 258.7 kB / 1.098 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0006284/0.9841, allocations: 300.8 kB / 1.098 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003401/0.9875, allocations: 1.886 MB / 1.1 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.9875, allocations: 0 / 1.1 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.464e-06/0.9876, allocations: 0 / 1.1 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.562e-05/0.9877, allocations: 4 kB / 1.1 GB, free: 10.18 MB / 0.8575 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.005743/0.9934, allocations: 1.667 MB / 1.101 GB, free: 8.461 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/0.9935, allocations: 12.03 kB / 1.101 GB, free: 8.449 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006867/0.9942, allocations: 228 kB / 1.102 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001863/0.9961, allocations: 273.6 kB / 1.102 GB, free: 7.945 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003125/0.9992, allocations: 0.9382 MB / 1.103 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002742/0.9995, allocations: 148.8 kB / 1.103 GB, free: 6.809 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005387/1, allocations: 152 kB / 1.103 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006178/1.006, allocations: 1.585 MB / 1.105 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.368e-05/1.006, allocations: 0 / 1.105 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003003/1.007, allocations: 68 kB / 1.105 GB, free: 4.953 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.46e-05/1.007, allocations: 39.94 kB / 1.105 GB, free: 4.914 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004186/1.011, allocations: 1.592 MB / 1.106 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00799/1.019, allocations: 4.283 MB / 1.111 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001972/1.021, allocations: 1.081 MB / 1.112 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000756/1.022, allocations: 435.6 kB / 1.112 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000106/1.022, allocations: 45.02 kB / 1.112 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001309/1.023, allocations: 0.7036 MB / 1.113 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=111): time 5.04e-06/1.023, allocations: 0 / 1.113 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of matching and sorting (n=111): time 0.003846/1.027, allocations: 1.651 MB / 1.114 GB, free: 11 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/1.027, allocations: 196.9 kB / 1.115 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001386/1.029, allocations: 0.8378 MB / 1.115 GB, free: 9.895 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001044/1.029, allocations: 49.7 kB / 1.115 GB, free: 9.84 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005664/1.029, allocations: 0.6206 MB / 1.116 GB, free: 9.211 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003159/1.03, allocations: 354.9 kB / 1.116 GB, free: 8.859 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.139e-05/1.03, allocations: 24 kB / 1.116 GB, free: 8.836 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001395/1.03, allocations: 341.9 kB / 1.117 GB, free: 8.496 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007277/1.031, allocations: 382.4 kB / 1.117 GB, free: 8.125 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008482/1.031, allocations: 0.5063 MB / 1.118 GB, free: 7.586 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007825/1.032, allocations: 430.8 kB / 1.118 GB, free: 7.164 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/1.032, allocations: 0 / 1.118 GB, free: 7.164 MB / 0.8731 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002381/1.035, allocations: 1.145 MB / 1.119 GB, free: 6.008 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/1.035, allocations: 8 kB / 1.119 GB, free: 6 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/1.035, allocations: 0 / 1.119 GB, free: 6 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005601/1.035, allocations: 88.8 kB / 1.119 GB, free: 5.91 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009282/1.036, allocations: 227.7 kB / 1.119 GB, free: 5.688 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/1.038, allocations: 1.532 MB / 1.121 GB, free: 4.02 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009863/1.039, allocations: 148.4 kB / 1.121 GB, free: 3.875 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/1.039, allocations: 43.97 kB / 1.121 GB, free: 3.832 MB / 0.8731 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.0007317/1.04, allocations: 355.6 kB / 1.121 GB, free: 3.477 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002543/1.04, allocations: 110.6 kB / 1.122 GB, free: 3.367 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00332/1.044, allocations: 1.551 MB / 1.123 GB, free: 1.801 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/1.044, allocations: 20 kB / 1.123 GB, free: 1.781 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/1.044, allocations: 0 / 1.123 GB, free: 1.781 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/1.044, allocations: 7.969 kB / 1.123 GB, free: 1.773 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001732/1.045, allocations: 1.376 MB / 1.124 GB, free: 356 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/1.045, allocations: 0 / 1.124 GB, free: 356 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008065/1.046, allocations: 199.7 kB / 1.125 GB, free: 156 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004833/1.047, allocations: 80.78 kB / 1.125 GB, free: 72 kB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.697e-05/1.047, allocations: 35.97 kB / 1.125 GB, free: 36 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001768/1.049, allocations: 1.56 MB / 1.126 GB, free: 14.33 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/1.049, allocations: 0 / 1.126 GB, free: 14.33 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002504/1.051, allocations: 1.289 MB / 1.128 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005976/1.052, allocations: 383 kB / 1.128 GB, free: 12.62 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002129/1.052, allocations: 27.98 kB / 1.128 GB, free: 12.6 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008674/1.053, allocations: 107.9 kB / 1.128 GB, free: 12.49 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001817/1.053, allocations: 97.16 kB / 1.128 GB, free: 12.4 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.833e-05/1.053, allocations: 47.97 kB / 1.128 GB, free: 12.35 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0008974/1.054, allocations: 0.6176 MB / 1.129 GB, free: 11.72 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.534e-06/1.054, allocations: 3.938 kB / 1.129 GB, free: 11.72 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001337/1.055, allocations: 442.5 kB / 1.129 GB, free: 11.29 MB / 0.8887 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.004088/1.06, allocations: 2.345 MB / 1.131 GB, free: 9.094 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002257/1.062, allocations: 1.117 MB / 1.133 GB, free: 7.961 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.062, allocations: 0 / 1.133 GB, free: 7.961 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001193/1.063, allocations: 0.6778 MB / 1.133 GB, free: 7.27 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/1.065, allocations: 291.9 kB / 1.133 GB, free: 6.988 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01679/1.081, allocations: 7.442 MB / 1.141 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/1.082, allocations: 1.219 MB / 1.142 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001282/1.084, allocations: 309.1 kB / 1.142 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009689/1.085, allocations: 0.6047 MB / 1.143 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of SimCode: time 1.142e-06/1.085, allocations: 0 / 1.143 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06075/1.146, allocations: 28.61 MB / 1.171 GB, free: 0.9414 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003213/1.146, allocations: 287.2 kB / 1.171 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.596/3.742, allocations: 0 / 1.171 GB, free: 0.5859 MB / 0.92 GB (rm -f Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.mat --tempDir=temp_Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_fmu --startTime=1.82304e+07 --stopTime=1.83168e+07 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.fmu > Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.mat does not exist to compare? outputFormat=mat