Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001718/0.001725, allocations: 115.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002248/0.002248, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.961/1.961, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.001361, allocations: 59.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3276, allocations: 50.54 MB / 409.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.00315/0.3308, allocations: 1.507 MB / 411.4 MB, free: 52 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004272/0.3313, allocations: 127.6 kB / 411.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.644e-05/0.3314, allocations: 7.938 kB / 411.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.977e-05/0.3314, allocations: 3.938 kB / 411.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001533/0.3316, allocations: 7.984 kB / 411.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002593/0.3319, allocations: 39.84 kB / 411.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.923e-05/0.332, allocations: 27.92 kB / 411.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.3321, allocations: 8 kB / 411.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.324e-05/0.3321, allocations: 15.92 kB / 411.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.114e-05/0.3322, allocations: 15.88 kB / 411.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.909e-05/0.3322, allocations: 0 / 411.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.18e-05/0.3322, allocations: 4 kB / 411.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.831e-05/0.3323, allocations: 7.984 kB / 411.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.42e-05/0.3323, allocations: 31.8 kB / 411.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001209/0.3325, allocations: 35.83 kB / 411.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3325, allocations: 0 / 411.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3325, allocations: 0 / 411.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.3325, allocations: 3.938 kB / 411.8 MB, free: 15.72 MB / 334.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.0005243/0.333, allocations: 359.2 kB / 412.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.3331, allocations: 8.031 kB / 412.1 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.457e-05/0.3331, allocations: 8.844 kB / 412.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.3334, allocations: 201.3 kB / 412.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.3334, allocations: 4.375 kB / 412.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.3334, allocations: 384 / 412.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002517/0.3337, allocations: 97.59 kB / 412.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.3337, allocations: 192 / 412.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.3337, allocations: 7.938 kB / 412.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.411e-06/0.3337, allocations: 4 kB / 412.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.954e-05/0.3338, allocations: 11.98 kB / 412.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003332/0.3341, allocations: 257.8 kB / 412.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.813e-05/0.3342, allocations: 41.09 kB / 412.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.998e-05/0.3343, allocations: 29.77 kB / 412.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.519e-05/0.3343, allocations: 0 / 412.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.3344, allocations: 34.5 kB / 412.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.3344, allocations: 0 / 412.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002357/0.3346, allocations: 61.58 kB / 412.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.549e-05/0.3347, allocations: 89.3 kB / 412.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.3348, allocations: 133.5 kB / 413.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.3348, allocations: 25.7 kB / 413.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.679e-05/0.3349, allocations: 88.14 kB / 413.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.725e-06/0.3349, allocations: 0 / 413.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/0.335, allocations: 25.61 kB / 413.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.3351, allocations: 310.8 kB / 413.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.645e-05/0.3351, allocations: 8 kB / 413.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.017e-05/0.3352, allocations: 25.7 kB / 413.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.86e-05/0.3352, allocations: 25.64 kB / 413.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3353, allocations: 0 / 413.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001195/0.3354, allocations: 57.69 kB / 413.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.3354, allocations: 6.969 kB / 413.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.3354, allocations: 0 / 413.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.3354, allocations: 4 kB / 413.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.342e-05/0.3355, allocations: 11.97 kB / 413.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.3355, allocations: 3.938 kB / 413.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.507e-05/0.3356, allocations: 0 / 413.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.3356, allocations: 4 kB / 413.7 MB, free: 13.55 MB / 334.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 8.694e-05/0.3357, allocations: 121.7 kB / 413.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.383e-05/0.3357, allocations: 41.66 kB / 413.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.314e-05/0.3358, allocations: 15.83 kB / 413.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.3358, allocations: 0 / 413.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3358, allocations: 7.938 kB / 413.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.3358, allocations: 0 / 413.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.336, allocations: 169.6 kB / 414 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.336, allocations: 0 / 414 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.828e-05/0.336, allocations: 4 kB / 414 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.336, allocations: 3.938 kB / 414 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.3361, allocations: 4 kB / 414 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3361, allocations: 4.031 kB / 414 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3361, allocations: 0 / 414 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001588/0.3362, allocations: 164.2 kB / 414.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.95e-05/0.3363, allocations: 89.09 kB / 414.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.3363, allocations: 4 kB / 414.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.111e-05/0.3364, allocations: 8.031 kB / 414.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.245e-05/0.3364, allocations: 0 / 414.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-06/0.3365, allocations: 4 kB / 414.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.671e-05/0.3365, allocations: 103.2 kB / 414.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3365, allocations: 0 / 414.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002148/0.3367, allocations: 4 kB / 414.4 MB, free: 12.7 MB / 334.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.0001207/0.3369, allocations: 95.25 kB / 414.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000147/0.337, allocations: 27.92 kB / 414.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.337, allocations: 0 / 414.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.628e-05/0.3371, allocations: 11.98 kB / 414.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.3374, allocations: 18.2 kB / 414.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003356/0.3378, allocations: 179.4 kB / 414.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.3381, allocations: 0.6807 MB / 415.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.058e-05/0.3381, allocations: 19.7 kB / 415.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3381, allocations: 0 / 415.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of Templates: time 0.002038/0.3402, allocations: 0.6364 MB / 416 MB, free: 10.97 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches