Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001788/0.001788, allocations: 198.7 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009777/0.0009778, allocations: 88.77 kB / 299.9 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003525/0.0003526, allocations: 8 kB / 360.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2451, allocations: 51.41 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.001928/0.247, allocations: 1.596 MB / 413.6 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001647/0.2487, allocations: 1.656 MB / 415.3 MB, free: 22.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.2488, allocations: 0 / 415.3 MB, free: 22.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005327/0.2494, allocations: 144.1 kB / 415.4 MB, free: 22.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002774/0.2497, allocations: 128.5 kB / 415.6 MB, free: 22.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004327/0.2501, allocations: 196.3 kB / 415.8 MB, free: 22.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001748/0.2503, allocations: 191.4 kB / 415.9 MB, free: 21.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.2504, allocations: 37.52 kB / 416 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.104e-05/0.2505, allocations: 63.64 kB / 416 MB, free: 21.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.731e-05/0.2506, allocations: 63.7 kB / 416.1 MB, free: 21.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.911e-05/0.2506, allocations: 0 / 416.1 MB, free: 21.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.2507, allocations: 43.95 kB / 416.2 MB, free: 21.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.746e-05/0.2508, allocations: 45.59 kB / 416.2 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.246e-05/0.2509, allocations: 89.19 kB / 416.3 MB, free: 21.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.2511, allocations: 204.8 kB / 416.5 MB, free: 21.33 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2511, allocations: 0 / 416.5 MB, free: 21.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.2511, allocations: 0 / 416.5 MB, free: 21.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.2511, allocations: 4 kB / 416.5 MB, free: 21.33 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005801/0.2517, allocations: 488.3 kB / 417 MB, free: 20.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.2518, allocations: 8.031 kB / 417 MB, free: 20.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.295e-05/0.2518, allocations: 20.75 kB / 417 MB, free: 20.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.2521, allocations: 274.7 kB / 417.3 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.2521, allocations: 8.375 kB / 417.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.2521, allocations: 8.125 kB / 417.3 MB, free: 20.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002604/0.2524, allocations: 146.7 kB / 417.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.2524, allocations: 0 / 417.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.2524, allocations: 0 / 417.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2524, allocations: 4 kB / 417.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.468e-05/0.2525, allocations: 35.91 kB / 417.5 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003515/0.2529, allocations: 366.4 kB / 417.8 MB, free: 19.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001761/0.253, allocations: 115.8 kB / 417.9 MB, free: 19.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.326e-05/0.2531, allocations: 46.56 kB / 418 MB, free: 19.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.2531, allocations: 0 / 418 MB, free: 19.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000129/0.2533, allocations: 71.39 kB / 418 MB, free: 19.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.2533, allocations: 0 / 418 MB, free: 19.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002873/0.2536, allocations: 141.3 kB / 418.2 MB, free: 19.4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.2536, allocations: 136.5 kB / 418.3 MB, free: 19.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001931/0.2538, allocations: 269 kB / 418.6 MB, free: 18.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.2539, allocations: 29.7 kB / 418.6 MB, free: 18.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.016e-05/0.2539, allocations: 120.3 kB / 418.7 MB, free: 18.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.2539, allocations: 27.73 kB / 418.8 MB, free: 18.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-06/0.2539, allocations: 0 / 418.8 MB, free: 18.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.994e-05/0.254, allocations: 330.8 kB / 419.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.016e-05/0.2541, allocations: 27.92 kB / 419.1 MB, free: 18.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.244e-05/0.2541, allocations: 62 kB / 419.2 MB, free: 18.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.7e-05/0.2542, allocations: 80.19 kB / 419.2 MB, free: 18.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2542, allocations: 0 / 419.2 MB, free: 18.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001516/0.2544, allocations: 109.4 kB / 419.3 MB, free: 18.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.2544, allocations: 16.06 kB / 419.4 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2544, allocations: 0 / 419.4 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.2544, allocations: 4 kB / 419.4 MB, free: 18.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.571e-05/0.2545, allocations: 15.94 kB / 419.4 MB, free: 18.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.2545, allocations: 4 kB / 419.4 MB, free: 18.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.215e-05/0.2546, allocations: 11.92 kB / 419.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.2546, allocations: 4.312 kB / 419.4 MB, free: 18.08 MB / 298.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,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (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 9.707e-05/0.2547, allocations: 145.8 kB / 419.5 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.82e-05/0.2548, allocations: 69.36 kB / 419.6 MB, free: 17.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.556e-05/0.2548, allocations: 29.69 kB / 419.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.2549, allocations: 0 / 419.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.2549, allocations: 0 / 419.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.2549, allocations: 11.92 kB / 419.7 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.255, allocations: 225.6 kB / 419.9 MB, free: 17.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.255, allocations: 0 / 419.9 MB, free: 17.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.284e-05/0.2551, allocations: 4 kB / 419.9 MB, free: 17.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.2551, allocations: 4 kB / 419.9 MB, free: 17.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.2551, allocations: 4 kB / 419.9 MB, free: 17.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.2551, allocations: 11.98 kB / 419.9 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2551, allocations: 4 kB / 419.9 MB, free: 17.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001889/0.2553, allocations: 150.4 kB / 420 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.215e-05/0.2554, allocations: 116.8 kB / 420.2 MB, free: 17.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.947e-05/0.2554, allocations: 4 kB / 420.2 MB, free: 17.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.892e-05/0.2555, allocations: 8 kB / 420.2 MB, free: 17.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/0.2556, allocations: 7.984 kB / 420.2 MB, free: 17.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.2556, allocations: 11.88 kB / 420.2 MB, free: 17.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001635/0.2557, allocations: 200.5 kB / 420.4 MB, free: 16.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2557, allocations: 0 / 420.4 MB, free: 16.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002225/0.256, allocations: 24 kB / 420.4 MB, free: 16.96 MB / 298.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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (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.0009438/0.2569, allocations: 473.3 kB / 420.9 MB, free: 16.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000174/0.2571, allocations: 72 kB / 420.9 MB, free: 16.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2571, allocations: 7.875 kB / 421 MB, free: 16.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.818e-05/0.2572, allocations: 20 kB / 421 MB, free: 16.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.2576, allocations: 59.05 kB / 421 MB, free: 16.47 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004442/0.258, allocations: 368.2 kB / 421.4 MB, free: 16.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001548/0.2582, allocations: 0.7322 MB / 422.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.685e-05/0.2583, allocations: 25.52 kB / 422.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.531e-05/0.2583, allocations: 15.44 kB / 422.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2583, allocations: 8 kB / 422.2 MB, free: 15.26 MB / 298.7 MB Notification: Performance of Templates: time 0.004674/0.263, allocations: 2.346 MB / 424.5 MB, free: 12.93 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches