Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00151/0.00151, allocations: 201.6 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, 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.0009195/0.0009198, allocations: 96.44 kB / 299.9 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002884/0.0002886, allocations: 8 kB / 360.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.264, allocations: 51.41 MB / 412.1 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002167/0.2662, allocations: 1.583 MB / 413.6 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.2682, allocations: 1.886 MB / 415.5 MB, free: 22.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001656/0.2684, allocations: 0 / 415.5 MB, free: 22.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004021/0.2688, allocations: 67.8 kB / 415.6 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003627/0.2692, allocations: 108.9 kB / 415.7 MB, free: 22.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007101/0.2699, allocations: 234.2 kB / 415.9 MB, free: 21.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001785/0.2701, allocations: 167.5 kB / 416.1 MB, free: 21.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.2702, allocations: 39.2 kB / 416.1 MB, free: 21.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.683e-05/0.2703, allocations: 63.64 kB / 416.2 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.971e-05/0.2704, allocations: 83.61 kB / 416.3 MB, free: 21.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.2704, allocations: 4 kB / 416.3 MB, free: 21.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001302/0.2706, allocations: 51.86 kB / 416.3 MB, free: 21.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.669e-05/0.2707, allocations: 51.81 kB / 416.4 MB, free: 21.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.773e-05/0.2708, allocations: 93.19 kB / 416.5 MB, free: 21.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002437/0.271, allocations: 224.7 kB / 416.7 MB, free: 21.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.271, allocations: 0 / 416.7 MB, free: 21.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.271, allocations: 0 / 416.7 MB, free: 21.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.271, allocations: 0 / 416.7 MB, free: 21.11 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.0005899/0.2716, allocations: 0.5117 MB / 417.2 MB, free: 20.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.2717, allocations: 12.03 kB / 417.2 MB, free: 20.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.104e-05/0.2717, allocations: 20.66 kB / 417.2 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002715/0.272, allocations: 283.6 kB / 417.5 MB, free: 20.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.272, allocations: 4.375 kB / 417.5 MB, free: 20.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.001e-05/0.2721, allocations: 12.12 kB / 417.5 MB, free: 20.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/0.2724, allocations: 159.5 kB / 417.7 MB, free: 20 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.2724, allocations: 0 / 417.7 MB, free: 20 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.2724, allocations: 0 / 417.7 MB, free: 20 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.2724, allocations: 4 kB / 417.7 MB, free: 20 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.85e-05/0.2725, allocations: 35.97 kB / 417.7 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004192/0.2729, allocations: 394.3 kB / 418.1 MB, free: 19.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.2731, allocations: 111.9 kB / 418.2 MB, free: 19.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.068e-05/0.2732, allocations: 46.56 kB / 418.3 MB, free: 19.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.2733, allocations: 3.984 kB / 418.3 MB, free: 19.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000178/0.2734, allocations: 79.33 kB / 418.3 MB, free: 19.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.884e-06/0.2735, allocations: 0 / 418.3 MB, free: 19.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003315/0.2738, allocations: 153.3 kB / 418.5 MB, free: 19.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.2739, allocations: 162.2 kB / 418.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.2741, allocations: 330.7 kB / 419 MB, free: 18.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.2741, allocations: 37.64 kB / 419 MB, free: 18.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.857e-05/0.2742, allocations: 128 kB / 419.1 MB, free: 18.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/0.2742, allocations: 15.84 kB / 419.1 MB, free: 18.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-06/0.2742, allocations: 4 kB / 419.1 MB, free: 18.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.743e-05/0.2743, allocations: 343 kB / 419.5 MB, free: 18.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.757e-05/0.2744, allocations: 19.98 kB / 419.5 MB, free: 18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.529e-05/0.2744, allocations: 86.84 kB / 419.6 MB, free: 17.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000118/0.2746, allocations: 84.22 kB / 419.7 MB, free: 17.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2746, allocations: 0 / 419.7 MB, free: 17.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001795/0.2748, allocations: 121.6 kB / 419.8 MB, free: 17.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.2748, allocations: 8 kB / 419.8 MB, free: 17.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.2748, allocations: 7.984 kB / 419.8 MB, free: 17.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.2748, allocations: 8.125 kB / 419.8 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.2749, allocations: 19.92 kB / 419.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.2749, allocations: 4 kB / 419.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.66e-05/0.275, allocations: 11.94 kB / 419.8 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.275, allocations: 7.984 kB / 419.9 MB, free: 17.6 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,table.y,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.854e-05/0.2751, allocations: 153.7 kB / 420 MB, free: 17.44 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.324e-05/0.2752, allocations: 69.34 kB / 420.1 MB, free: 17.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.182e-05/0.2753, allocations: 29.77 kB / 420.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.2753, allocations: 4 kB / 420.1 MB, free: 17.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2753, allocations: 0 / 420.1 MB, free: 17.33 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2753, allocations: 3.938 kB / 420.1 MB, free: 17.33 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001406/0.2755, allocations: 249.4 kB / 420.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2755, allocations: 0 / 420.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.996e-05/0.2755, allocations: 11.98 kB / 420.4 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.2755, allocations: 0 / 420.4 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.2756, allocations: 7.938 kB / 420.4 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2756, allocations: 0 / 420.4 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2756, allocations: 0 / 420.4 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001958/0.2758, allocations: 170.4 kB / 420.5 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.239e-05/0.2758, allocations: 112.9 kB / 420.6 MB, free: 16.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.04e-05/0.2759, allocations: 4 kB / 420.7 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.226e-05/0.276, allocations: 11.98 kB / 420.7 MB, free: 16.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.276, allocations: 4 kB / 420.7 MB, free: 16.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.276, allocations: 15.92 kB / 420.7 MB, free: 16.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001647/0.2762, allocations: 245.9 kB / 420.9 MB, free: 16.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2762, allocations: 0 / 420.9 MB, free: 16.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002421/0.2765, allocations: 39.89 kB / 421 MB, free: 16.38 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,table.y,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.0008317/0.2773, allocations: 483.8 kB / 421.4 MB, free: 16.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002252/0.2775, allocations: 76.08 kB / 421.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2775, allocations: 4.062 kB / 421.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.992e-05/0.2776, allocations: 27.98 kB / 421.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.278, allocations: 63.48 kB / 421.6 MB, free: 15.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004978/0.2785, allocations: 424.4 kB / 422 MB, free: 15.41 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/0.2787, allocations: 0.74 MB / 422.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.671e-05/0.2788, allocations: 29.52 kB / 422.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.255e-05/0.2788, allocations: 23.42 kB / 422.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of SimCode: time 4.3e-07/0.2788, allocations: 0 / 422.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of Templates: time 0.005141/0.284, allocations: 2.744 MB / 425.6 MB, free: 11.86 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches