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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 103.5 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 47.92 kB / 350 MB, free: 96 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3319, allocations: 49.43 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003133/0.3351, allocations: 1.556 MB / 401 MB, free: 31.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004915/0.3357, allocations: 139.5 kB / 401.2 MB, free: 31.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.3358, allocations: 2.875 kB / 401.2 MB, free: 31.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001081/0.3359, allocations: 0 / 401.2 MB, free: 31.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.3361, allocations: 7.938 kB / 401.2 MB, free: 31.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000313/0.3365, allocations: 31.91 kB / 401.2 MB, free: 31.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.3366, allocations: 31.86 kB / 401.2 MB, free: 31.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.3367, allocations: 7.984 kB / 401.2 MB, free: 31.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.138e-05/0.3368, allocations: 14.12 kB / 401.3 MB, free: 31.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.019e-05/0.3369, allocations: 11.88 kB / 401.3 MB, free: 31.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.3369, allocations: 4 kB / 401.3 MB, free: 31.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.336e-05/0.3369, allocations: 0 / 401.3 MB, free: 31.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.329e-05/0.337, allocations: 15.97 kB / 401.3 MB, free: 31.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.183e-05/0.337, allocations: 19.81 kB / 401.3 MB, free: 31.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001199/0.3372, allocations: 38.39 kB / 401.3 MB, free: 31.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.3372, allocations: 0 / 401.3 MB, free: 31.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3372, allocations: 0 / 401.3 MB, free: 31.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.3372, allocations: 0 / 401.3 MB, free: 31.52 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.0005997/0.3378, allocations: 366.3 kB / 401.7 MB, free: 31.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.204e-05/0.3379, allocations: 8.031 kB / 401.7 MB, free: 31.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.868e-05/0.3379, allocations: 16.84 kB / 401.7 MB, free: 31.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.3382, allocations: 184.9 kB / 401.9 MB, free: 30.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.3382, allocations: 384 / 401.9 MB, free: 30.87 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.3382, allocations: 8.375 kB / 401.9 MB, free: 30.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000284/0.3385, allocations: 85.61 kB / 402 MB, free: 30.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.3386, allocations: 192 / 402 MB, free: 30.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.3386, allocations: 7.938 kB / 402 MB, free: 30.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.3386, allocations: 0 / 402 MB, free: 30.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.391e-05/0.3387, allocations: 23.92 kB / 402 MB, free: 30.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003587/0.339, allocations: 249.8 kB / 402.3 MB, free: 30.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.813e-05/0.3391, allocations: 53.09 kB / 402.3 MB, free: 30.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.303e-05/0.3392, allocations: 17.77 kB / 402.3 MB, free: 30.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.3392, allocations: 4 kB / 402.3 MB, free: 30.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.3392, allocations: 34.56 kB / 402.4 MB, free: 30.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.533e-06/0.3392, allocations: 0 / 402.4 MB, free: 30.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002327/0.3395, allocations: 77.55 kB / 402.5 MB, free: 30.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.3395, allocations: 77.11 kB / 402.5 MB, free: 30.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.3396, allocations: 137.2 kB / 402.7 MB, free: 29.97 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.3397, allocations: 25.7 kB / 402.7 MB, free: 29.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.572e-05/0.3397, allocations: 84.08 kB / 402.8 MB, free: 29.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.147e-05/0.3397, allocations: 4 kB / 402.8 MB, free: 29.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.3398, allocations: 21.61 kB / 402.8 MB, free: 29.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.3399, allocations: 323 kB / 403.1 MB, free: 29.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.72e-05/0.3399, allocations: 4 kB / 403.1 MB, free: 29.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.171e-05/0.34, allocations: 17.7 kB / 403.1 MB, free: 29.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.578e-05/0.34, allocations: 29.7 kB / 403.2 MB, free: 29.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.34, allocations: 0 / 403.2 MB, free: 29.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.944e-05/0.3401, allocations: 57.62 kB / 403.2 MB, free: 29.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.3402, allocations: 11.94 kB / 403.2 MB, free: 29.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.3402, allocations: 0 / 403.2 MB, free: 29.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.3402, allocations: 3.984 kB / 403.2 MB, free: 29.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.891e-05/0.3403, allocations: 7.984 kB / 403.2 MB, free: 29.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.3403, allocations: 0 / 403.2 MB, free: 29.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.642e-05/0.3403, allocations: 4 kB / 403.2 MB, free: 29.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.3404, allocations: 0 / 403.2 MB, free: 29.34 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 8.167e-05/0.3404, allocations: 121.8 kB / 403.4 MB, free: 29.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.668e-05/0.3405, allocations: 49.53 kB / 403.4 MB, free: 29.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.845e-05/0.3405, allocations: 7.875 kB / 403.4 MB, free: 29.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3406, allocations: 0 / 403.4 MB, free: 29.15 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3406, allocations: 0 / 403.4 MB, free: 29.15 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3406, allocations: 0 / 403.4 MB, free: 29.15 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.3408, allocations: 169.6 kB / 403.6 MB, free: 28.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3408, allocations: 4 kB / 403.6 MB, free: 28.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.346e-05/0.3408, allocations: 4 kB / 403.6 MB, free: 28.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.3408, allocations: 4.031 kB / 403.6 MB, free: 28.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.3408, allocations: 0 / 403.6 MB, free: 28.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3408, allocations: 0 / 403.6 MB, free: 28.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3408, allocations: 4 kB / 403.6 MB, free: 28.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.3412, allocations: 0.7131 MB / 404.3 MB, free: 28.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.116e-05/0.3413, allocations: 92.94 kB / 404.4 MB, free: 28.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.3413, allocations: 4 kB / 404.4 MB, free: 28.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.533e-05/0.3413, allocations: 4 kB / 404.4 MB, free: 28.03 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.602e-05/0.3414, allocations: 0 / 404.4 MB, free: 28.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.3414, allocations: 7.922 kB / 404.4 MB, free: 28.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.021e-05/0.3415, allocations: 103.3 kB / 404.5 MB, free: 27.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3415, allocations: 3.938 kB / 404.5 MB, free: 27.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003271/0.3418, allocations: 4 kB / 404.5 MB, free: 27.91 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 0.0001002/0.3419, allocations: 99.25 kB / 404.6 MB, free: 27.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001261/0.342, allocations: 15.98 kB / 404.6 MB, free: 27.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.342, allocations: 0 / 404.6 MB, free: 27.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.291e-05/0.3421, allocations: 11.98 kB / 404.7 MB, free: 27.78 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004042/0.3425, allocations: 14.47 kB / 404.7 MB, free: 27.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003511/0.3428, allocations: 271.3 kB / 404.9 MB, free: 27.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001512/0.343, allocations: 0.6848 MB / 405.6 MB, free: 26.75 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.587e-05/0.343, allocations: 8 kB / 405.6 MB, free: 26.74 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.083e-05/0.3431, allocations: 11.44 kB / 405.6 MB, free: 26.73 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3431, allocations: 0 / 405.6 MB, free: 26.73 MB / 298.7 MB Notification: Performance of Templates: time 0.002255/0.3453, allocations: 415.4 kB / 406 MB, free: 26.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@2/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