Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.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: translateModel(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.solarAltitude|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude") translateModel(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.solarAltitude|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002006/0.002005, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002055/0.002056, allocations: 193.5 kB / 16.25 MB, free: 6.637 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.436/1.436, allocations: 222.9 MB / 239.9 MB, free: 4.531 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.382/2.382, allocations: 390.2 MB / 0.6643 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 63.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7532/0.7546, allocations: 140.4 MB / 0.9491 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude): time 0.002955/0.7576, allocations: 1.555 MB / 0.9506 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.7589, allocations: 0.7414 MB / 0.9513 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.802e-05/0.759, allocations: 1.406 kB / 0.9513 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.074e-05/0.7591, allocations: 3.938 kB / 0.9513 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.632e-05/0.7591, allocations: 10.58 kB / 0.9514 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006145/0.7598, allocations: 123.1 kB / 0.9515 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.7599, allocations: 89.91 kB / 0.9516 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.7601, allocations: 17.47 kB / 0.9516 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.7602, allocations: 36.62 kB / 0.9516 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.342e-05/0.7603, allocations: 46.2 kB / 0.9517 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.713e-05/0.7603, allocations: 7.219 kB / 0.9517 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000221/0.7606, allocations: 103.8 kB / 0.9518 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.756e-05/0.7606, allocations: 23.88 kB / 0.9518 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.433e-05/0.7607, allocations: 47.34 kB / 0.9518 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.7609, allocations: 146.5 kB / 0.952 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.7609, allocations: 0 / 0.952 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7609, allocations: 1.156 kB / 0.952 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.7609, allocations: 3.938 kB / 0.952 GB, free: 6.957 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005734/0.7615, allocations: 457.6 kB / 0.9524 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.7616, allocations: 14.78 kB / 0.9524 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.312e-05/0.7616, allocations: 8.844 kB / 0.9524 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.817e-05/0.7617, allocations: 180.2 kB / 0.9526 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/0.7618, allocations: 8.344 kB / 0.9526 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.7618, allocations: 4.656 kB / 0.9526 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002236/0.762, allocations: 95.19 kB / 0.9527 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.762, allocations: 3.938 kB / 0.9527 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.762, allocations: 1.531 kB / 0.9527 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.7621, allocations: 1.5 kB / 0.9527 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.7622, allocations: 48.53 kB / 0.9528 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005135/0.7627, allocations: 321.8 kB / 0.9531 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001678/0.7629, allocations: 70.02 kB / 0.9531 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.781e-05/0.763, allocations: 43.98 kB / 0.9532 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.763, allocations: 5.312 kB / 0.9532 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.7633, allocations: 95.89 kB / 0.9533 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.7633, allocations: 0 / 0.9533 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0004642/0.7638, allocations: 184.5 kB / 0.9534 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.7638, allocations: 53.97 kB / 0.9535 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.974e-05/0.7639, allocations: 131.3 kB / 0.9536 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.7639, allocations: 32.27 kB / 0.9537 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.904e-05/0.764, allocations: 87.25 kB / 0.9537 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.237e-05/0.764, allocations: 30.81 kB / 0.9538 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-05/0.7641, allocations: 35.8 kB / 0.9538 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.241e-05/0.7641, allocations: 322.5 kB / 0.9541 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.947e-05/0.7642, allocations: 30.34 kB / 0.9541 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.395e-05/0.7643, allocations: 71.12 kB / 0.9542 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.7645, allocations: 108.5 kB / 0.9543 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.7645, allocations: 0 / 0.9543 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002439/0.7647, allocations: 143.3 kB / 0.9544 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.7648, allocations: 6.281 kB / 0.9545 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.7648, allocations: 1.688 kB / 0.9545 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.7648, allocations: 6.688 kB / 0.9545 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.361e-05/0.7649, allocations: 15.95 kB / 0.9545 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.7649, allocations: 5.469 kB / 0.9545 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.786e-05/0.765, allocations: 9.219 kB / 0.9545 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.765, allocations: 8.562 kB / 0.9545 GB, free: 4.586 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 (bli.curSeed,$PRE.bli.curSeed,bli.pDown,$PRE.bli.pDown,bli.pUp,$PRE.bli.pUp,bli.isOpen,$PRE.bli.isOpen,bli.blindState,$PRE.bli.blindState,occ.y,bli.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 7.745e-05/0.7651, allocations: 120.8 kB / 0.9546 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.345e-05/0.7651, allocations: 11.48 kB / 0.9546 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.937e-05/0.7652, allocations: 14.47 kB / 0.9546 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.7652, allocations: 1.375 kB / 0.9546 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.7652, allocations: 0 / 0.9546 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.7652, allocations: 1.125 kB / 0.9546 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004622/0.7656, allocations: 441.3 kB / 0.9551 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.7657, allocations: 0 / 0.9551 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.133e-05/0.7657, allocations: 11.39 kB / 0.9551 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.7657, allocations: 0.8438 kB / 0.9551 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.7657, allocations: 2.188 kB / 0.9551 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.7657, allocations: 4 kB / 0.9551 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.7657, allocations: 5.094 kB / 0.9551 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003104/0.7661, allocations: 244.3 kB / 0.9553 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.76e-05/0.7661, allocations: 91.44 kB / 0.9554 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.7661, allocations: 10.39 kB / 0.9554 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.7662, allocations: 2.406 kB / 0.9554 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.7663, allocations: 15.64 kB / 0.9554 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.327e-05/0.7663, allocations: 2.719 kB / 0.9554 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.102e-05/0.7664, allocations: 100.6 kB / 0.9555 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7664, allocations: 1.188 kB / 0.9555 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003271/0.7667, allocations: 43.39 kB / 0.9556 GB, free: 3.613 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 (bli.sampleTrigger,$whenCondition1,occ.y,bli.blindState,bli.pUp,bli.pDown,bli.isOpen,bli.curSeed) * Number of discrete states: 1 (bli.isOpen) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0003285/0.767, allocations: 157.6 kB / 0.9557 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002761/0.7673, allocations: 93.58 kB / 0.9558 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.7673, allocations: 0 / 0.9558 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.7675, allocations: 54.19 kB / 0.9559 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.7678, allocations: 17.67 kB / 0.9559 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004314/0.7682, allocations: 217.9 kB / 0.9561 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001466/0.7684, allocations: 0.692 MB / 0.9568 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.376e-05/0.7684, allocations: 7.844 kB / 0.9568 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.686e-05/0.7684, allocations: 11.34 kB / 0.9568 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of SimCode: time 3.9e-07/0.7684, allocations: 1.5 kB / 0.9568 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of Templates: time 0.005477/0.7739, allocations: 1.648 MB / 0.9584 GB, free: 1.676 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.sim & ./Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches