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.IntegerSignals.SampleClocked.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.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009315/0.0009315, allocations: 182.3 kB / 16.71 MB, free: 4.969 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.347/1.347, allocations: 225.7 MB / 243.2 MB, free: 8.465 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.0008296/0.0008296, allocations: 94.95 kB / 294.4 MB, free: 9.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003042/0.0003043, allocations: 11.92 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2432, allocations: 50.42 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.00127/0.2445, allocations: 1.206 MB / 405.8 MB, free: 30.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002571/0.2447, allocations: 123.7 kB / 405.9 MB, free: 29.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.466e-05/0.2448, allocations: 0 / 405.9 MB, free: 29.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.317e-05/0.2449, allocations: 4.438 kB / 405.9 MB, free: 29.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000106/0.245, allocations: 12.47 kB / 405.9 MB, free: 29.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001954/0.2452, allocations: 33.33 kB / 406 MB, free: 29.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.145e-05/0.2453, allocations: 23.92 kB / 406 MB, free: 29.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.833e-05/0.2454, allocations: 12.86 kB / 406 MB, free: 29.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.396e-05/0.2454, allocations: 11.88 kB / 406 MB, free: 29.9 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.275e-05/0.2454, allocations: 15.92 kB / 406 MB, free: 29.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.561e-05/0.2454, allocations: 6.531 kB / 406 MB, free: 29.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.015e-06/0.2455, allocations: 0 / 406 MB, free: 29.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.522e-05/0.2455, allocations: 4 kB / 406 MB, free: 29.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.2455, allocations: 45.52 kB / 406.1 MB, free: 29.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.324e-05/0.2456, allocations: 35.81 kB / 406.1 MB, free: 29.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.2456, allocations: 0 / 406.1 MB, free: 29.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2456, allocations: 4 kB / 406.1 MB, free: 29.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.2456, allocations: 0.625 kB / 406.1 MB, free: 29.79 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0002967/0.2459, allocations: 362.2 kB / 406.5 MB, free: 29.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.246, allocations: 8.875 kB / 406.5 MB, free: 29.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.636e-05/0.246, allocations: 8.844 kB / 406.5 MB, free: 29.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.2461, allocations: 189.9 kB / 406.7 MB, free: 29.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.358e-06/0.2461, allocations: 384 / 406.7 MB, free: 29.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.205e-06/0.2462, allocations: 4.375 kB / 406.7 MB, free: 29.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.2463, allocations: 97.52 kB / 406.8 MB, free: 29.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.2464, allocations: 192 / 406.8 MB, free: 29.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.083e-06/0.2464, allocations: 3.938 kB / 406.8 MB, free: 29.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.2464, allocations: 4 kB / 406.8 MB, free: 29.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.364e-05/0.2464, allocations: 17.11 kB / 406.8 MB, free: 29.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000207/0.2467, allocations: 258.5 kB / 407 MB, free: 28.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.404e-05/0.2467, allocations: 53.14 kB / 407.1 MB, free: 28.63 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.788e-05/0.2468, allocations: 17.78 kB / 407.1 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.2468, allocations: 7.938 kB / 407.1 MB, free: 28.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.249e-05/0.2468, allocations: 34.56 kB / 407.2 MB, free: 28.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.353e-06/0.2468, allocations: 0 / 407.2 MB, free: 28.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001846/0.247, allocations: 65.61 kB / 407.2 MB, free: 28.49 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.871e-05/0.2471, allocations: 81.11 kB / 407.3 MB, free: 28.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.553e-05/0.2471, allocations: 134.3 kB / 407.4 MB, free: 28.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.142e-06/0.2472, allocations: 33.64 kB / 407.5 MB, free: 28.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.865e-05/0.2472, allocations: 96.02 kB / 407.6 MB, free: 28.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.462e-06/0.2472, allocations: 4 kB / 407.6 MB, free: 28.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-06/0.2472, allocations: 0 / 407.6 MB, free: 28.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.004e-05/0.2473, allocations: 314.8 kB / 407.9 MB, free: 27.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.304e-05/0.2473, allocations: 8 kB / 407.9 MB, free: 27.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.88e-05/0.2473, allocations: 21.7 kB / 407.9 MB, free: 27.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.949e-05/0.2474, allocations: 37.64 kB / 407.9 MB, free: 27.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.2474, allocations: 0 / 407.9 MB, free: 27.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.607e-05/0.2475, allocations: 61.69 kB / 408 MB, free: 27.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.2475, allocations: 4 kB / 408 MB, free: 27.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.2475, allocations: 3.938 kB / 408 MB, free: 27.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.2475, allocations: 3.938 kB / 408 MB, free: 27.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.231e-05/0.2476, allocations: 11.98 kB / 408 MB, free: 27.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.2476, allocations: 0 / 408 MB, free: 27.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.586e-05/0.2476, allocations: 4 kB / 408 MB, free: 27.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-06/0.2476, allocations: 0 / 408 MB, free: 27.62 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: 2 (step.y,sample1.y) * 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 4.673e-05/0.2477, allocations: 121.8 kB / 408.1 MB, free: 27.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.177e-05/0.2477, allocations: 45.59 kB / 408.2 MB, free: 27.44 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.15e-05/0.2478, allocations: 3.875 kB / 408.2 MB, free: 27.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.2478, allocations: 0 / 408.2 MB, free: 27.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2478, allocations: 7.984 kB / 408.2 MB, free: 27.42 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.2478, allocations: 0 / 408.2 MB, free: 27.42 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001041/0.2479, allocations: 169.6 kB / 408.4 MB, free: 27.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.2479, allocations: 0 / 408.4 MB, free: 27.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.538e-05/0.2479, allocations: 11.94 kB / 408.4 MB, free: 27.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.248, allocations: 0 / 408.4 MB, free: 27.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-06/0.248, allocations: 4.031 kB / 408.4 MB, free: 27.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.248, allocations: 0 / 408.4 MB, free: 27.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.248, allocations: 0 / 408.4 MB, free: 27.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001036/0.2481, allocations: 168.2 kB / 408.5 MB, free: 27.01 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.031e-05/0.2481, allocations: 89.03 kB / 408.6 MB, free: 26.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.2481, allocations: 4 kB / 408.6 MB, free: 26.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.701e-05/0.2482, allocations: 4 kB / 408.6 MB, free: 26.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.731e-05/0.2482, allocations: 3.938 kB / 408.6 MB, free: 26.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-06/0.2482, allocations: 4 kB / 408.6 MB, free: 26.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.837e-05/0.2483, allocations: 107.2 kB / 408.7 MB, free: 26.78 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2483, allocations: 0 / 408.7 MB, free: 26.78 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002015/0.2485, allocations: 4 kB / 408.8 MB, free: 26.78 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: 2 (step.y,sample1.y) * 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 6.106e-05/0.2486, allocations: 107.2 kB / 408.9 MB, free: 26.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.772e-05/0.2487, allocations: 23.98 kB / 408.9 MB, free: 26.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2487, allocations: 0 / 408.9 MB, free: 26.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.093e-05/0.2487, allocations: 11.98 kB / 408.9 MB, free: 26.63 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.249, allocations: 17 kB / 408.9 MB, free: 26.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002202/0.2493, allocations: 163 kB / 409.1 MB, free: 26.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.808e-05/0.2494, allocations: 0.6848 MB / 409.8 MB, free: 25.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.924e-05/0.2494, allocations: 4 kB / 409.8 MB, free: 25.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.693e-05/0.2494, allocations: 7.438 kB / 409.8 MB, free: 25.7 MB / 298.7 MB Notification: Performance of SimCode: time 3.7e-07/0.2494, allocations: 0 / 409.8 MB, free: 25.7 MB / 298.7 MB Notification: Performance of Templates: time 0.001833/0.2513, allocations: 398.5 kB / 410.2 MB, free: 25.32 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches