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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001651/0.001651, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00191/0.00191, allocations: 195.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.228/2.228, allocations: 390.2 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 60.14 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5423/0.5435, allocations: 140.4 MB / 0.9497 GB, free: 9.047 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.002349/0.5459, allocations: 1.496 MB / 0.9512 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001026/0.5469, allocations: 0.7624 MB / 0.9519 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.337e-05/0.547, allocations: 5.469 kB / 0.9519 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.634e-05/0.547, allocations: 3.938 kB / 0.9519 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.344e-05/0.5471, allocations: 9.281 kB / 0.9519 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004311/0.5475, allocations: 132.2 kB / 0.9521 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.083e-05/0.5476, allocations: 90.44 kB / 0.9521 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.491e-05/0.5477, allocations: 9.266 kB / 0.9522 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.406e-05/0.5478, allocations: 43.47 kB / 0.9522 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.311e-05/0.5479, allocations: 43.45 kB / 0.9522 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.781e-05/0.5479, allocations: 7.125 kB / 0.9522 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.5481, allocations: 94.34 kB / 0.9523 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.036e-05/0.5481, allocations: 14.36 kB / 0.9524 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.339e-05/0.5481, allocations: 37.27 kB / 0.9524 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001844/0.5483, allocations: 154.6 kB / 0.9525 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.5483, allocations: 1.219 kB / 0.9525 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.162e-06/0.5483, allocations: 0 / 0.9525 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.5483, allocations: 0 / 0.9525 GB, free: 6.859 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.0005526/0.5489, allocations: 465.3 kB / 0.953 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.5489, allocations: 13.73 kB / 0.953 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.63e-05/0.549, allocations: 36.25 kB / 0.953 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.332e-05/0.549, allocations: 8.844 kB / 0.953 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.727e-05/0.5491, allocations: 174 kB / 0.9532 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.5491, allocations: 7.141 kB / 0.9532 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.5491, allocations: 8.125 kB / 0.9532 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001583/0.5493, allocations: 80.19 kB / 0.9533 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.5493, allocations: 1.156 kB / 0.9533 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.5493, allocations: 4 kB / 0.9533 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.5493, allocations: 5.156 kB / 0.9533 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001198/0.5495, allocations: 38.16 kB / 0.9533 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000425/0.5499, allocations: 326.3 kB / 0.9537 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001324/0.55, allocations: 67.69 kB / 0.9537 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.818e-05/0.5501, allocations: 36.25 kB / 0.9537 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.5501, allocations: 1.219 kB / 0.9538 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001872/0.5503, allocations: 96.56 kB / 0.9538 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 2.184e-06/0.5503, allocations: 0 / 0.9538 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003424/0.5507, allocations: 162.6 kB / 0.954 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.563e-05/0.5507, allocations: 57.97 kB / 0.9541 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.72e-05/0.5508, allocations: 127.6 kB / 0.9542 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.5508, allocations: 27.23 kB / 0.9542 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.936e-05/0.5509, allocations: 91.28 kB / 0.9543 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.5509, allocations: 22.38 kB / 0.9543 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-05/0.5509, allocations: 32.11 kB / 0.9543 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.674e-05/0.551, allocations: 329.1 kB / 0.9547 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.708e-05/0.551, allocations: 26.98 kB / 0.9547 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.231e-05/0.5511, allocations: 64.12 kB / 0.9547 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.5513, allocations: 100.9 kB / 0.9548 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5513, allocations: 1.594 kB / 0.9548 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001992/0.5515, allocations: 126.5 kB / 0.955 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.5515, allocations: 6.406 kB / 0.955 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.5515, allocations: 5.219 kB / 0.955 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.5515, allocations: 5.797 kB / 0.955 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.823e-05/0.5516, allocations: 22.64 kB / 0.955 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.852e-06/0.5516, allocations: 1.906 kB / 0.955 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.438e-05/0.5517, allocations: 11.38 kB / 0.955 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.5518, allocations: 8.422 kB / 0.955 GB, free: 4.5 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 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.028e-05/0.5518, allocations: 127.8 kB / 0.9551 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.846e-05/0.5518, allocations: 7.812 kB / 0.9551 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002655/0.5521, allocations: 153.3 kB / 0.9553 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.5521, allocations: 2.094 kB / 0.9553 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.5521, allocations: 0 / 0.9553 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.5521, allocations: 1.156 kB / 0.9553 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004173/0.5526, allocations: 426.7 kB / 0.9557 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.5526, allocations: 0 / 0.9557 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.281e-05/0.5526, allocations: 16.59 kB / 0.9557 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.5526, allocations: 0 / 0.9557 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.5527, allocations: 6.109 kB / 0.9557 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.5527, allocations: 3.938 kB / 0.9557 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.5527, allocations: 8.938 kB / 0.9557 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000219/0.5529, allocations: 216.1 kB / 0.9559 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.013e-05/0.5529, allocations: 91.16 kB / 0.956 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.311e-05/0.553, allocations: 10.28 kB / 0.956 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.5531, allocations: 12.31 kB / 0.9561 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.061e-05/0.5531, allocations: 12.58 kB / 0.9561 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.5531, allocations: 12.45 kB / 0.9561 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.556e-05/0.5532, allocations: 98.08 kB / 0.9562 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5532, allocations: 0 / 0.9562 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002875/0.5535, allocations: 39.31 kB / 0.9562 GB, free: 3.461 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005496/0.554, allocations: 0.8195 MB / 0.957 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002267/0.5543, allocations: 91.27 kB / 0.9571 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.5543, allocations: 4.062 kB / 0.9571 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.326e-05/0.5544, allocations: 53.5 kB / 0.9571 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.5546, allocations: 13.61 kB / 0.9572 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.5558, allocations: 1.59 MB / 0.9587 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.74e-05/0.5559, allocations: 0.6924 MB / 0.9594 GB, free: 496 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.152e-05/0.556, allocations: 19.53 kB / 0.9594 GB, free: 484 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.598e-05/0.556, allocations: 27.58 kB / 0.9594 GB, free: 460 kB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.556, allocations: 6.281 kB / 0.9594 GB, free: 456 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/0.574, allocations: 3.039 MB / 0.9624 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.05/7.624, allocations: 2.609 kB / 0.9624 GB, free: 14.86 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/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) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches