Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.0007248/0.0007254, allocations: 93.27 kB / 16.04 MB, free: 5.738 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.07564/0.07565, allocations: 12.63 MB / 29.4 MB, free: 6.09 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001817/0.0001817, allocations: 4 kB / 40.28 MB, free: 0.6172 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.005293/0.005494, allocations: 2.835 MB / 43.11 MB, free: 6.059 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.IntegerSignals.BackSample): time 1.531/1.537, allocations: 277.9 MB / 321 MB, free: 10.35 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001654/1.538, allocations: 1.452 MB / 322.4 MB, free: 8.805 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.765e-05/1.538, allocations: 0 / 322.4 MB, free: 8.805 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002632/1.539, allocations: 75.23 kB / 322.5 MB, free: 8.734 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001934/1.539, allocations: 75.72 kB / 322.6 MB, free: 8.66 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005933/1.54, allocations: 231.6 kB / 322.8 MB, free: 8.434 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001793/1.54, allocations: 167.1 kB / 323 MB, free: 8.273 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/1.54, allocations: 80.36 kB / 323.1 MB, free: 8.195 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.906e-05/1.54, allocations: 63.64 kB / 323.1 MB, free: 8.133 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.081e-05/1.54, allocations: 71.69 kB / 323.2 MB, free: 8.062 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/1.54, allocations: 7.938 kB / 323.2 MB, free: 8.055 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/1.54, allocations: 52.66 kB / 323.2 MB, free: 8.004 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.306e-05/1.54, allocations: 39.83 kB / 323.3 MB, free: 7.965 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.504e-05/1.54, allocations: 101.7 kB / 323.4 MB, free: 7.859 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000245/1.541, allocations: 235.1 kB / 323.6 MB, free: 7.629 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/1.541, allocations: 0.625 kB / 323.6 MB, free: 7.629 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.232e-06/1.541, allocations: 4 kB / 323.6 MB, free: 7.625 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/1.541, allocations: 2.406 kB / 323.6 MB, free: 7.625 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.0005741/1.541, allocations: 0.4923 MB / 324.1 MB, free: 7.078 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/1.541, allocations: 8.031 kB / 324.1 MB, free: 7.07 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.67e-05/1.541, allocations: 32.64 kB / 324.2 MB, free: 7.039 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/1.542, allocations: 292.1 kB / 324.4 MB, free: 6.719 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/1.542, allocations: 5.219 kB / 324.4 MB, free: 6.715 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/1.542, allocations: 12.12 kB / 324.5 MB, free: 6.703 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003316/1.542, allocations: 187.2 kB / 324.6 MB, free: 6.492 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/1.542, allocations: 1.656 kB / 324.6 MB, free: 6.492 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/1.542, allocations: 4 kB / 324.6 MB, free: 6.488 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/1.542, allocations: 0 / 324.6 MB, free: 6.488 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/1.542, allocations: 35.92 kB / 324.7 MB, free: 6.453 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004733/1.543, allocations: 412.5 kB / 325.1 MB, free: 5.996 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/1.543, allocations: 136.2 kB / 325.2 MB, free: 5.828 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/1.543, allocations: 60.3 kB / 325.3 MB, free: 5.758 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/1.543, allocations: 5.156 kB / 325.3 MB, free: 5.754 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002012/1.543, allocations: 88.12 kB / 325.4 MB, free: 5.656 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/1.543, allocations: 0.75 kB / 325.4 MB, free: 5.656 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003641/1.544, allocations: 166.5 kB / 325.5 MB, free: 5.488 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.189e-05/1.544, allocations: 189.6 kB / 325.7 MB, free: 5.262 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003236/1.544, allocations: 330.7 kB / 326 MB, free: 4.93 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/1.544, allocations: 34.67 kB / 326.1 MB, free: 4.891 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.022e-05/1.544, allocations: 128.2 kB / 326.2 MB, free: 4.758 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.128e-05/1.544, allocations: 24.64 kB / 326.2 MB, free: 4.734 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-06/1.544, allocations: 8 kB / 326.2 MB, free: 4.727 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/1.545, allocations: 335.3 kB / 326.6 MB, free: 4.391 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.037e-05/1.545, allocations: 25.89 kB / 326.6 MB, free: 4.367 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/1.545, allocations: 97.94 kB / 326.7 MB, free: 4.242 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/1.545, allocations: 105.6 kB / 326.8 MB, free: 4.121 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/1.545, allocations: 0 / 326.8 MB, free: 4.121 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002301/1.545, allocations: 134.7 kB / 326.9 MB, free: 3.984 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/1.545, allocations: 8.719 kB / 326.9 MB, free: 3.977 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/1.545, allocations: 0 / 326.9 MB, free: 3.977 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/1.545, allocations: 4.562 kB / 326.9 MB, free: 3.973 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/1.545, allocations: 23.98 kB / 326.9 MB, free: 3.949 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/1.545, allocations: 7.938 kB / 327 MB, free: 3.941 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.004e-05/1.545, allocations: 15.78 kB / 327 MB, free: 3.926 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-06/1.545, allocations: 4 kB / 327 MB, free: 3.922 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,table.y,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.0001368/1.546, allocations: 153.8 kB / 327.1 MB, free: 3.762 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.268e-05/1.546, allocations: 81.34 kB / 327.2 MB, free: 3.676 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.887e-05/1.546, allocations: 29.7 kB / 327.2 MB, free: 3.645 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/1.546, allocations: 4.094 kB / 327.2 MB, free: 3.641 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/1.546, allocations: 4 kB / 327.2 MB, free: 3.637 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/1.546, allocations: 3.938 kB / 327.2 MB, free: 3.633 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001906/1.546, allocations: 237.6 kB / 327.5 MB, free: 3.352 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/1.546, allocations: 4.312 kB / 327.5 MB, free: 3.348 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.747e-05/1.546, allocations: 19.94 kB / 327.5 MB, free: 3.328 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/1.546, allocations: 0 / 327.5 MB, free: 3.328 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/1.546, allocations: 11.98 kB / 327.5 MB, free: 3.316 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/1.546, allocations: 0 / 327.5 MB, free: 3.316 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/1.546, allocations: 0 / 327.5 MB, free: 3.316 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/1.546, allocations: 191.1 kB / 327.7 MB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.289e-05/1.546, allocations: 124.7 kB / 327.8 MB, free: 2.961 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.903e-05/1.546, allocations: 0 / 327.8 MB, free: 2.961 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.108e-05/1.547, allocations: 8 kB / 327.8 MB, free: 2.953 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.872e-05/1.547, allocations: 16.02 kB / 327.8 MB, free: 2.938 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/1.547, allocations: 15.92 kB / 327.9 MB, free: 2.922 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002114/1.547, allocations: 241.9 kB / 328.1 MB, free: 2.684 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.547, allocations: 0 / 328.1 MB, free: 2.684 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002378/1.547, allocations: 36 kB / 328.1 MB, free: 2.648 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,table.y,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.0009083/1.548, allocations: 490.6 kB / 328.6 MB, free: 2.301 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002127/1.548, allocations: 87.95 kB / 328.7 MB, free: 2.215 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.548, allocations: 4 kB / 328.7 MB, free: 2.211 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.156e-05/1.548, allocations: 27.98 kB / 328.7 MB, free: 2.184 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/1.549, allocations: 72.83 kB / 328.8 MB, free: 2.109 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006021/1.549, allocations: 437.6 kB / 329.2 MB, free: 1.645 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/1.55, allocations: 0.744 MB / 330 MB, free: 0.875 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.842e-05/1.55, allocations: 25.55 kB / 330 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.267e-05/1.55, allocations: 27.42 kB / 330 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of SimCode: time 3.2e-07/1.55, allocations: 0 / 330 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of Templates: time 0.005811/1.556, allocations: 2.891 MB / 332.9 MB, free: 13.96 MB / 266.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches