Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.28/2.28, allocations: 393.5 MB / 408.4 MB, free: 11.1 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.001319/0.001319, allocations: 192.4 kB / 0.4902 GB, free: 2.242 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.534/1.534, allocations: 223.1 MB / 0.7992 GB, free: 15.7 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.0009044/0.0009043, allocations: 86.84 kB / 0.9396 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004168/0.0004168, allocations: 8.281 kB / 1.09 GB, free: 213 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3434, allocations: 143 MB / 1.229 GB, free: 85.4 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1984/0.5419, allocations: 152.2 MB / 1.378 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.5422, allocations: 79.95 kB / 1.378 GB, free: 12.88 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.01007/0.5523, allocations: 3.219 MB / 1.381 GB, free: 9.648 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.703e-06/0.5523, allocations: 0 / 1.381 GB, free: 9.648 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.525e-06/0.5523, allocations: 0 / 1.381 GB, free: 9.648 MB / 0.8855 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.0007235/0.5531, allocations: 475.2 kB / 1.382 GB, free: 9.125 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.5531, allocations: 12.5 kB / 1.382 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.638e-05/0.5532, allocations: 46.55 kB / 1.382 GB, free: 9.059 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.397e-05/0.5532, allocations: 15.8 kB / 1.382 GB, free: 9.043 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/0.5534, allocations: 170.2 kB / 1.382 GB, free: 8.84 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.5534, allocations: 4 kB / 1.382 GB, free: 8.836 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.5535, allocations: 8 kB / 1.382 GB, free: 8.828 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.5536, allocations: 69.86 kB / 1.382 GB, free: 8.754 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.5537, allocations: 3.938 kB / 1.382 GB, free: 8.75 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.5537, allocations: 3.938 kB / 1.382 GB, free: 8.746 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.5537, allocations: 4 kB / 1.382 GB, free: 8.742 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001415/0.5538, allocations: 47.97 kB / 1.382 GB, free: 8.695 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006149/0.5545, allocations: 332.7 kB / 1.382 GB, free: 8.32 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.5546, allocations: 70.58 kB / 1.382 GB, free: 8.242 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.5547, allocations: 160 / 1.382 GB, free: 8.242 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002016/0.5549, allocations: 95.34 kB / 1.382 GB, free: 8.137 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.5549, allocations: 0 / 1.382 GB, free: 8.137 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10): time 0.0004043/0.5553, allocations: 169.4 kB / 1.383 GB, free: 7.965 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.5554, allocations: 59.41 kB / 1.383 GB, free: 7.895 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.92e-05/0.5555, allocations: 120.9 kB / 1.383 GB, free: 7.77 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.5555, allocations: 29.7 kB / 1.383 GB, free: 7.734 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.029e-05/0.5555, allocations: 88.38 kB / 1.383 GB, free: 7.641 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.247e-05/0.5556, allocations: 23.7 kB / 1.383 GB, free: 7.617 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-06/0.5556, allocations: 4 kB / 1.383 GB, free: 7.613 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.5557, allocations: 314.8 kB / 1.383 GB, free: 7.297 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.129e-05/0.5558, allocations: 35.91 kB / 1.383 GB, free: 7.262 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.324e-05/0.5559, allocations: 65.14 kB / 1.383 GB, free: 7.18 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.792e-05/0.556, allocations: 35.98 kB / 1.383 GB, free: 7.145 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.556, allocations: 4 kB / 1.383 GB, free: 7.141 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002404/0.5563, allocations: 129.4 kB / 1.383 GB, free: 7.008 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.5563, allocations: 8.125 kB / 1.383 GB, free: 7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.5563, allocations: 4 kB / 1.384 GB, free: 6.996 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.5563, allocations: 0 / 1.384 GB, free: 6.996 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.5564, allocations: 23.92 kB / 1.384 GB, free: 6.973 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.5565, allocations: 7.953 kB / 1.384 GB, free: 6.965 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.5566, allocations: 11.98 kB / 1.384 GB, free: 6.953 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.5566, allocations: 8.359 kB / 1.384 GB, free: 6.945 MB / 0.8855 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,lig.occ,$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 0.0001292/0.5567, allocations: 129.8 kB / 1.384 GB, free: 6.809 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.471e-05/0.5568, allocations: 11.84 kB / 1.384 GB, free: 6.797 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003754/0.5571, allocations: 145.9 kB / 1.384 GB, free: 6.648 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.5572, allocations: 7.938 kB / 1.384 GB, free: 6.641 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.5572, allocations: 0 / 1.384 GB, free: 6.641 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.5572, allocations: 3.953 kB / 1.384 GB, free: 6.637 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006296/0.5578, allocations: 438.3 kB / 1.384 GB, free: 6.152 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.5578, allocations: 0 / 1.384 GB, free: 6.152 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.221e-05/0.5579, allocations: 8 kB / 1.384 GB, free: 6.145 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.5579, allocations: 0 / 1.384 GB, free: 6.145 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.163e-05/0.558, allocations: 15.94 kB / 1.384 GB, free: 6.129 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.558, allocations: 4 kB / 1.384 GB, free: 6.125 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.558, allocations: 4 kB / 1.384 GB, free: 6.121 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003357/0.5583, allocations: 231.5 kB / 1.385 GB, free: 5.879 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.08e-05/0.5584, allocations: 85 kB / 1.385 GB, free: 5.777 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.665e-05/0.5584, allocations: 4 kB / 1.385 GB, free: 5.773 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.5585, allocations: 23.94 kB / 1.385 GB, free: 5.75 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.412e-05/0.5586, allocations: 7.984 kB / 1.385 GB, free: 5.742 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.5586, allocations: 4 kB / 1.385 GB, free: 5.738 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.185e-05/0.5587, allocations: 102.1 kB / 1.385 GB, free: 5.641 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5587, allocations: 4 kB / 1.385 GB, free: 5.637 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003604/0.5591, allocations: 47.98 kB / 1.385 GB, free: 5.59 MB / 0.8855 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 (lig.occ,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.0009553/0.5601, allocations: 0.8373 MB / 1.386 GB, free: 4.742 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000251/0.5603, allocations: 87.91 kB / 1.386 GB, free: 4.656 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.5603, allocations: 0 / 1.386 GB, free: 4.656 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.5605, allocations: 51.91 kB / 1.386 GB, free: 4.605 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002336/0.5607, allocations: 20.97 kB / 1.386 GB, free: 4.586 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.5618, allocations: 1.225 MB / 1.387 GB, free: 3.285 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.5621, allocations: 0.6965 MB / 1.388 GB, free: 2.562 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.257e-05/0.5622, allocations: 8.438 kB / 1.388 GB, free: 2.555 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.299e-05/0.5623, allocations: 31.42 kB / 1.388 GB, free: 2.523 MB / 0.8855 GB Notification: Performance of SimCode: time 4.438e-06/0.5623, allocations: 3.938 kB / 1.388 GB, free: 2.52 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.5782, allocations: 2.885 MB / 1.39 GB, free: 15.79 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002267/0.5784, allocations: 236.4 kB / 1.391 GB, free: 15.55 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.625/2.203, allocations: 3.938 kB / 1.391 GB, free: 15.54 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat does not exist to compare? outputFormat=mat