Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.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.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001834/0.001834, allocations: 103.6 kB / 15.98 MB, free: 5.891 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.002204/0.002204, allocations: 188.1 kB / 16.9 MB, free: 5.746 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.556/1.556, allocations: 222.9 MB / 240.6 MB, free: 4.527 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.425/2.425, allocations: 390.2 MB / 0.665 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 63.91 kB / 0.8127 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.704/0.7055, allocations: 140.4 MB / 0.9498 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.001907/0.7074, allocations: 0.8423 MB / 0.9506 GB, free: 8.461 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001277/0.7087, allocations: 1.133 MB / 0.9517 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.886e-05/0.7088, allocations: 1.156 kB / 0.9517 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.472e-05/0.7088, allocations: 3.938 kB / 0.9517 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.603e-05/0.7089, allocations: 14.05 kB / 0.9517 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004523/0.7094, allocations: 119.2 kB / 0.9519 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001559/0.7095, allocations: 133.7 kB / 0.952 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.197e-05/0.7096, allocations: 11 kB / 0.952 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.681e-05/0.7097, allocations: 49.92 kB / 0.952 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.049e-05/0.7098, allocations: 51.53 kB / 0.9521 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.556e-05/0.7098, allocations: 15.34 kB / 0.9521 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.686e-05/0.7099, allocations: 28.89 kB / 0.9521 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.247e-05/0.7099, allocations: 18.64 kB / 0.9521 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.003e-05/0.71, allocations: 40.72 kB / 0.9522 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.7101, allocations: 79.02 kB / 0.9523 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.7101, allocations: 0 / 0.9523 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.924e-06/0.7102, allocations: 0 / 0.9523 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.7102, allocations: 1.625 kB / 0.9523 GB, free: 7.195 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005469/0.7107, allocations: 429.3 kB / 0.9527 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.7108, allocations: 8.938 kB / 0.9527 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.737e-05/0.7108, allocations: 11.41 kB / 0.9527 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.44e-05/0.7109, allocations: 175.2 kB / 0.9529 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.7109, allocations: 7.172 kB / 0.9529 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.7109, allocations: 10.31 kB / 0.9529 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.7112, allocations: 76.42 kB / 0.9529 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.7112, allocations: 8.125 kB / 0.953 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.7112, allocations: 7.938 kB / 0.953 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.7112, allocations: 5.312 kB / 0.953 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002957/0.7115, allocations: 70.28 kB / 0.953 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003782/0.7119, allocations: 334.1 kB / 0.9534 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001818/0.7121, allocations: 52.27 kB / 0.9534 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.7122, allocations: 49.38 kB / 0.9534 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.7123, allocations: 4 kB / 0.9535 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002801/0.7126, allocations: 97.03 kB / 0.9535 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.7126, allocations: 3.938 kB / 0.9535 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005623/0.7131, allocations: 158.9 kB / 0.9537 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.7132, allocations: 60.75 kB / 0.9538 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.33e-05/0.7133, allocations: 122 kB / 0.9539 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.7133, allocations: 30.95 kB / 0.9539 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.332e-05/0.7133, allocations: 92.75 kB / 0.954 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.7134, allocations: 18.28 kB / 0.954 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.025e-05/0.7134, allocations: 30.98 kB / 0.954 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.714e-05/0.7135, allocations: 324 kB / 0.9543 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.7137, allocations: 65.16 kB / 0.9544 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.7139, allocations: 76.91 kB / 0.9545 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000342/0.7143, allocations: 145.5 kB / 0.9546 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.7143, allocations: 0 / 0.9546 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004919/0.7148, allocations: 207.3 kB / 0.9548 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.616e-05/0.7148, allocations: 41.84 kB / 0.9549 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.7148, allocations: 0 / 0.9549 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.7149, allocations: 5.312 kB / 0.9549 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.715, allocations: 16.05 kB / 0.9549 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.715, allocations: 5.109 kB / 0.9549 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002356/0.7153, allocations: 34.92 kB / 0.9549 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.7153, allocations: 9.125 kB / 0.9549 GB, free: 4.789 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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 6.812e-05/0.7154, allocations: 123.2 kB / 0.955 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.489e-05/0.7154, allocations: 14.02 kB / 0.9551 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.65e-05/0.7154, allocations: 7.219 kB / 0.9551 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.7154, allocations: 3.938 kB / 0.9551 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.7154, allocations: 0.8438 kB / 0.9551 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.7154, allocations: 0 / 0.9551 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.7155, allocations: 182.6 kB / 0.9552 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.7156, allocations: 0 / 0.9552 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.716e-05/0.7157, allocations: 18.91 kB / 0.9553 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.7157, allocations: 5.312 kB / 0.9553 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.7157, allocations: 13.41 kB / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.7157, allocations: 80 / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.7157, allocations: 3.984 kB / 0.9553 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003418/0.716, allocations: 148.6 kB / 0.9554 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.148e-05/0.7161, allocations: 83.8 kB / 0.9555 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.7161, allocations: 7.938 kB / 0.9555 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.202e-05/0.7162, allocations: 18.78 kB / 0.9555 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.241e-05/0.7162, allocations: 2.906 kB / 0.9555 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.7163, allocations: 6.5 kB / 0.9555 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.503e-05/0.7163, allocations: 93.92 kB / 0.9556 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7163, allocations: 0 / 0.9556 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002228/0.7165, allocations: 24.47 kB / 0.9557 GB, free: 4.086 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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.0001578/0.7167, allocations: 112.2 kB / 0.9558 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004419/0.7171, allocations: 189.9 kB / 0.9559 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.7172, allocations: 0 / 0.9559 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.7173, allocations: 44.88 kB / 0.956 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.7176, allocations: 25.97 kB / 0.956 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003132/0.7179, allocations: 198.8 kB / 0.9562 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/0.718, allocations: 0.6923 MB / 0.9569 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.383e-05/0.718, allocations: 15.62 kB / 0.9569 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.718, allocations: 0 / 0.9569 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of Templates: time 0.002793/0.7208, allocations: 1.31 MB / 0.9582 GB, free: 2.25 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches