Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000897/0.0008971, allocations: 93.31 kB / 17.31 MB, free: 6.535 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.0007624/0.0007624, allocations: 175.5 kB / 18.21 MB, free: 5.684 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.281/1.281, allocations: 223.3 MB / 242.2 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002256/0.0002257, allocations: 7.938 kB / 302.1 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07297/0.07321, allocations: 50.41 MB / 352.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.001428/0.07467, allocations: 1.222 MB / 353.7 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002916/0.07498, allocations: 143.3 kB / 353.9 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.755e-05/0.07505, allocations: 0 / 353.9 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.571e-05/0.07508, allocations: 3.938 kB / 353.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.102e-05/0.07518, allocations: 8 kB / 353.9 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.07538, allocations: 35.53 kB / 353.9 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.778e-05/0.07546, allocations: 31.92 kB / 353.9 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.392e-05/0.07555, allocations: 15.97 kB / 353.9 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.512e-05/0.07558, allocations: 11.94 kB / 354 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.473e-05/0.07562, allocations: 15.86 kB / 354 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.261e-05/0.07564, allocations: 0 / 354 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.577e-06/0.07565, allocations: 4 kB / 354 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.113e-05/0.0757, allocations: 15.94 kB / 354 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.55e-05/0.07574, allocations: 45.52 kB / 354 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 5.967e-05/0.07581, allocations: 31.86 kB / 354.1 MB, free: 2.121 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.07582, allocations: 4 kB / 354.1 MB, free: 2.117 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.07582, allocations: 0 / 354.1 MB, free: 2.117 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.765e-06/0.07583, allocations: 0 / 354.1 MB, free: 2.117 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003483/0.07618, allocations: 359.6 kB / 354.4 MB, free: 1.715 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.89e-05/0.07622, allocations: 12.03 kB / 354.4 MB, free: 1.703 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.859e-05/0.07625, allocations: 8.844 kB / 354.4 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.07641, allocations: 192.1 kB / 354.6 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.07643, allocations: 8.359 kB / 354.6 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.085e-05/0.07644, allocations: 4.375 kB / 354.6 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002356/0.07668, allocations: 117.5 kB / 354.8 MB, free: 1.324 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.051e-06/0.0767, allocations: 4.188 kB / 354.8 MB, free: 1.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.07671, allocations: 3.938 kB / 354.8 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.07672, allocations: 0 / 354.8 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.265e-05/0.07681, allocations: 23.98 kB / 354.8 MB, free: 1.293 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002455/0.07706, allocations: 257.8 kB / 355 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.07725, allocations: 142.2 kB / 355.2 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.498e-05/0.07732, allocations: 25.78 kB / 355.2 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.07735, allocations: 7.984 kB / 355.2 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.07738, allocations: 42.5 kB / 355.3 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.07738, allocations: 0 / 355.3 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002266/0.07761, allocations: 81.52 kB / 355.3 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.07766, allocations: 81.11 kB / 355.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.894e-05/0.07777, allocations: 137.3 kB / 355.5 MB, free: 404 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.07779, allocations: 25.7 kB / 355.6 MB, free: 372 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.881e-05/0.07783, allocations: 92.12 kB / 355.7 MB, free: 276 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.618e-06/0.07785, allocations: 7.891 kB / 355.7 MB, free: 268 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.217e-05/0.07787, allocations: 13.72 kB / 355.7 MB, free: 248 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.324e-05/0.07797, allocations: 314.8 kB / 356 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.242e-05/0.07802, allocations: 7.984 kB / 356 MB, free: 15.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.43e-05/0.07808, allocations: 43.42 kB / 356 MB, free: 15.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.687e-05/0.07818, allocations: 51.3 kB / 356.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.07819, allocations: 4 kB / 356.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001294/0.07832, allocations: 65.56 kB / 356.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.07835, allocations: 8 kB / 356.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.07836, allocations: 3.938 kB / 356.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.07837, allocations: 0 / 356.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.694e-05/0.07843, allocations: 19.92 kB / 356.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.07845, allocations: 8.125 kB / 356.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.689e-05/0.07849, allocations: 7.938 kB / 356.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-06/0.0785, allocations: 0 / 356.2 MB, free: 15.68 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * 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 7.092e-05/0.07858, allocations: 129.8 kB / 356.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.534e-05/0.07865, allocations: 41.61 kB / 356.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.119e-05/0.07869, allocations: 16.23 kB / 356.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.0787, allocations: 0 / 356.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.0787, allocations: 7.938 kB / 356.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.07871, allocations: 336 / 356.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001502/0.07887, allocations: 169.6 kB / 356.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.07887, allocations: 0 / 356.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.987e-05/0.07893, allocations: 8 kB / 356.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.07894, allocations: 0 / 356.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.794e-06/0.07895, allocations: 11.98 kB / 356.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.07896, allocations: 0 / 356.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.07897, allocations: 0 / 356.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001597/0.07913, allocations: 176.2 kB / 356.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.096e-05/0.07919, allocations: 89 kB / 356.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.07921, allocations: 4 kB / 356.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.679e-05/0.07928, allocations: 7.984 kB / 356.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.05e-05/0.07931, allocations: 3.938 kB / 356.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-06/0.07932, allocations: 0 / 356.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.965e-05/0.07938, allocations: 103.3 kB / 357 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.07939, allocations: 4 kB / 357 MB, free: 14.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002323/0.07963, allocations: 4 kB / 357 MB, free: 14.81 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: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * 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 7.006e-05/0.0797, allocations: 99.19 kB / 357.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001261/0.07983, allocations: 39.91 kB / 357.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.07985, allocations: 256 / 357.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.76e-05/0.07989, allocations: 12 kB / 357.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.08022, allocations: 30.64 kB / 357.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002613/0.0805, allocations: 191.2 kB / 357.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/0.08071, allocations: 0.6965 MB / 358 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.824e-05/0.08074, allocations: 11.44 kB / 358 MB, free: 13.67 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.08074, allocations: 0 / 358 MB, free: 13.67 MB / 302.1 MB Notification: Performance of Templates: time 0.001661/0.08241, allocations: 0.6798 MB / 358.7 MB, free: 12.99 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches