Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008881/0.0008876, allocations: 88.77 kB / 16.02 MB, free: 80 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.001159/0.001159, allocations: 186.5 kB / 16.92 MB, free: 6.688 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.534/1.534, allocations: 223.3 MB / 241 MB, free: 5.348 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.445/2.445, allocations: 390.9 MB / 0.667 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.0003772, allocations: 8 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7756/0.776, allocations: 142.4 MB / 0.9557 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.00106/0.7771, allocations: 492.6 kB / 0.9562 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001821/0.779, allocations: 1.158 MB / 0.9573 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.816e-05/0.7791, allocations: 1.344 kB / 0.9573 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.678e-05/0.7791, allocations: 0 / 0.9573 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.448e-05/0.7792, allocations: 9.062 kB / 0.9573 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005525/0.7798, allocations: 127.2 kB / 0.9574 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001634/0.78, allocations: 113.9 kB / 0.9576 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.7801, allocations: 16.34 kB / 0.9576 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.7802, allocations: 47.98 kB / 0.9576 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.335e-05/0.7803, allocations: 37.27 kB / 0.9577 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.23e-05/0.7804, allocations: 9.719 kB / 0.9577 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.379e-05/0.7805, allocations: 19.58 kB / 0.9577 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.45e-05/0.7805, allocations: 11.77 kB / 0.9577 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.167e-05/0.7806, allocations: 66.39 kB / 0.9578 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.7807, allocations: 78.28 kB / 0.9578 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.7807, allocations: 1.125 kB / 0.9578 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.734e-06/0.7807, allocations: 0 / 0.9578 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.7807, allocations: 0 / 0.9578 GB, free: 6.203 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.0005029/0.7813, allocations: 404 kB / 0.9582 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.7813, allocations: 13.59 kB / 0.9582 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.702e-05/0.7814, allocations: 10.19 kB / 0.9582 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.139e-05/0.7814, allocations: 180.3 kB / 0.9584 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.7815, allocations: 11.62 kB / 0.9584 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.686e-05/0.7815, allocations: 8.344 kB / 0.9584 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002037/0.7817, allocations: 84.91 kB / 0.9585 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.7817, allocations: 3.938 kB / 0.9585 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.7818, allocations: 1.469 kB / 0.9585 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.7818, allocations: 1.531 kB / 0.9585 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.782, allocations: 54.89 kB / 0.9586 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00045/0.7824, allocations: 345.9 kB / 0.9589 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.7826, allocations: 60.7 kB / 0.959 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.7827, allocations: 45.02 kB / 0.959 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.7827, allocations: 0 / 0.959 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002342/0.783, allocations: 97.42 kB / 0.9591 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/0.783, allocations: 4 kB / 0.9591 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.000438/0.7834, allocations: 160.4 kB / 0.9592 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.7835, allocations: 57.72 kB / 0.9593 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.975e-05/0.7835, allocations: 130.2 kB / 0.9594 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.7836, allocations: 32.3 kB / 0.9595 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.334e-05/0.7836, allocations: 87.89 kB / 0.9595 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.7837, allocations: 27.58 kB / 0.9596 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.7837, allocations: 23.53 kB / 0.9596 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.336e-05/0.7838, allocations: 324.1 kB / 0.9599 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.7839, allocations: 56.97 kB / 0.96 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.7841, allocations: 92.86 kB / 0.96 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/0.7844, allocations: 160.5 kB / 0.9602 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.7844, allocations: 5.375 kB / 0.9602 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004524/0.7848, allocations: 220.7 kB / 0.9604 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.23e-05/0.7849, allocations: 32.58 kB / 0.9604 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.7849, allocations: 5.531 kB / 0.9604 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.7849, allocations: 2.75 kB / 0.9605 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.785, allocations: 24.3 kB / 0.9605 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.785, allocations: 5.375 kB / 0.9605 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/0.7853, allocations: 52.89 kB / 0.9605 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.7853, allocations: 6.875 kB / 0.9605 GB, free: 3.781 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: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 8.196e-05/0.7854, allocations: 132.6 kB / 0.9607 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.432e-05/0.7854, allocations: 8.031 kB / 0.9607 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003049/0.7857, allocations: 137.8 kB / 0.9608 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.7857, allocations: 5.172 kB / 0.9608 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.7858, allocations: 0 / 0.9608 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.7858, allocations: 1.25 kB / 0.9608 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003844/0.7862, allocations: 387.5 kB / 0.9612 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.7862, allocations: 0 / 0.9612 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.365e-05/0.7862, allocations: 17.39 kB / 0.9612 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.7863, allocations: 1.094 kB / 0.9612 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.7863, allocations: 1.25 kB / 0.9612 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.7863, allocations: 0 / 0.9612 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.7863, allocations: 3.984 kB / 0.9612 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003027/0.7866, allocations: 227.2 kB / 0.9614 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.562e-05/0.7866, allocations: 87.09 kB / 0.9615 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.7866, allocations: 1.094 kB / 0.9615 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.599e-05/0.7867, allocations: 10.41 kB / 0.9615 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.544e-05/0.7868, allocations: 14.58 kB / 0.9615 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-06/0.7868, allocations: 2.625 kB / 0.9615 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.723e-05/0.7868, allocations: 95.33 kB / 0.9616 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7869, allocations: 1.031 kB / 0.9616 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002761/0.7871, allocations: 20.66 kB / 0.9616 GB, free: 2.805 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.00014/0.7873, allocations: 110.6 kB / 0.9617 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004016/0.7877, allocations: 190.5 kB / 0.9619 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.7877, allocations: 0 / 0.9619 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.7878, allocations: 53.8 kB / 0.962 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.7881, allocations: 6.625 kB / 0.962 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003761/0.7885, allocations: 215.3 kB / 0.9622 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001536/0.7887, allocations: 0.6938 MB / 0.9629 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.849e-05/0.7887, allocations: 15.09 kB / 0.9629 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.7887, allocations: 0 / 0.9629 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of Templates: time 0.003477/0.7922, allocations: 1.265 MB / 0.9641 GB, free: 1.008 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches