Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 107.4 kB / 16.36 MB, free: 5.824 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.001075/0.001075, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.455/1.455, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.462/2.462, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 65.84 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2506, allocations: 140.4 MB / 0.9511 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001829/0.2524, allocations: 0.6593 MB / 0.9518 GB, free: 7.348 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001259/0.2537, allocations: 1.048 MB / 0.9528 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.736e-05/0.2538, allocations: 0 / 0.9528 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.932e-05/0.2538, allocations: 3.938 kB / 0.9528 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.471e-05/0.2539, allocations: 7.922 kB / 0.9528 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.2541, allocations: 43.84 kB / 0.9528 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.644e-05/0.2542, allocations: 47.84 kB / 0.9529 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.2544, allocations: 19.98 kB / 0.9529 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.463e-05/0.2544, allocations: 15.98 kB / 0.9529 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.307e-05/0.2545, allocations: 31.84 kB / 0.953 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.452e-05/0.2545, allocations: 4 kB / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.566e-05/0.2546, allocations: 19.98 kB / 0.953 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.751e-05/0.2546, allocations: 7.938 kB / 0.953 GB, free: 6.086 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.286e-05/0.2547, allocations: 19.91 kB / 0.953 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001257/0.2548, allocations: 55.8 kB / 0.9531 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.2548, allocations: 0 / 0.9531 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.492e-06/0.2548, allocations: 0 / 0.9531 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.2548, allocations: 0 / 0.9531 GB, free: 6.012 MB / 0.7325 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.0005722/0.2554, allocations: 376.1 kB / 0.9534 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.2554, allocations: 8.031 kB / 0.9534 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.38e-05/0.2555, allocations: 8.922 kB / 0.9534 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.538e-05/0.2556, allocations: 168.3 kB / 0.9536 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.2556, allocations: 4.375 kB / 0.9536 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.695e-05/0.2556, allocations: 4.375 kB / 0.9536 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.2558, allocations: 70.09 kB / 0.9537 GB, free: 5.293 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.2558, allocations: 192 / 0.9537 GB, free: 5.293 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.2559, allocations: 7.938 kB / 0.9537 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.2559, allocations: 0 / 0.9537 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000169/0.256, allocations: 43.95 kB / 0.9537 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003965/0.2565, allocations: 268.8 kB / 0.954 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.2566, allocations: 62.48 kB / 0.954 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.2567, allocations: 36.89 kB / 0.9541 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.2568, allocations: 0 / 0.9541 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001608/0.2569, allocations: 71.38 kB / 0.9541 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.352e-06/0.2569, allocations: 0 / 0.9541 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0003778/0.2573, allocations: 129.5 kB / 0.9543 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.2574, allocations: 51.41 kB / 0.9543 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.598e-05/0.2574, allocations: 105.8 kB / 0.9544 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.2575, allocations: 25.7 kB / 0.9544 GB, free: 4.398 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.752e-05/0.2575, allocations: 92.06 kB / 0.9545 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.2575, allocations: 15.88 kB / 0.9545 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/0.2576, allocations: 25.7 kB / 0.9546 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.978e-05/0.2577, allocations: 318.8 kB / 0.9549 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.584e-05/0.2578, allocations: 19.98 kB / 0.9549 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.725e-05/0.2579, allocations: 47.41 kB / 0.9549 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/0.2581, allocations: 91.27 kB / 0.955 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2581, allocations: 0 / 0.955 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002804/0.2584, allocations: 105.6 kB / 0.9551 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.2584, allocations: 4 kB / 0.9551 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.2584, allocations: 0 / 0.9551 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.2584, allocations: 8.094 kB / 0.9551 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.2585, allocations: 15.92 kB / 0.9551 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.2585, allocations: 0 / 0.9551 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.428e-05/0.2586, allocations: 15.89 kB / 0.9552 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.2586, allocations: 0 / 0.9552 GB, free: 3.605 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.991e-05/0.2587, allocations: 124.7 kB / 0.9553 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.098e-05/0.2587, allocations: 4 kB / 0.9553 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002637/0.259, allocations: 110.5 kB / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.259, allocations: 0 / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.259, allocations: 4.062 kB / 0.9554 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.259, allocations: 0 / 0.9554 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004307/0.2595, allocations: 346.5 kB / 0.9557 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2595, allocations: 0 / 0.9557 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.529e-05/0.2595, allocations: 11.98 kB / 0.9557 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.2596, allocations: 4 kB / 0.9557 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.2596, allocations: 4 kB / 0.9557 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2596, allocations: 11.88 kB / 0.9558 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2596, allocations: 160 / 0.9558 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002785/0.2599, allocations: 195.3 kB / 0.9559 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.565e-05/0.2599, allocations: 77.11 kB / 0.956 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.2599, allocations: 4 kB / 0.956 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.583e-05/0.26, allocations: 11.98 kB / 0.956 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.772e-05/0.2601, allocations: 7.984 kB / 0.956 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.2601, allocations: 3.938 kB / 0.956 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.936e-05/0.2602, allocations: 83.28 kB / 0.9561 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2602, allocations: 3.938 kB / 0.9561 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002515/0.2604, allocations: 12 kB / 0.9561 GB, free: 2.504 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000139/0.2606, allocations: 107.2 kB / 0.9562 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000234/0.2608, allocations: 63.95 kB / 0.9563 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2608, allocations: 0 / 0.9563 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.2609, allocations: 39.91 kB / 0.9563 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.2612, allocations: 6.469 kB / 0.9563 GB, free: 2.281 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002928/0.2615, allocations: 129.7 kB / 0.9565 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.2618, allocations: 0.6883 MB / 0.9571 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.726e-05/0.2618, allocations: 4 kB / 0.9571 GB, free: 1.406 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.122e-05/0.2618, allocations: 7.438 kB / 0.9572 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.2618, allocations: 0 / 0.9572 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of Templates: time 0.002872/0.2647, allocations: 0.8049 MB / 0.9579 GB, free: 0.6016 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches