Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.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.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",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.001037/0.001037, 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.001328/0.001328, 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.422/1.422, allocations: 223.3 MB / 240 MB, free: 5.426 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.48/2.48, allocations: 390.4 MB / 0.6655 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.0003581, allocations: 8 kB / 0.8149 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8802/0.8806, allocations: 142.3 MB / 0.9538 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.00193/0.8826, allocations: 1.21 MB / 0.955 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001361/0.884, allocations: 0.703 MB / 0.9557 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.596e-05/0.8841, allocations: 3.938 kB / 0.9557 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.394e-05/0.8841, allocations: 3.938 kB / 0.9557 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.8842, allocations: 10.23 kB / 0.9557 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006434/0.8849, allocations: 105.8 kB / 0.9558 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001477/0.885, allocations: 73.44 kB / 0.9559 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.8851, allocations: 13.45 kB / 0.9559 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.8853, allocations: 30.91 kB / 0.9559 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.683e-05/0.8854, allocations: 31.22 kB / 0.956 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.016e-05/0.8854, allocations: 3.5 kB / 0.956 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002355/0.8856, allocations: 88.81 kB / 0.9561 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.677e-05/0.8857, allocations: 15.14 kB / 0.9561 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.938e-05/0.8857, allocations: 39.48 kB / 0.9561 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002047/0.886, allocations: 101.6 kB / 0.9562 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.886, allocations: 0 / 0.9562 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.894e-06/0.886, allocations: 0 / 0.9562 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.886, allocations: 0.9062 kB / 0.9562 GB, free: 6.297 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006948/0.8867, allocations: 461.1 kB / 0.9567 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.8867, allocations: 9.156 kB / 0.9567 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.981e-05/0.8868, allocations: 39.98 kB / 0.9567 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.409e-05/0.8869, allocations: 11.89 kB / 0.9567 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.887, allocations: 175.8 kB / 0.9569 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.887, allocations: 3.156 kB / 0.9569 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.887, allocations: 8.188 kB / 0.9569 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001875/0.8872, allocations: 70.45 kB / 0.957 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.8873, allocations: 4 kB / 0.957 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.8873, allocations: 5.094 kB / 0.957 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.8873, allocations: 1.125 kB / 0.957 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001381/0.8874, allocations: 49.23 kB / 0.957 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005401/0.888, allocations: 325.5 kB / 0.9573 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.8881, allocations: 57.06 kB / 0.9574 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.036e-05/0.8882, allocations: 43.52 kB / 0.9574 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.8883, allocations: 0 / 0.9574 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002314/0.8885, allocations: 109.3 kB / 0.9575 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.8885, allocations: 1.062 kB / 0.9575 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004202/0.8889, allocations: 159 kB / 0.9577 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.889, allocations: 56.7 kB / 0.9577 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.069e-05/0.8891, allocations: 127.2 kB / 0.9578 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.8891, allocations: 31.86 kB / 0.9579 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.633e-05/0.8892, allocations: 95.11 kB / 0.958 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.563e-05/0.8892, allocations: 26.92 kB / 0.958 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.374e-06/0.8892, allocations: 1.594 kB / 0.958 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.23e-05/0.8893, allocations: 320.3 kB / 0.9583 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.498e-05/0.8894, allocations: 28.36 kB / 0.9583 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.255e-05/0.8894, allocations: 70.59 kB / 0.9584 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.671e-05/0.8895, allocations: 39.7 kB / 0.9584 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.8895, allocations: 0 / 0.9584 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002407/0.8898, allocations: 134.2 kB / 0.9586 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.8898, allocations: 10.5 kB / 0.9586 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.8898, allocations: 6.766 kB / 0.9586 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.8899, allocations: 1.406 kB / 0.9586 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.89, allocations: 20.7 kB / 0.9586 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.89, allocations: 9.453 kB / 0.9586 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.8901, allocations: 20.78 kB / 0.9586 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.8901, allocations: 4.75 kB / 0.9586 GB, free: 4.023 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,occ.y,$PRE.occ.pulseStart,occ.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.691e-05/0.8902, allocations: 121.8 kB / 0.9588 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.182e-05/0.8903, allocations: 11.84 kB / 0.9588 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003199/0.8906, allocations: 149.3 kB / 0.9589 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.8906, allocations: 5.234 kB / 0.9589 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.8906, allocations: 4 kB / 0.9589 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.8906, allocations: 1.031 kB / 0.9589 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005358/0.8912, allocations: 425.3 kB / 0.9593 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.8912, allocations: 0 / 0.9593 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.28e-05/0.8913, allocations: 21.34 kB / 0.9593 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.8913, allocations: 1.219 kB / 0.9593 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.8913, allocations: 1.469 kB / 0.9593 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.8913, allocations: 5.234 kB / 0.9593 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.8913, allocations: 0 / 0.9593 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002968/0.8916, allocations: 228.5 kB / 0.9596 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.173e-05/0.8917, allocations: 90.92 kB / 0.9597 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.8917, allocations: 9.875 kB / 0.9597 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.8918, allocations: 10.59 kB / 0.9597 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.602e-05/0.8919, allocations: 13.05 kB / 0.9597 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.178e-05/0.8919, allocations: 8.047 kB / 0.9597 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.881e-05/0.892, allocations: 97.27 kB / 0.9598 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.892, allocations: 1.594 kB / 0.9598 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003645/0.8924, allocations: 41.78 kB / 0.9598 GB, free: 2.992 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008054/0.8932, allocations: 0.8268 MB / 0.9606 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002429/0.8934, allocations: 88.08 kB / 0.9607 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.8934, allocations: 1.375 kB / 0.9607 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.8936, allocations: 44.86 kB / 0.9608 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.8939, allocations: 19.06 kB / 0.9608 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.895, allocations: 0.6747 MB / 0.9614 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.8951, allocations: 0.7036 MB / 0.9621 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.831e-05/0.8952, allocations: 10.55 kB / 0.9621 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.181e-05/0.8952, allocations: 28.48 kB / 0.9622 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.8953, allocations: 0.9688 kB / 0.9622 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01435/0.9096, allocations: 2.734 MB / 0.9648 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001968/0.9099, allocations: 229.6 kB / 0.9651 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/2.72, allocations: 3.125 kB / 0.9651 GB, free: 15.36 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat does not exist to compare? outputFormat=mat