Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.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.SolarHourAngle,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_SolarHourAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_SolarHourAngle",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.0008219/0.000822, allocations: 86.25 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.0009873/0.0009874, 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.361/1.361, allocations: 223.2 MB / 240 MB, free: 5.434 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.462/2.462, allocations: 390.4 MB / 0.6655 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.000356, allocations: 8 kB / 0.8149 GB, free: 14.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7209/0.7213, allocations: 142.3 MB / 0.9538 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle): time 0.004043/0.7253, allocations: 3.682 MB / 0.9574 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1589/0.8843, allocations: 136.7 MB / 1.091 GB, free: 3.336 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007997/0.8851, allocations: 19.88 kB / 1.091 GB, free: 3.316 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0006123/0.8857, allocations: 126.9 kB / 1.091 GB, free: 3.191 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001593/0.8873, allocations: 423.5 kB / 1.092 GB, free: 2.777 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001817/0.8892, allocations: 0.621 MB / 1.092 GB, free: 2.164 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001434/0.8906, allocations: 1.094 MB / 1.093 GB, free: 1.066 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008195/0.8914, allocations: 479.1 kB / 1.094 GB, free: 0.582 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005584/0.892, allocations: 322.6 kB / 1.094 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005192/0.8925, allocations: 354.1 kB / 1.094 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.8926, allocations: 28 kB / 1.094 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007728/0.8934, allocations: 335.7 kB / 1.095 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000221/0.8937, allocations: 175.2 kB / 1.095 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002285/0.8939, allocations: 197.1 kB / 1.095 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001359/0.8953, allocations: 1.138 MB / 1.096 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.8953, allocations: 0 / 1.096 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/0.8953, allocations: 0 / 1.096 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.28e-05/0.8953, allocations: 0 / 1.096 GB, free: 14.05 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002321/0.8977, allocations: 1.214 MB / 1.097 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.8977, allocations: 12.03 kB / 1.097 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001448/0.8979, allocations: 131.1 kB / 1.097 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007821/0.8987, allocations: 190.6 kB / 1.098 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009427/0.8996, allocations: 0.703 MB / 1.098 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.791e-05/0.8997, allocations: 65.98 kB / 1.098 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.8998, allocations: 80 kB / 1.098 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.9013, allocations: 0.9028 MB / 1.099 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.9013, allocations: 3.953 kB / 1.099 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.368e-05/0.9014, allocations: 32 kB / 1.099 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.9014, allocations: 20 kB / 1.099 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.9031, allocations: 1.097 MB / 1.1 GB, free: 9.465 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003458/0.9065, allocations: 2.492 MB / 1.103 GB, free: 6.898 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.9079, allocations: 0.8654 MB / 1.104 GB, free: 6.012 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004996/0.9084, allocations: 310.7 kB / 1.104 GB, free: 5.703 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 7.325e-05/0.9085, allocations: 28.58 kB / 1.104 GB, free: 5.676 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000815/0.9093, allocations: 491.1 kB / 1.105 GB, free: 5.176 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=79): time 3.497e-06/0.9093, allocations: 0 / 1.105 GB, free: 5.176 MB / 0.8575 GB Notification: Performance of matching and sorting (n=79): time 0.002714/0.9121, allocations: 1.19 MB / 1.106 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.71e-05/0.9122, allocations: 192.6 kB / 1.106 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007029/0.9129, allocations: 0.6098 MB / 1.106 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.596e-05/0.9129, allocations: 45.7 kB / 1.107 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002853/0.9132, allocations: 388.3 kB / 1.107 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/0.9134, allocations: 260.3 kB / 1.107 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.796e-05/0.9135, allocations: 16 kB / 1.107 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001703/0.9136, allocations: 390.7 kB / 1.108 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004542/0.9141, allocations: 237.9 kB / 1.108 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005371/0.9147, allocations: 354.6 kB / 1.108 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005181/0.9152, allocations: 290.9 kB / 1.108 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.9152, allocations: 0 / 1.108 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001618/0.9168, allocations: 0.7863 MB / 1.109 GB, free: 332 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.9168, allocations: 12.88 kB / 1.109 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.9169, allocations: 0 / 1.109 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005143/0.9174, allocations: 88.8 kB / 1.109 GB, free: 228 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005737/0.918, allocations: 147.8 kB / 1.109 GB, free: 80 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.9198, allocations: 1.519 MB / 1.111 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005495/0.9204, allocations: 107.4 kB / 1.111 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.345e-05/0.9204, allocations: 27.98 kB / 1.111 GB, free: 14.29 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 15 ($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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 84 * 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.0003352/0.9208, allocations: 257.7 kB / 1.111 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.9209, allocations: 82.97 kB / 1.111 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002191/0.9231, allocations: 1.061 MB / 1.112 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.9231, allocations: 19.98 kB / 1.112 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.9231, allocations: 0 / 1.112 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.9231, allocations: 3.984 kB / 1.112 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002838/0.926, allocations: 1.903 MB / 1.114 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.926, allocations: 0 / 1.114 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000529/0.9265, allocations: 143.8 kB / 1.114 GB, free: 10.74 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004464/0.927, allocations: 80.78 kB / 1.114 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-05/0.927, allocations: 27.97 kB / 1.114 GB, free: 10.63 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001585/0.9286, allocations: 1.555 MB / 1.116 GB, free: 8.941 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.9286, allocations: 3.938 kB / 1.116 GB, free: 8.938 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.9303, allocations: 0.9921 MB / 1.117 GB, free: 7.926 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003121/0.9306, allocations: 279.7 kB / 1.117 GB, free: 7.633 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.9308, allocations: 23.94 kB / 1.117 GB, free: 7.609 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005777/0.9313, allocations: 82.12 kB / 1.117 GB, free: 7.531 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.9315, allocations: 68.89 kB / 1.117 GB, free: 7.461 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.289e-05/0.9315, allocations: 35.98 kB / 1.117 GB, free: 7.426 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.00048/0.932, allocations: 447 kB / 1.118 GB, free: 6.996 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.932, allocations: 0 / 1.118 GB, free: 6.996 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007401/0.9328, allocations: 299.3 kB / 1.118 GB, free: 6.703 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: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (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 (90): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.003046/0.9358, allocations: 2.037 MB / 1.12 GB, free: 4.816 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001355/0.9372, allocations: 0.7885 MB / 1.121 GB, free: 4.016 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.9372, allocations: 0 / 1.121 GB, free: 4.016 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007974/0.938, allocations: 0.5081 MB / 1.121 GB, free: 3.5 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.9391, allocations: 263.3 kB / 1.122 GB, free: 3.246 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008676/0.9477, allocations: 5.005 MB / 1.127 GB, free: 14.18 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006136/0.9484, allocations: 1.02 MB / 1.128 GB, free: 13.13 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.000781/0.9492, allocations: 258.6 kB / 1.128 GB, free: 12.88 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005069/0.9497, allocations: 375.2 kB / 1.128 GB, free: 12.51 MB / 0.8887 GB Notification: Performance of SimCode: time 9.02e-07/0.9497, allocations: 0 / 1.128 GB, free: 12.51 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0391/0.9888, allocations: 20.85 MB / 1.148 GB, free: 8.07 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002113/0.989, allocations: 300.5 kB / 1.149 GB, free: 7.707 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.406/3.395, allocations: 0 / 1.149 GB, free: 7.707 MB / 0.9044 GB (rm -f Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle_res.mat --tempDir=temp_Buildings_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_SolarHourAngle_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_SolarHourAngle.fmu > Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle_res.mat does not exist to compare? outputFormat=mat