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.RealSignals.Sample2.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.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000939/0.0009391, allocations: 177.3 kB / 16.71 MB, free: 5.09 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.336/1.336, allocations: 225.7 MB / 243.2 MB, free: 8.441 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.000746/0.000746, allocations: 91.08 kB / 294.4 MB, free: 9.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002428/0.0002428, allocations: 11.94 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2458, allocations: 50.41 MB / 404.6 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.001409/0.2473, allocations: 1.253 MB / 405.8 MB, free: 30.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003019/0.2476, allocations: 133.5 kB / 406 MB, free: 29.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.502e-05/0.2477, allocations: 0 / 406 MB, free: 29.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.213e-05/0.2477, allocations: 4 kB / 406 MB, free: 29.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.2479, allocations: 11.92 kB / 406 MB, free: 29.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000222/0.2481, allocations: 35.91 kB / 406 MB, free: 29.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.672e-05/0.2482, allocations: 32.39 kB / 406 MB, free: 29.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.2483, allocations: 18.7 kB / 406.1 MB, free: 29.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.858e-05/0.2483, allocations: 7.938 kB / 406.1 MB, free: 29.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.357e-05/0.2484, allocations: 15.92 kB / 406.1 MB, free: 29.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.616e-05/0.2484, allocations: 3.984 kB / 406.1 MB, free: 29.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.148e-06/0.2484, allocations: 3.938 kB / 406.1 MB, free: 29.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.983e-05/0.2485, allocations: 13.11 kB / 406.1 MB, free: 29.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.898e-05/0.2485, allocations: 45.52 kB / 406.1 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.765e-05/0.2486, allocations: 39.83 kB / 406.2 MB, free: 29.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2486, allocations: 0.5312 kB / 406.2 MB, free: 29.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2486, allocations: 1.469 kB / 406.2 MB, free: 29.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.2486, allocations: 0 / 406.2 MB, free: 29.69 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003427/0.249, allocations: 357.4 kB / 406.5 MB, free: 29.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.249, allocations: 12.03 kB / 406.5 MB, free: 29.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.989e-05/0.2491, allocations: 6.094 kB / 406.6 MB, free: 29.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.2492, allocations: 200 kB / 406.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.2492, allocations: 1.531 kB / 406.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.2493, allocations: 8.375 kB / 406.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002471/0.2495, allocations: 113.3 kB / 406.9 MB, free: 28.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2495, allocations: 192 / 406.9 MB, free: 28.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.505e-06/0.2495, allocations: 3.938 kB / 406.9 MB, free: 28.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.2496, allocations: 4 kB / 406.9 MB, free: 28.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.026e-05/0.2496, allocations: 25.23 kB / 406.9 MB, free: 28.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002329/0.2499, allocations: 258.7 kB / 407.2 MB, free: 28.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001572/0.25, allocations: 146.2 kB / 407.3 MB, free: 28.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.397e-05/0.2501, allocations: 29.77 kB / 407.3 MB, free: 28.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.2501, allocations: 0 / 407.3 MB, free: 28.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.503e-05/0.2501, allocations: 34.56 kB / 407.4 MB, free: 28.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.2502, allocations: 0 / 407.4 MB, free: 28.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002075/0.2504, allocations: 85.52 kB / 407.4 MB, free: 28.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.2504, allocations: 85.09 kB / 407.5 MB, free: 28.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.92e-05/0.2505, allocations: 138.1 kB / 407.7 MB, free: 27.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.776e-06/0.2505, allocations: 29.7 kB / 407.7 MB, free: 27.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.996e-05/0.2506, allocations: 84.14 kB / 407.8 MB, free: 27.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.145e-05/0.2506, allocations: 4 kB / 407.8 MB, free: 27.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-06/0.2506, allocations: 0 / 407.8 MB, free: 27.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.432e-05/0.2506, allocations: 314.8 kB / 408.1 MB, free: 27.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.77e-05/0.2507, allocations: 12 kB / 408.1 MB, free: 27.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.486e-05/0.2507, allocations: 39.36 kB / 408.1 MB, free: 27.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.246e-05/0.2508, allocations: 47.36 kB / 408.2 MB, free: 27.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.2508, allocations: 8 kB / 408.2 MB, free: 27.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.783e-05/0.2509, allocations: 77.41 kB / 408.3 MB, free: 27.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.868e-06/0.2509, allocations: 4 kB / 408.3 MB, free: 27.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2509, allocations: 7.984 kB / 408.3 MB, free: 27.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.251, allocations: 0 / 408.3 MB, free: 27.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.764e-05/0.251, allocations: 8 kB / 408.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.251, allocations: 4.125 kB / 408.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.98e-05/0.2511, allocations: 4 kB / 408.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.2511, allocations: 4 kB / 408.3 MB, free: 27.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.476e-05/0.2511, allocations: 130.2 kB / 408.4 MB, free: 27.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.066e-05/0.2512, allocations: 49.88 kB / 408.5 MB, free: 27.1 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.865e-05/0.2512, allocations: 20.23 kB / 408.5 MB, free: 27.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2512, allocations: 0 / 408.5 MB, free: 27.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.2512, allocations: 0 / 408.5 MB, free: 27.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2512, allocations: 0 / 408.5 MB, free: 27.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001114/0.2514, allocations: 173.5 kB / 408.7 MB, free: 26.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2514, allocations: 4 kB / 408.7 MB, free: 26.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.187e-05/0.2514, allocations: 12 kB / 408.7 MB, free: 26.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.2514, allocations: 0 / 408.7 MB, free: 26.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.2514, allocations: 3.984 kB / 408.7 MB, free: 26.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.2514, allocations: 0 / 408.7 MB, free: 26.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2514, allocations: 0 / 408.7 MB, free: 26.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001194/0.2516, allocations: 176.2 kB / 408.9 MB, free: 26.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.497e-05/0.2516, allocations: 89 kB / 408.9 MB, free: 26.54 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.2516, allocations: 7.984 kB / 408.9 MB, free: 26.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.679e-05/0.2517, allocations: 4 kB / 409 MB, free: 26.53 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.19e-05/0.2517, allocations: 0 / 409 MB, free: 26.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.2517, allocations: 7.938 kB / 409 MB, free: 26.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.976e-05/0.2518, allocations: 99.27 kB / 409.1 MB, free: 26.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2518, allocations: 4 kB / 409.1 MB, free: 26.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000187/0.252, allocations: 4 kB / 409.1 MB, free: 26.41 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 (4): * Single equations (assignments): 4 * 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 8.272e-05/0.2521, allocations: 107.2 kB / 409.2 MB, free: 26.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001106/0.2522, allocations: 31.92 kB / 409.2 MB, free: 26.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2522, allocations: 256 / 409.2 MB, free: 26.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.914e-05/0.2522, allocations: 12 kB / 409.2 MB, free: 26.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.2526, allocations: 32.75 kB / 409.2 MB, free: 26.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002477/0.2528, allocations: 169.5 kB / 409.4 MB, free: 26.03 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001148/0.2529, allocations: 0.6927 MB / 410.1 MB, free: 25.31 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.113e-05/0.253, allocations: 0 / 410.1 MB, free: 25.31 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.721e-05/0.253, allocations: 11.44 kB / 410.1 MB, free: 25.3 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.253, allocations: 0 / 410.1 MB, free: 25.3 MB / 298.7 MB Notification: Performance of Templates: time 0.002044/0.255, allocations: 455.3 kB / 410.6 MB, free: 24.86 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches