Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 88.94 kB / 16.04 MB, free: 5.605 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.1294/0.1294, allocations: 12.63 MB / 29.4 MB, free: 5.77 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0002219/0.000222, allocations: 4 kB / 40.28 MB, free: 0.5039 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.007337/0.007581, allocations: 2.835 MB / 43.11 MB, free: 5.945 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.BackSample): time 1.911/1.919, allocations: 277.9 MB / 321 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002833/1.922, allocations: 1.226 MB / 322.2 MB, free: 9.113 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/1.922, allocations: 9 kB / 322.2 MB, free: 9.105 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007262/1.923, allocations: 145 kB / 322.4 MB, free: 8.965 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004176/1.923, allocations: 103.6 kB / 322.5 MB, free: 8.863 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008916/1.924, allocations: 185.3 kB / 322.6 MB, free: 8.684 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003489/1.924, allocations: 183.5 kB / 322.8 MB, free: 8.504 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/1.924, allocations: 84.34 kB / 322.9 MB, free: 8.426 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001527/1.925, allocations: 75.56 kB / 323 MB, free: 8.352 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/1.925, allocations: 67.69 kB / 323 MB, free: 8.285 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.122e-05/1.925, allocations: 4 kB / 323 MB, free: 8.281 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/1.925, allocations: 43.86 kB / 323.1 MB, free: 8.238 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.116e-05/1.925, allocations: 35.91 kB / 323.1 MB, free: 8.203 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001326/1.925, allocations: 93.17 kB / 323.2 MB, free: 8.105 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003858/1.926, allocations: 195.9 kB / 323.4 MB, free: 7.914 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/1.926, allocations: 3.344 kB / 323.4 MB, free: 7.914 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.964e-06/1.926, allocations: 0 / 323.4 MB, free: 7.914 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.969e-06/1.926, allocations: 4 kB / 323.4 MB, free: 7.91 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009328/1.927, allocations: 0.4924 MB / 323.9 MB, free: 7.363 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/1.927, allocations: 8.031 kB / 323.9 MB, free: 7.355 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.335e-05/1.927, allocations: 20.75 kB / 323.9 MB, free: 7.336 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004451/1.927, allocations: 266.7 kB / 324.2 MB, free: 7.031 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.971e-05/1.927, allocations: 13.02 kB / 324.2 MB, free: 7.02 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/1.927, allocations: 14.78 kB / 324.2 MB, free: 7.008 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005087/1.928, allocations: 172.1 kB / 324.4 MB, free: 6.812 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/1.928, allocations: 4 kB / 324.4 MB, free: 6.809 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/1.928, allocations: 0.8438 kB / 324.4 MB, free: 6.809 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/1.928, allocations: 4 kB / 324.4 MB, free: 6.805 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001587/1.928, allocations: 36.67 kB / 324.4 MB, free: 6.77 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007138/1.929, allocations: 374.2 kB / 324.8 MB, free: 6.348 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003768/1.929, allocations: 135.9 kB / 324.9 MB, free: 6.184 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/1.929, allocations: 55.41 kB / 325 MB, free: 6.117 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/1.929, allocations: 4.078 kB / 325 MB, free: 6.113 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/1.93, allocations: 78.06 kB / 325.1 MB, free: 6.027 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 2.554e-06/1.93, allocations: 0 / 325.1 MB, free: 6.027 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005387/1.93, allocations: 154.2 kB / 325.2 MB, free: 5.871 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/1.93, allocations: 164.9 kB / 325.4 MB, free: 5.676 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003845/1.931, allocations: 268.9 kB / 325.6 MB, free: 5.402 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/1.931, allocations: 33.7 kB / 325.7 MB, free: 5.363 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/1.931, allocations: 120.3 kB / 325.8 MB, free: 5.238 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.368e-05/1.931, allocations: 19.8 kB / 325.8 MB, free: 5.219 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-06/1.931, allocations: 0.5312 kB / 325.8 MB, free: 5.219 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/1.931, allocations: 331.6 kB / 326.1 MB, free: 4.887 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.914e-05/1.931, allocations: 25.52 kB / 326.2 MB, free: 4.863 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/1.931, allocations: 78.25 kB / 326.2 MB, free: 4.762 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/1.932, allocations: 100.6 kB / 326.3 MB, free: 4.645 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/1.932, allocations: 0 / 326.3 MB, free: 4.645 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003202/1.932, allocations: 127.4 kB / 326.5 MB, free: 4.516 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/1.932, allocations: 7.984 kB / 326.5 MB, free: 4.508 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/1.932, allocations: 7.938 kB / 326.5 MB, free: 4.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/1.932, allocations: 0.7188 kB / 326.5 MB, free: 4.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/1.932, allocations: 16.53 kB / 326.5 MB, free: 4.484 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/1.932, allocations: 4 kB / 326.5 MB, free: 4.48 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/1.932, allocations: 23.83 kB / 326.5 MB, free: 4.457 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/1.932, allocations: 4 kB / 326.5 MB, free: 4.453 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001769/1.933, allocations: 154 kB / 326.7 MB, free: 4.293 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/1.933, allocations: 73.44 kB / 326.7 MB, free: 4.215 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.874e-05/1.933, allocations: 21.72 kB / 326.8 MB, free: 4.191 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/1.933, allocations: 8 kB / 326.8 MB, free: 4.184 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/1.933, allocations: 4.094 kB / 326.8 MB, free: 4.18 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/1.933, allocations: 7.922 kB / 326.8 MB, free: 4.172 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002788/1.933, allocations: 221.6 kB / 327 MB, free: 3.906 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/1.933, allocations: 0 / 327 MB, free: 3.906 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.778e-05/1.933, allocations: 7.984 kB / 327 MB, free: 3.898 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.87e-06/1.933, allocations: 7.938 kB / 327 MB, free: 3.891 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/1.933, allocations: 4 kB / 327 MB, free: 3.887 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/1.933, allocations: 4 kB / 327 MB, free: 3.883 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/1.933, allocations: 0 / 327 MB, free: 3.883 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003805/1.934, allocations: 179.2 kB / 327.2 MB, free: 3.68 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/1.934, allocations: 116.8 kB / 327.3 MB, free: 3.547 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.497e-05/1.934, allocations: 4 kB / 327.3 MB, free: 3.543 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/1.934, allocations: 4 kB / 327.3 MB, free: 3.539 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.737e-05/1.934, allocations: 7.984 kB / 327.3 MB, free: 3.531 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/1.934, allocations: 11.94 kB / 327.3 MB, free: 3.52 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003007/1.934, allocations: 200.5 kB / 327.5 MB, free: 3.328 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.2e-07/1.934, allocations: 0 / 327.5 MB, free: 3.328 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004307/1.935, allocations: 32 kB / 327.6 MB, free: 3.297 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.00143/1.936, allocations: 483.2 kB / 328 MB, free: 2.957 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003367/1.937, allocations: 80.16 kB / 328.1 MB, free: 2.879 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.937, allocations: 4.062 kB / 328.1 MB, free: 2.875 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001105/1.937, allocations: 27.94 kB / 328.2 MB, free: 2.848 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006398/1.937, allocations: 74.39 kB / 328.2 MB, free: 2.781 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007857/1.938, allocations: 377 kB / 328.6 MB, free: 2.379 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/1.939, allocations: 0.7362 MB / 329.3 MB, free: 1.617 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001104/1.939, allocations: 25.53 kB / 329.4 MB, free: 1.594 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.426e-05/1.939, allocations: 19.42 kB / 329.4 MB, free: 1.574 MB / 250.7 MB Notification: Performance of SimCode: time 3.11e-07/1.939, allocations: 0 / 329.4 MB, free: 1.574 MB / 250.7 MB Notification: Performance of Templates: time 0.008847/1.948, allocations: 2.507 MB / 331.9 MB, free: 15.09 MB / 266.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches