Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009898/0.0009898, allocations: 191.5 kB / 17.43 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.578/1.578, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009233/0.0009239, allocations: 103.5 kB / 299.9 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002456/0.0002456, allocations: 8 kB / 360.6 MB, free: 8.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.3135, allocations: 51.42 MB / 412.1 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.00272/0.3163, allocations: 1.614 MB / 413.7 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.3185, allocations: 1.68 MB / 415.3 MB, free: 22.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.3187, allocations: 4 kB / 415.3 MB, free: 22.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000727/0.3194, allocations: 144.9 kB / 415.5 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003724/0.3198, allocations: 133.9 kB / 415.6 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005537/0.3204, allocations: 187.6 kB / 415.8 MB, free: 22.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00021/0.3206, allocations: 207.3 kB / 416 MB, free: 21.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.3207, allocations: 36.86 kB / 416 MB, free: 21.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.3209, allocations: 75.58 kB / 416.1 MB, free: 21.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.273e-05/0.3209, allocations: 63.7 kB / 416.2 MB, free: 21.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.207e-05/0.321, allocations: 4 kB / 416.2 MB, free: 21.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/0.3211, allocations: 47.91 kB / 416.2 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.335e-05/0.3212, allocations: 47.78 kB / 416.3 MB, free: 21.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.476e-05/0.3213, allocations: 85.25 kB / 416.4 MB, free: 21.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002801/0.3215, allocations: 212.7 kB / 416.6 MB, free: 21.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3216, allocations: 4 kB / 416.6 MB, free: 21.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3216, allocations: 0 / 416.6 MB, free: 21.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.329e-06/0.3216, allocations: 0 / 416.6 MB, free: 21.26 MB / 298.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.0006944/0.3223, allocations: 496.2 kB / 417.1 MB, free: 20.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3223, allocations: 12.03 kB / 417.1 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.776e-05/0.3224, allocations: 24.66 kB / 417.1 MB, free: 20.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003358/0.3227, allocations: 282.7 kB / 417.4 MB, free: 20.37 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.3228, allocations: 4.375 kB / 417.4 MB, free: 20.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.3228, allocations: 12.12 kB / 417.4 MB, free: 20.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.3231, allocations: 171.5 kB / 417.6 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3232, allocations: 0 / 417.6 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.3232, allocations: 7.938 kB / 417.6 MB, free: 20.15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.3232, allocations: 0 / 417.6 MB, free: 20.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.522e-05/0.3233, allocations: 39.91 kB / 417.6 MB, free: 20.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004391/0.3237, allocations: 383.2 kB / 418 MB, free: 19.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.324, allocations: 130.5 kB / 418.1 MB, free: 19.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.39e-05/0.3241, allocations: 59.36 kB / 418.2 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/0.3241, allocations: 8.062 kB / 418.2 MB, free: 19.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001611/0.3243, allocations: 71.38 kB / 418.2 MB, free: 19.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.3243, allocations: 4 kB / 418.2 MB, free: 19.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003474/0.3246, allocations: 157.3 kB / 418.4 MB, free: 19.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.686e-05/0.3247, allocations: 162.2 kB / 418.6 MB, free: 19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/0.325, allocations: 282.5 kB / 418.8 MB, free: 18.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.325, allocations: 29.7 kB / 418.9 MB, free: 18.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.562e-05/0.3251, allocations: 120.8 kB / 419 MB, free: 18.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.3251, allocations: 19.8 kB / 419 MB, free: 18.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-06/0.3251, allocations: 0 / 419 MB, free: 18.53 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.161e-05/0.3252, allocations: 334.8 kB / 419.3 MB, free: 18.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.619e-05/0.3253, allocations: 23.98 kB / 419.3 MB, free: 18.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.427e-05/0.3253, allocations: 83.7 kB / 419.4 MB, free: 18.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.3255, allocations: 89.89 kB / 419.5 MB, free: 17.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3255, allocations: 4.031 kB / 419.5 MB, free: 17.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000189/0.3257, allocations: 133.3 kB / 419.6 MB, free: 17.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.3257, allocations: 4 kB / 419.7 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.3257, allocations: 3.984 kB / 419.7 MB, free: 17.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.3257, allocations: 4 kB / 419.7 MB, free: 17.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.606e-05/0.3258, allocations: 15.94 kB / 419.7 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.3259, allocations: 0 / 419.7 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.628e-05/0.3259, allocations: 31.95 kB / 419.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.326, allocations: 4 kB / 419.7 MB, free: 17.75 MB / 298.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,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.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.0001112/0.3261, allocations: 146.7 kB / 419.9 MB, free: 17.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.179e-05/0.3262, allocations: 77.44 kB / 419.9 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.834e-05/0.3262, allocations: 29.64 kB / 420 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3262, allocations: 0 / 420 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.3262, allocations: 4 kB / 420 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3263, allocations: 8.031 kB / 420 MB, free: 17.47 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001815/0.3264, allocations: 237.4 kB / 420.2 MB, free: 17.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3265, allocations: 0 / 420.2 MB, free: 17.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.577e-05/0.3265, allocations: 4 kB / 420.2 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3265, allocations: 4 kB / 420.2 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.3265, allocations: 0 / 420.2 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.3265, allocations: 4 kB / 420.2 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3265, allocations: 3.984 kB / 420.2 MB, free: 17.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002177/0.3268, allocations: 175.3 kB / 420.4 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.896e-05/0.3268, allocations: 112.9 kB / 420.5 MB, free: 16.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.3269, allocations: 4 kB / 420.5 MB, free: 16.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.449e-05/0.3269, allocations: 11.98 kB / 420.5 MB, free: 16.83 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.909e-05/0.327, allocations: 0 / 420.5 MB, free: 16.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.327, allocations: 11.94 kB / 420.5 MB, free: 16.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001487/0.3272, allocations: 206 kB / 420.7 MB, free: 16.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3272, allocations: 0 / 420.7 MB, free: 16.62 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002374/0.3274, allocations: 39.92 kB / 420.8 MB, free: 16.58 MB / 298.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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.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.0009422/0.3284, allocations: 478.9 kB / 421.2 MB, free: 16.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000199/0.3286, allocations: 76.16 kB / 421.3 MB, free: 16.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3286, allocations: 4.062 kB / 421.3 MB, free: 16.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.575e-05/0.3287, allocations: 27.98 kB / 421.3 MB, free: 16.13 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004564/0.3291, allocations: 80.36 kB / 421.4 MB, free: 16.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005599/0.3297, allocations: 393.2 kB / 421.8 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.3299, allocations: 0.7401 MB / 422.5 MB, free: 14.87 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.854e-05/0.33, allocations: 25.52 kB / 422.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.093e-05/0.33, allocations: 19.44 kB / 422.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.33, allocations: 4 kB / 422.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of Templates: time 0.005333/0.3354, allocations: 2.523 MB / 425.1 MB, free: 12.32 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches