Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007961/0.000796, allocations: 93.19 kB / 16.04 MB, free: 5.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07652/0.07652, allocations: 12.64 MB / 29.41 MB, free: 5.945 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001671/0.0001672, allocations: 4 kB / 40.27 MB, free: 0.5117 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.004606/0.004788, allocations: 2.831 MB / 43.11 MB, free: 5.957 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 1.617/1.622, allocations: 277.9 MB / 321 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001475/1.624, allocations: 1.19 MB / 322.2 MB, free: 9.113 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.182e-05/1.624, allocations: 7.938 kB / 322.2 MB, free: 9.105 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004975/1.624, allocations: 138.1 kB / 322.3 MB, free: 8.973 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002347/1.625, allocations: 103.7 kB / 322.4 MB, free: 8.871 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004578/1.625, allocations: 176.1 kB / 322.6 MB, free: 8.699 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002138/1.625, allocations: 184.1 kB / 322.7 MB, free: 8.52 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/1.625, allocations: 67.12 kB / 322.8 MB, free: 8.457 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.572e-05/1.626, allocations: 75.62 kB / 322.9 MB, free: 8.383 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.193e-05/1.626, allocations: 59.64 kB / 322.9 MB, free: 8.324 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.118e-05/1.626, allocations: 4 kB / 323 MB, free: 8.32 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/1.626, allocations: 44.91 kB / 323 MB, free: 8.277 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.831e-05/1.626, allocations: 35.84 kB / 323 MB, free: 8.242 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.512e-05/1.626, allocations: 85.25 kB / 323.1 MB, free: 8.152 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000223/1.626, allocations: 192.8 kB / 323.3 MB, free: 7.965 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/1.626, allocations: 0 / 323.3 MB, free: 7.965 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.623e-06/1.626, allocations: 0 / 323.3 MB, free: 7.965 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.997e-06/1.626, allocations: 0 / 323.3 MB, free: 7.965 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006141/1.627, allocations: 490.7 kB / 323.8 MB, free: 7.434 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/1.627, allocations: 8.031 kB / 323.8 MB, free: 7.426 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.489e-05/1.627, allocations: 28.66 kB / 323.8 MB, free: 7.398 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002951/1.627, allocations: 258.8 kB / 324.1 MB, free: 7.102 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/1.627, allocations: 5.781 kB / 324.1 MB, free: 7.098 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/1.627, allocations: 16.11 kB / 324.1 MB, free: 7.082 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00028/1.628, allocations: 145.3 kB / 324.2 MB, free: 6.918 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/1.628, allocations: 0 / 324.2 MB, free: 6.918 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/1.628, allocations: 4.844 kB / 324.2 MB, free: 6.914 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/1.628, allocations: 0 / 324.2 MB, free: 6.914 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.907e-05/1.628, allocations: 36.47 kB / 324.3 MB, free: 6.879 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004084/1.628, allocations: 360.8 kB / 324.6 MB, free: 6.473 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002062/1.628, allocations: 110.3 kB / 324.7 MB, free: 6.34 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.83e-05/1.628, allocations: 48.16 kB / 324.8 MB, free: 6.285 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/1.628, allocations: 3.938 kB / 324.8 MB, free: 6.281 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001509/1.629, allocations: 73.55 kB / 324.9 MB, free: 6.199 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/1.629, allocations: 4 kB / 324.9 MB, free: 6.195 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003118/1.629, allocations: 136.2 kB / 325 MB, free: 6.059 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.467e-05/1.629, allocations: 136.5 kB / 325.1 MB, free: 5.895 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002593/1.629, allocations: 260.9 kB / 325.4 MB, free: 5.629 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/1.629, allocations: 30.48 kB / 325.4 MB, free: 5.594 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.86e-05/1.629, allocations: 124 kB / 325.5 MB, free: 5.469 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/1.629, allocations: 17.7 kB / 325.5 MB, free: 5.453 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.44e-06/1.629, allocations: 4 kB / 325.6 MB, free: 5.449 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.503e-05/1.63, allocations: 330.8 kB / 325.9 MB, free: 5.117 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.594e-05/1.63, allocations: 20.48 kB / 325.9 MB, free: 5.098 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.091e-05/1.63, allocations: 73.72 kB / 326 MB, free: 5.008 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001164/1.63, allocations: 83.22 kB / 326 MB, free: 4.914 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/1.63, allocations: 0 / 326 MB, free: 4.914 MB / 250.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001816/1.63, allocations: 109.3 kB / 326.2 MB, free: 4.801 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/1.63, allocations: 8 kB / 326.2 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-06/1.63, allocations: 0 / 326.2 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/1.63, allocations: 0 / 326.2 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.314e-05/1.63, allocations: 25.64 kB / 326.2 MB, free: 4.77 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/1.63, allocations: 0 / 326.2 MB, free: 4.77 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.996e-05/1.63, allocations: 19.88 kB / 326.2 MB, free: 4.75 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/1.63, allocations: 4.781 kB / 326.2 MB, free: 4.746 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001024/1.63, allocations: 146.4 kB / 326.4 MB, free: 4.598 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.072e-05/1.63, allocations: 61.44 kB / 326.4 MB, free: 4.531 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.679e-05/1.63, allocations: 21.72 kB / 326.4 MB, free: 4.508 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/1.63, allocations: 4 kB / 326.4 MB, free: 4.504 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/1.63, allocations: 3.984 kB / 326.4 MB, free: 4.5 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/1.631, allocations: 3.938 kB / 326.4 MB, free: 4.496 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001633/1.631, allocations: 222.6 kB / 326.7 MB, free: 4.23 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/1.631, allocations: 3.938 kB / 326.7 MB, free: 4.227 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.552e-05/1.631, allocations: 8 kB / 326.7 MB, free: 4.219 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/1.631, allocations: 0.7188 kB / 326.7 MB, free: 4.219 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/1.631, allocations: 0 / 326.7 MB, free: 4.219 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/1.631, allocations: 8.406 kB / 326.7 MB, free: 4.211 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/1.631, allocations: 7.984 kB / 326.7 MB, free: 4.203 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002109/1.631, allocations: 150.5 kB / 326.8 MB, free: 4.031 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.146e-05/1.631, allocations: 112.9 kB / 327 MB, free: 3.902 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/1.631, allocations: 0 / 327 MB, free: 3.902 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.01e-05/1.631, allocations: 4 kB / 327 MB, free: 3.898 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/1.631, allocations: 15.98 kB / 327 MB, free: 3.883 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/1.631, allocations: 8.031 kB / 327 MB, free: 3.875 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001656/1.631, allocations: 196.4 kB / 327.2 MB, free: 3.688 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.631, allocations: 0 / 327.2 MB, free: 3.688 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002319/1.632, allocations: 31.94 kB / 327.2 MB, free: 3.656 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.0009044/1.633, allocations: 470.6 kB / 327.7 MB, free: 3.324 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001956/1.633, allocations: 68.03 kB / 327.7 MB, free: 3.258 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/1.633, allocations: 3.938 kB / 327.7 MB, free: 3.254 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.727e-05/1.633, allocations: 31.92 kB / 327.8 MB, free: 3.223 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/1.633, allocations: 56.2 kB / 327.8 MB, free: 3.168 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004954/1.634, allocations: 348.1 kB / 328.2 MB, free: 2.793 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/1.634, allocations: 0.7361 MB / 328.9 MB, free: 2.031 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.889e-05/1.634, allocations: 21.53 kB / 328.9 MB, free: 2.012 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.876e-05/1.634, allocations: 15.44 kB / 328.9 MB, free: 2 MB / 250.7 MB Notification: Performance of SimCode: time 2.4e-07/1.634, allocations: 0 / 328.9 MB, free: 2 MB / 250.7 MB Notification: Performance of Templates: time 0.004879/1.639, allocations: 2.278 MB / 331.2 MB, free: 15.74 MB / 266.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches