Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008824/0.0008857, allocations: 183.7 kB / 16.71 MB, free: 4.973 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 225.7 MB / 243.2 MB, free: 8.488 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007851/0.0007855, allocations: 90.02 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002832/0.0002832, allocations: 8 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2231, allocations: 50.42 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.001375/0.2246, allocations: 1.257 MB / 405.8 MB, free: 30.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005789/0.2252, allocations: 465.4 kB / 406.3 MB, free: 29.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.713e-05/0.2252, allocations: 0 / 406.3 MB, free: 29.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.054e-05/0.2253, allocations: 7.922 kB / 406.3 MB, free: 29.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.2254, allocations: 8.75 kB / 406.3 MB, free: 29.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002188/0.2256, allocations: 33.69 kB / 406.3 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.765e-05/0.2257, allocations: 51.78 kB / 406.4 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.2258, allocations: 13.36 kB / 406.4 MB, free: 29.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.597e-05/0.2259, allocations: 23.92 kB / 406.4 MB, free: 29.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.721e-05/0.226, allocations: 23.8 kB / 406.4 MB, free: 29.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.527e-05/0.226, allocations: 1.781 kB / 406.4 MB, free: 29.44 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.125e-05/0.226, allocations: 0 / 406.4 MB, free: 29.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.974e-05/0.2261, allocations: 15.94 kB / 406.5 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.495e-05/0.2261, allocations: 49.5 kB / 406.5 MB, free: 29.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.316e-05/0.2262, allocations: 43.8 kB / 406.6 MB, free: 29.33 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2262, allocations: 0.5312 kB / 406.6 MB, free: 29.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2262, allocations: 0.75 kB / 406.6 MB, free: 29.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.347e-06/0.2262, allocations: 0 / 406.6 MB, free: 29.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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003299/0.2265, allocations: 377.9 kB / 406.9 MB, free: 28.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.983e-05/0.2266, allocations: 9.844 kB / 406.9 MB, free: 28.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.756e-05/0.2266, allocations: 8.844 kB / 406.9 MB, free: 28.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.2268, allocations: 201.4 kB / 407.1 MB, free: 28.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.2268, allocations: 4.375 kB / 407.1 MB, free: 28.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.2268, allocations: 4.375 kB / 407.1 MB, free: 28.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002202/0.227, allocations: 113.2 kB / 407.3 MB, free: 28.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.227, allocations: 0 / 407.3 MB, free: 28.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.605e-06/0.2271, allocations: 0 / 407.3 MB, free: 28.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2271, allocations: 0 / 407.3 MB, free: 28.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.816e-05/0.2271, allocations: 27.92 kB / 407.3 MB, free: 28.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002288/0.2274, allocations: 265.8 kB / 407.5 MB, free: 28.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.535e-05/0.2275, allocations: 53.16 kB / 407.6 MB, free: 28.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.453e-05/0.2275, allocations: 17.77 kB / 407.6 MB, free: 28.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.2275, allocations: 4 kB / 407.6 MB, free: 28.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.36e-05/0.2276, allocations: 30.56 kB / 407.6 MB, free: 28.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.2276, allocations: 0 / 407.6 MB, free: 28.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002153/0.2278, allocations: 81.61 kB / 407.7 MB, free: 27.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.711e-05/0.2278, allocations: 77.11 kB / 407.8 MB, free: 27.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.093e-05/0.2279, allocations: 139.9 kB / 407.9 MB, free: 27.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.123e-06/0.2279, allocations: 25.7 kB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.684e-05/0.228, allocations: 92.12 kB / 408.1 MB, free: 27.6 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.02e-05/0.228, allocations: 4 kB / 408.1 MB, free: 27.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.616e-06/0.228, allocations: 4.156 kB / 408.1 MB, free: 27.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.091e-05/0.228, allocations: 322.7 kB / 408.4 MB, free: 27.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.102e-05/0.2281, allocations: 11.98 kB / 408.4 MB, free: 27.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.689e-05/0.2281, allocations: 21.66 kB / 408.4 MB, free: 27.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.512e-05/0.2282, allocations: 33.77 kB / 408.4 MB, free: 27.19 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2282, allocations: 0 / 408.4 MB, free: 27.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001112/0.2284, allocations: 65.52 kB / 408.5 MB, free: 27.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.2284, allocations: 8 kB / 408.5 MB, free: 27.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.2284, allocations: 0 / 408.5 MB, free: 27.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.2284, allocations: 64 / 408.5 MB, free: 27.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.859e-05/0.2285, allocations: 11.94 kB / 408.5 MB, free: 27.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.067e-06/0.2285, allocations: 4 kB / 408.5 MB, free: 27.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.899e-05/0.2285, allocations: 3.984 kB / 408.5 MB, free: 27.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.2286, allocations: 4 kB / 408.5 MB, free: 27.09 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.022e-05/0.2286, allocations: 121.7 kB / 408.7 MB, free: 26.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.136e-05/0.2287, allocations: 41.55 kB / 408.7 MB, free: 26.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.491e-05/0.2287, allocations: 15.84 kB / 408.7 MB, free: 26.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2287, allocations: 8.031 kB / 408.7 MB, free: 26.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2287, allocations: 0 / 408.7 MB, free: 26.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.2287, allocations: 0 / 408.7 MB, free: 26.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.2289, allocations: 169.6 kB / 408.9 MB, free: 26.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2289, allocations: 4 kB / 408.9 MB, free: 26.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.054e-05/0.2289, allocations: 7.984 kB / 408.9 MB, free: 26.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.2289, allocations: 0 / 408.9 MB, free: 26.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.751e-06/0.2289, allocations: 0 / 408.9 MB, free: 26.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.2289, allocations: 4 kB / 408.9 MB, free: 26.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.229, allocations: 0 / 408.9 MB, free: 26.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001275/0.2291, allocations: 164.2 kB / 409.1 MB, free: 26.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.791e-05/0.2291, allocations: 92.94 kB / 409.2 MB, free: 26.37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.2292, allocations: 7.938 kB / 409.2 MB, free: 26.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.46e-05/0.2292, allocations: 3.984 kB / 409.2 MB, free: 26.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.625e-05/0.2293, allocations: 12.03 kB / 409.2 MB, free: 26.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.2293, allocations: 0 / 409.2 MB, free: 26.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.9e-05/0.2294, allocations: 114.9 kB / 409.3 MB, free: 26.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2294, allocations: 0 / 409.3 MB, free: 26.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000229/0.2296, allocations: 8 kB / 409.3 MB, free: 26.23 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 5.625e-05/0.2297, allocations: 99.25 kB / 409.4 MB, free: 26.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001187/0.2298, allocations: 31.98 kB / 409.4 MB, free: 26.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2298, allocations: 0 / 409.4 MB, free: 26.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.886e-05/0.2298, allocations: 15.92 kB / 409.4 MB, free: 26.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.2302, allocations: 19.97 kB / 409.5 MB, free: 26.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002469/0.2304, allocations: 185.7 kB / 409.6 MB, free: 25.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.565e-05/0.2306, allocations: 0.6887 MB / 410.3 MB, free: 25.12 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.404e-05/0.2306, allocations: 3.984 kB / 410.3 MB, free: 25.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.865e-05/0.2306, allocations: 11.44 kB / 410.3 MB, free: 25.11 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2306, allocations: 0 / 410.3 MB, free: 25.11 MB / 298.7 MB Notification: Performance of Templates: time 0.001888/0.2325, allocations: 0.5239 MB / 410.9 MB, free: 24.59 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches