Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 104.6 kB / 16.92 MB, free: 5.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001996/0.001996, allocations: 191.5 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 222.9 MB / 241.5 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001167, allocations: 47.08 kB / 300.6 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1377, allocations: 49.44 MB / 350.1 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003565/0.1413, allocations: 1.48 MB / 351.5 MB, free: 2.922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000513/0.1418, allocations: 145 kB / 351.7 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.142, allocations: 0 / 351.7 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.176e-05/0.142, allocations: 3.938 kB / 351.7 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001735/0.1422, allocations: 11.94 kB / 351.7 MB, free: 2.766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002867/0.1425, allocations: 37.27 kB / 351.7 MB, free: 2.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001/0.1426, allocations: 23.94 kB / 351.8 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.1428, allocations: 15.97 kB / 351.8 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.637e-05/0.1428, allocations: 11.94 kB / 351.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.561e-05/0.1429, allocations: 15.86 kB / 351.8 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.297e-05/0.1429, allocations: 4 kB / 351.8 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.309e-05/0.1429, allocations: 0 / 351.8 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.697e-05/0.143, allocations: 8 kB / 351.8 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.68e-05/0.143, allocations: 23.81 kB / 351.8 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.1431, allocations: 43.81 kB / 351.9 MB, free: 2.586 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1431, allocations: 0 / 351.9 MB, free: 2.586 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1432, allocations: 4 kB / 351.9 MB, free: 2.582 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.1432, allocations: 0 / 351.9 MB, free: 2.582 MB / 286.1 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.0004644/0.1436, allocations: 363.5 kB / 352.2 MB, free: 2.176 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.1437, allocations: 8.031 kB / 352.2 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.558e-05/0.1437, allocations: 12.78 kB / 352.3 MB, free: 2.156 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002041/0.1439, allocations: 184.2 kB / 352.4 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.144, allocations: 12.36 kB / 352.4 MB, free: 1.926 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.158e-06/0.144, allocations: 384 / 352.4 MB, free: 1.926 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002398/0.1442, allocations: 93.55 kB / 352.5 MB, free: 1.816 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.1442, allocations: 192 / 352.5 MB, free: 1.816 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.1443, allocations: 7.938 kB / 352.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.1443, allocations: 0 / 352.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.762e-05/0.1443, allocations: 15.98 kB / 352.6 MB, free: 1.793 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003301/0.1447, allocations: 257.8 kB / 352.8 MB, free: 1.488 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.463e-05/0.1448, allocations: 37.16 kB / 352.8 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.033e-05/0.1448, allocations: 29.77 kB / 352.9 MB, free: 1.398 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.1448, allocations: 0 / 352.9 MB, free: 1.398 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.1449, allocations: 34.5 kB / 352.9 MB, free: 1.355 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 7.41e-07/0.1449, allocations: 0 / 352.9 MB, free: 1.355 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002341/0.1451, allocations: 65.52 kB / 353 MB, free: 1.285 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/0.1452, allocations: 89.3 kB / 353.1 MB, free: 1.18 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.1453, allocations: 133.1 kB / 353.2 MB, free: 1.039 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.1453, allocations: 25.7 kB / 353.2 MB, free: 1.008 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.681e-05/0.1454, allocations: 88.14 kB / 353.3 MB, free: 0.918 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.109e-05/0.1454, allocations: 7.891 kB / 353.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.019e-05/0.1454, allocations: 17.72 kB / 353.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.1456, allocations: 310.8 kB / 353.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.816e-05/0.1456, allocations: 7.984 kB / 353.6 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.143e-05/0.1457, allocations: 21.72 kB / 353.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.461e-05/0.1457, allocations: 29.64 kB / 353.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1457, allocations: 0 / 353.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001019/0.1458, allocations: 57.75 kB / 353.7 MB, free: 452 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.1459, allocations: 8 kB / 353.8 MB, free: 444 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1459, allocations: 0 / 353.8 MB, free: 444 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.1459, allocations: 3.984 kB / 353.8 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.271e-05/0.146, allocations: 15.92 kB / 353.8 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.146, allocations: 0 / 353.8 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.469e-05/0.146, allocations: 0 / 353.8 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-06/0.146, allocations: 4 kB / 353.8 MB, free: 420 kB / 286.1 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 9.45e-05/0.1461, allocations: 117.8 kB / 353.9 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.672e-05/0.1462, allocations: 41.59 kB / 353.9 MB, free: 244 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.995e-05/0.1462, allocations: 11.88 kB / 353.9 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1463, allocations: 0 / 353.9 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1463, allocations: 0 / 353.9 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1463, allocations: 4 kB / 353.9 MB, free: 224 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001761/0.1465, allocations: 169.6 kB / 354.1 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1465, allocations: 0 / 354.1 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.478e-05/0.1465, allocations: 4 kB / 354.1 MB, free: 0 / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1465, allocations: 0 / 354.1 MB, free: 0 / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.1465, allocations: 0 / 354.1 MB, free: 0 / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.1466, allocations: 15.97 kB / 354.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1466, allocations: 4.031 kB / 354.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000168/0.1467, allocations: 152.2 kB / 354.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.187e-05/0.1468, allocations: 93 kB / 354.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.1468, allocations: 3.828 kB / 354.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.45e-05/0.1469, allocations: 4 kB / 354.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.34e-05/0.1469, allocations: 4.031 kB / 354.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.618e-06/0.1469, allocations: 4 kB / 354.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.977e-05/0.147, allocations: 107.2 kB / 354.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.147, allocations: 0 / 354.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002367/0.1473, allocations: 4 kB / 354.5 MB, free: 15.58 MB / 302.1 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 0.0001098/0.1474, allocations: 99.72 kB / 354.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001406/0.1475, allocations: 23.92 kB / 354.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1475, allocations: 8.125 kB / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.446e-05/0.1476, allocations: 7.984 kB / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.148, allocations: 15.97 kB / 354.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003035/0.1483, allocations: 138.3 kB / 354.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.1486, allocations: 0.6925 MB / 355.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.136e-05/0.1486, allocations: 7.984 kB / 355.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.035e-05/0.1486, allocations: 7.438 kB / 355.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1486, allocations: 0 / 355.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of Templates: time 0.002663/0.1513, allocations: 451.5 kB / 355.9 MB, free: 14.08 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches