Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.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.SolarGeometry.BaseClasses.Examples.ZenithAngle,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle",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.001165/0.001165, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001346/0.001346, allocations: 177.3 kB / 15.94 MB, free: 228 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.385/1.385, allocations: 223.2 MB / 239.9 MB, free: 5.355 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.4/2.4, allocations: 390.3 MB / 0.6653 GB, free: 2.996 MB / 0.5138 GB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003403, allocations: 12 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.732/0.7323, allocations: 142.3 MB / 0.9536 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.004071/0.7365, allocations: 3.704 MB / 0.9572 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1605/0.897, allocations: 127.6 MB / 1.082 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008155/0.8978, allocations: 15.94 kB / 1.082 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.00037/0.8982, allocations: 71.34 kB / 1.082 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001391/0.8996, allocations: 0.4972 MB / 1.082 GB, free: 12 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001626/0.9013, allocations: 0.6374 MB / 1.083 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001159/0.9024, allocations: 0.8416 MB / 1.084 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006702/0.9031, allocations: 483.3 kB / 1.084 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004633/0.9036, allocations: 358.5 kB / 1.085 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004159/0.904, allocations: 355.3 kB / 1.085 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.498e-05/0.9041, allocations: 35.88 kB / 1.085 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006691/0.9048, allocations: 299.7 kB / 1.085 GB, free: 9.016 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001929/0.905, allocations: 191.2 kB / 1.085 GB, free: 8.828 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.9051, allocations: 205.1 kB / 1.086 GB, free: 8.621 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001067/0.9062, allocations: 1.173 MB / 1.087 GB, free: 7.445 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.9062, allocations: 0 / 1.087 GB, free: 7.445 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.082e-06/0.9062, allocations: 3.938 kB / 1.087 GB, free: 7.441 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.073e-05/0.9063, allocations: 0 / 1.087 GB, free: 7.441 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 217 * Number of variables: 217 Notification: Performance of Generate backend data structure: time 0.002232/0.9085, allocations: 1.241 MB / 1.088 GB, free: 6.141 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.9085, allocations: 12.03 kB / 1.088 GB, free: 6.129 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001649/0.9087, allocations: 143.3 kB / 1.088 GB, free: 5.98 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008457/0.9096, allocations: 194.5 kB / 1.088 GB, free: 5.789 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.9106, allocations: 0.7311 MB / 1.089 GB, free: 5.016 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.208e-05/0.9107, allocations: 65.98 kB / 1.089 GB, free: 4.949 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.9108, allocations: 80 kB / 1.089 GB, free: 4.871 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.9122, allocations: 0.9301 MB / 1.09 GB, free: 3.902 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.9123, allocations: 7.953 kB / 1.09 GB, free: 3.895 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.264e-05/0.9124, allocations: 43.92 kB / 1.09 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.9124, allocations: 20 kB / 1.09 GB, free: 3.832 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/0.9141, allocations: 1.124 MB / 1.091 GB, free: 2.707 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003766/0.9178, allocations: 2.569 MB / 1.094 GB, free: 72 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.9194, allocations: 0.9071 MB / 1.095 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 7.552e-05/0.9195, allocations: 28.69 kB / 1.095 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008584/0.9203, allocations: 0.512 MB / 1.095 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=84): time 2.284e-06/0.9203, allocations: 0 / 1.095 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of matching and sorting (n=84): time 0.003006/0.9234, allocations: 1.257 MB / 1.096 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.9235, allocations: 188.9 kB / 1.097 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007981/0.9243, allocations: 0.6371 MB / 1.097 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.174e-05/0.9244, allocations: 45.7 kB / 1.097 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003076/0.9247, allocations: 396.5 kB / 1.098 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.9249, allocations: 276 kB / 1.098 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.089e-05/0.925, allocations: 16 kB / 1.098 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001634/0.9251, allocations: 386.7 kB / 1.098 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00048/0.9256, allocations: 257.9 kB / 1.099 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000559/0.9262, allocations: 370.5 kB / 1.099 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000555/0.9267, allocations: 302.9 kB / 1.099 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.9268, allocations: 0 / 1.099 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001816/0.9286, allocations: 0.8253 MB / 1.1 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.9286, allocations: 5.094 kB / 1.1 GB, free: 9.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.9286, allocations: 3.938 kB / 1.1 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005746/0.9292, allocations: 92.8 kB / 1.1 GB, free: 9.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006492/0.9299, allocations: 159.8 kB / 1.1 GB, free: 9.273 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001983/0.9319, allocations: 1.536 MB / 1.102 GB, free: 7.598 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007872/0.9327, allocations: 107.5 kB / 1.102 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.608e-05/0.9327, allocations: 35.97 kB / 1.102 GB, free: 7.457 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.decAng.tNext,decAng.tNext,$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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0004705/0.9332, allocations: 269.4 kB / 1.102 GB, free: 7.184 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.9334, allocations: 82.97 kB / 1.102 GB, free: 7.102 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002369/0.9357, allocations: 1.155 MB / 1.103 GB, free: 5.938 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.9358, allocations: 8 kB / 1.103 GB, free: 5.93 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.9358, allocations: 0 / 1.103 GB, free: 5.93 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.9358, allocations: 7.969 kB / 1.103 GB, free: 5.922 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003191/0.939, allocations: 2.029 MB / 1.105 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.939, allocations: 0 / 1.105 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005931/0.9396, allocations: 155.8 kB / 1.105 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005044/0.9401, allocations: 88.77 kB / 1.106 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.453e-05/0.9402, allocations: 23.98 kB / 1.106 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001688/0.9419, allocations: 1.56 MB / 1.107 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.9419, allocations: 7.984 kB / 1.107 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.9438, allocations: 1.039 MB / 1.108 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004008/0.9442, allocations: 307.5 kB / 1.108 GB, free: 492 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.9443, allocations: 16 kB / 1.108 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006858/0.945, allocations: 92.47 kB / 1.109 GB, free: 384 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.9452, allocations: 76.89 kB / 1.109 GB, free: 304 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-05/0.9453, allocations: 39.97 kB / 1.109 GB, free: 264 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0005543/0.9458, allocations: 459 kB / 1.109 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9458, allocations: 0 / 1.109 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0008726/0.9467, allocations: 323.2 kB / 1.109 GB, free: 15.5 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 6 (decAng.tNext,weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.00322/0.9499, allocations: 2.095 MB / 1.111 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00152/0.9515, allocations: 0.8352 MB / 1.112 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.9515, allocations: 0 / 1.112 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008373/0.9523, allocations: 0.547 MB / 1.113 GB, free: 12.16 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009748/0.9533, allocations: 240.2 kB / 1.113 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009196/0.9625, allocations: 5.639 MB / 1.118 GB, free: 6.168 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005739/0.9631, allocations: 1.057 MB / 1.12 GB, free: 5.086 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0008092/0.9639, allocations: 266.8 kB / 1.12 GB, free: 4.82 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005001/0.9644, allocations: 399.3 kB / 1.12 GB, free: 4.43 MB / 0.8731 GB Notification: Performance of SimCode: time 3.61e-07/0.9645, allocations: 7.938 kB / 1.12 GB, free: 4.422 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03796/1.002, allocations: 21.68 MB / 1.141 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001967/1.003, allocations: 286.3 kB / 1.142 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.416/3.419, allocations: 3.938 kB / 1.142 GB, free: 14.77 MB / 0.9044 GB (rm -f Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle_res.mat --tempDir=temp_Buildings_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle_fmu --startTime=100000 --stopTime=300000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle.fmu > Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle_res.mat does not exist to compare? outputFormat=mat