Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.242/2.242, allocations: 387.1 MB / 399.7 MB, free: 9.496 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.001031/0.001031, allocations: 188.8 kB / 492.3 MB, free: 0.6016 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.777/1.777, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.001077/0.001076, allocations: 97.84 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.024e-05/4.083e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3568, allocations: 142.3 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.889/5.246, allocations: 1.732 GB / 2.944 GB, free: 107.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/5.246, allocations: 92.25 kB / 2.944 GB, free: 107.3 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1801/5.426, allocations: 80.5 MB / 3.023 GB, free: 32.03 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.044e-06/5.426, allocations: 0 / 3.023 GB, free: 32.03 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000138/5.427, allocations: 35.94 kB / 3.023 GB, free: 31.99 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.002962/5.43, allocations: 1.278 MB / 3.024 GB, free: 30.66 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/5.43, allocations: 8.031 kB / 3.024 GB, free: 30.65 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004072/5.43, allocations: 169.3 kB / 3.024 GB, free: 30.48 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/5.431, allocations: 222.1 kB / 3.024 GB, free: 30.26 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001622/5.433, allocations: 0.7094 MB / 3.025 GB, free: 29.51 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.729e-05/5.433, allocations: 86.3 kB / 3.025 GB, free: 29.42 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002032/5.433, allocations: 111.9 kB / 3.025 GB, free: 29.31 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002336/5.436, allocations: 1.087 MB / 3.026 GB, free: 28.16 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/5.436, allocations: 3.953 kB / 3.026 GB, free: 28.16 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001229/5.436, allocations: 48 kB / 3.026 GB, free: 28.11 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/5.436, allocations: 28 kB / 3.026 GB, free: 28.08 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001836/5.438, allocations: 1.187 MB / 3.028 GB, free: 26.89 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005331/5.443, allocations: 3.074 MB / 3.031 GB, free: 23.73 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/5.444, allocations: 0.7348 MB / 3.031 GB, free: 22.98 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003683/5.444, allocations: 279.2 kB / 3.032 GB, free: 22.71 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 9.226e-05/5.445, allocations: 32.8 kB / 3.032 GB, free: 22.68 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006592/5.445, allocations: 437.3 kB / 3.032 GB, free: 22.23 MB / 1.151 GB Notification: Performance of pre-optimization done (n=78): time 2.175e-06/5.445, allocations: 0 / 3.032 GB, free: 22.23 MB / 1.151 GB Notification: Performance of matching and sorting (n=78): time 0.001729/5.447, allocations: 0.7313 MB / 3.033 GB, free: 21.49 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/5.447, allocations: 240.2 kB / 3.033 GB, free: 21.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008049/5.448, allocations: 0.6718 MB / 3.034 GB, free: 20.52 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.205e-05/5.448, allocations: 45.64 kB / 3.034 GB, free: 20.47 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003049/5.448, allocations: 0.4919 MB / 3.034 GB, free: 19.97 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000173/5.448, allocations: 256.3 kB / 3.034 GB, free: 19.72 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.311e-05/5.448, allocations: 12 kB / 3.034 GB, free: 19.71 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.304e-05/5.449, allocations: 334 kB / 3.035 GB, free: 19.38 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003082/5.449, allocations: 225.5 kB / 3.035 GB, free: 19.15 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003774/5.449, allocations: 325.1 kB / 3.035 GB, free: 18.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000413/5.45, allocations: 274 kB / 3.035 GB, free: 18.54 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/5.45, allocations: 0 / 3.035 GB, free: 18.54 MB / 1.151 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001442/5.451, allocations: 0.7538 MB / 3.036 GB, free: 17.78 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/5.451, allocations: 5.094 kB / 3.036 GB, free: 17.77 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/5.451, allocations: 0 / 3.036 GB, free: 17.77 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005836/5.452, allocations: 88.83 kB / 3.036 GB, free: 17.68 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006026/5.452, allocations: 147.8 kB / 3.036 GB, free: 17.54 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00173/5.454, allocations: 1.516 MB / 3.038 GB, free: 15.88 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005984/5.455, allocations: 87.28 kB / 3.038 GB, free: 15.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.816e-05/5.455, allocations: 27.98 kB / 3.038 GB, free: 15.77 MB / 1.151 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.00018/5.455, allocations: 148.2 kB / 3.038 GB, free: 15.62 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/5.455, allocations: 98.83 kB / 3.038 GB, free: 15.52 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001934/5.457, allocations: 0.9907 MB / 3.039 GB, free: 14.51 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/5.457, allocations: 8 kB / 3.039 GB, free: 14.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/5.457, allocations: 0 / 3.039 GB, free: 14.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/5.457, allocations: 8.062 kB / 3.039 GB, free: 14.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/5.458, allocations: 1.016 MB / 3.04 GB, free: 13.43 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/5.458, allocations: 0 / 3.04 GB, free: 13.43 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005654/5.459, allocations: 147.8 kB / 3.04 GB, free: 13.29 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004711/5.459, allocations: 88.77 kB / 3.04 GB, free: 13.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.706e-05/5.459, allocations: 27.98 kB / 3.041 GB, free: 13.17 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001593/5.461, allocations: 1.536 MB / 3.042 GB, free: 11.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/5.461, allocations: 0 / 3.042 GB, free: 11.5 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/5.463, allocations: 0.8478 MB / 3.043 GB, free: 10.62 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004478/5.463, allocations: 299.6 kB / 3.043 GB, free: 10.31 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/5.463, allocations: 16 kB / 3.043 GB, free: 10.29 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005562/5.464, allocations: 75.89 kB / 3.043 GB, free: 10.22 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/5.464, allocations: 60.69 kB / 3.043 GB, free: 10.16 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.586e-05/5.464, allocations: 27.98 kB / 3.043 GB, free: 10.13 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0006863/5.465, allocations: 0.5343 MB / 3.044 GB, free: 9.602 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/5.465, allocations: 0 / 3.044 GB, free: 9.602 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001417/5.466, allocations: 402.8 kB / 3.044 GB, free: 9.207 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.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.003941/5.47, allocations: 2.315 MB / 3.046 GB, free: 7.016 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00137/5.471, allocations: 0.7332 MB / 3.047 GB, free: 6.27 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/5.471, allocations: 0 / 3.047 GB, free: 6.27 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006854/5.472, allocations: 486.9 kB / 3.048 GB, free: 5.781 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/5.473, allocations: 256.9 kB / 3.048 GB, free: 5.539 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004489/5.478, allocations: 1.799 MB / 3.05 GB, free: 3.699 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004572/5.478, allocations: 1.106 MB / 3.051 GB, free: 2.566 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0008309/5.479, allocations: 266.8 kB / 3.051 GB, free: 2.301 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005272/5.48, allocations: 451.3 kB / 3.051 GB, free: 1.859 MB / 1.151 GB Notification: Performance of SimCode: time 8.12e-07/5.48, allocations: 4 kB / 3.051 GB, free: 1.855 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7949/6.275, allocations: 32.85 MB / 3.084 GB, free: 384.2 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/6.275, allocations: 239.5 kB / 3.084 GB, free: 383.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.169/9.443, allocations: 0 / 3.084 GB, free: 383.9 MB / 1.151 GB (rm -f Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic_res.mat --tempDir=temp_Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic_fmu --startTime=1.82304e+07 --stopTime=1.83168e+07 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic.fmu > Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic_res.mat does not exist to compare? outputFormat=mat