Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 100.1 kB / 15.88 MB, free: 12 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.001539/0.001539, allocations: 199 kB / 16.79 MB, free: 6.809 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.393/1.393, allocations: 222.9 MB / 240.5 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.369/2.369, allocations: 390.2 MB / 0.6649 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 67.91 kB / 0.8125 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7883/0.7899, allocations: 140.3 MB / 0.9496 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.003281/0.7933, allocations: 0.9428 MB / 0.9505 GB, free: 8.48 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002173/0.7955, allocations: 1.187 MB / 0.9517 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.7956, allocations: 0.6875 kB / 0.9517 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.039e-05/0.7957, allocations: 3.938 kB / 0.9517 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000139/0.7959, allocations: 21.44 kB / 0.9517 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006668/0.7965, allocations: 133 kB / 0.9518 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002357/0.7968, allocations: 153.7 kB / 0.952 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.797, allocations: 32.92 kB / 0.952 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001693/0.7972, allocations: 59.58 kB / 0.9521 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001343/0.7973, allocations: 63.02 kB / 0.9521 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.423e-05/0.7974, allocations: 8.562 kB / 0.9521 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.7975, allocations: 19.69 kB / 0.9522 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.85e-05/0.7975, allocations: 25.22 kB / 0.9522 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.7976, allocations: 61.05 kB / 0.9522 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.7978, allocations: 111.3 kB / 0.9523 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.7979, allocations: 4 kB / 0.9524 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.823e-06/0.7979, allocations: 1.406 kB / 0.9524 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.7979, allocations: 0 / 0.9524 GB, free: 7.078 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008645/0.7988, allocations: 464.2 kB / 0.9528 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.7988, allocations: 10.06 kB / 0.9528 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.7989, allocations: 13.25 kB / 0.9528 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000719/0.7997, allocations: 252.8 kB / 0.9531 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.7997, allocations: 9.031 kB / 0.9531 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.805e-05/0.7998, allocations: 13.53 kB / 0.9531 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/0.8001, allocations: 92.36 kB / 0.9532 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.8001, allocations: 8.938 kB / 0.9532 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.8001, allocations: 5.109 kB / 0.9532 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.8002, allocations: 1.562 kB / 0.9532 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000258/0.8004, allocations: 54.05 kB / 0.9532 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00093/0.8014, allocations: 386.4 kB / 0.9536 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.8016, allocations: 31.09 kB / 0.9536 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.8017, allocations: 33.48 kB / 0.9537 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.8017, allocations: 1 kB / 0.9537 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003015/0.8021, allocations: 94.98 kB / 0.9538 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 2.395e-06/0.8021, allocations: 1.281 kB / 0.9538 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0006122/0.8027, allocations: 140.6 kB / 0.9539 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.8027, allocations: 60.34 kB / 0.9539 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.8029, allocations: 152.7 kB / 0.9541 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.803, allocations: 32.48 kB / 0.9541 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.556e-05/0.803, allocations: 109.9 kB / 0.9542 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.895e-05/0.8031, allocations: 27.83 kB / 0.9543 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.8032, allocations: 44.55 kB / 0.9543 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.405e-05/0.8033, allocations: 326.7 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002207/0.8035, allocations: 50.8 kB / 0.9547 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002572/0.8038, allocations: 132.6 kB / 0.9548 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004266/0.8042, allocations: 202.2 kB / 0.955 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.8042, allocations: 1.062 kB / 0.955 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0007292/0.805, allocations: 248.6 kB / 0.9552 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.386e-05/0.805, allocations: 33.45 kB / 0.9552 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.805, allocations: 3.062 kB / 0.9553 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.8051, allocations: 8.562 kB / 0.9553 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.8052, allocations: 22.73 kB / 0.9553 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.8053, allocations: 11.47 kB / 0.9553 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/0.8056, allocations: 41.77 kB / 0.9553 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.8057, allocations: 14.25 kB / 0.9553 GB, free: 4.363 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001278/0.8058, allocations: 132.2 kB / 0.9555 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.411e-05/0.8059, allocations: 12.47 kB / 0.9555 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.535e-05/0.8059, allocations: 23.34 kB / 0.9555 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.8059, allocations: 1.312 kB / 0.9555 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.806, allocations: 5.062 kB / 0.9555 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.806, allocations: 0 / 0.9555 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007043/0.8067, allocations: 394.7 kB / 0.9559 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.8067, allocations: 0 / 0.9559 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.8068, allocations: 18.33 kB / 0.9559 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.8069, allocations: 5.125 kB / 0.9559 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.8069, allocations: 1.438 kB / 0.9559 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.8069, allocations: 0 / 0.9559 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.8069, allocations: 0 / 0.9559 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005509/0.8075, allocations: 238.8 kB / 0.9561 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.766e-05/0.8075, allocations: 96.27 kB / 0.9562 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.001e-05/0.8076, allocations: 1.188 kB / 0.9562 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.8077, allocations: 8.688 kB / 0.9562 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.094e-05/0.8078, allocations: 14.83 kB / 0.9563 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.8078, allocations: 3.75 kB / 0.9563 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.093e-05/0.8079, allocations: 112.5 kB / 0.9564 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2e-07/0.8079, allocations: 0 / 0.9564 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0005012/0.8084, allocations: 32.75 kB / 0.9564 GB, free: 3.41 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000205/0.8086, allocations: 110.3 kB / 0.9565 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005281/0.8092, allocations: 180.9 kB / 0.9567 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.8092, allocations: 0 / 0.9567 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001462/0.8093, allocations: 37.42 kB / 0.9567 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.8098, allocations: 26.94 kB / 0.9567 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006839/0.8105, allocations: 315 kB / 0.957 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001672/0.8107, allocations: 0.7078 MB / 0.9577 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.837e-05/0.8107, allocations: 14.69 kB / 0.9577 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/0.8107, allocations: 0 / 0.9577 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of Templates: time 0.00528/0.816, allocations: 1.718 MB / 0.9594 GB, free: 1.301 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches