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.001128/0.001128, allocations: 103.3 kB / 17.73 MB, free: 5.324 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.001712/0.001712, allocations: 192.1 kB / 18.67 MB, free: 4.395 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.572/1.572, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 47.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3983/0.3995, allocations: 49.42 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003174/0.4027, allocations: 1.507 MB / 402.9 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004322/0.4032, allocations: 135.5 kB / 403 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.928e-05/0.4033, allocations: 4 kB / 403 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.592e-05/0.4034, allocations: 3.938 kB / 403 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001448/0.4035, allocations: 11.92 kB / 403 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002523/0.4038, allocations: 37.91 kB / 403.1 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.482e-05/0.4039, allocations: 27.92 kB / 403.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.404, allocations: 11.98 kB / 403.1 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.482e-05/0.404, allocations: 15.92 kB / 403.1 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.124e-05/0.4041, allocations: 15.88 kB / 403.2 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.827e-05/0.4041, allocations: 0 / 403.2 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.4e-05/0.4041, allocations: 4 kB / 403.2 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.39e-05/0.4042, allocations: 7.984 kB / 403.2 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.501e-05/0.4042, allocations: 27.8 kB / 403.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001016/0.4043, allocations: 35.83 kB / 403.2 MB, free: 7.059 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.4043, allocations: 0 / 403.2 MB, free: 7.059 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4044, allocations: 0 / 403.2 MB, free: 7.059 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.4044, allocations: 7.938 kB / 403.2 MB, free: 7.051 MB / 318.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.0004828/0.4049, allocations: 360.4 kB / 403.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.4049, allocations: 8.031 kB / 403.6 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.826e-05/0.4049, allocations: 12.78 kB / 403.6 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002413/0.4052, allocations: 192.1 kB / 403.8 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.4052, allocations: 4.375 kB / 403.8 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.708e-06/0.4052, allocations: 384 / 403.8 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000238/0.4055, allocations: 93.61 kB / 403.9 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.4055, allocations: 4.172 kB / 403.9 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.4055, allocations: 7.938 kB / 403.9 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.4055, allocations: 0 / 403.9 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.361e-05/0.4056, allocations: 11.98 kB / 403.9 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003254/0.4059, allocations: 261.8 kB / 404.2 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.201e-05/0.406, allocations: 41.16 kB / 404.2 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.823e-05/0.4061, allocations: 25.7 kB / 404.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.4061, allocations: 0 / 404.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.4061, allocations: 38.5 kB / 404.3 MB, free: 5.824 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.4061, allocations: 0 / 404.3 MB, free: 5.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002414/0.4064, allocations: 65.52 kB / 404.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.4065, allocations: 85.11 kB / 404.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.4066, allocations: 129.1 kB / 404.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.4066, allocations: 29.95 kB / 404.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.355e-05/0.4067, allocations: 88.14 kB / 404.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.178e-06/0.4067, allocations: 0 / 404.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.187e-05/0.4067, allocations: 21.7 kB / 404.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.4069, allocations: 310.8 kB / 405 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.817e-05/0.4069, allocations: 8 kB / 405 MB, free: 5.043 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.995e-05/0.407, allocations: 21.7 kB / 405 MB, free: 5.016 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.31e-05/0.407, allocations: 33.7 kB / 405.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.4071, allocations: 0 / 405.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001124/0.4072, allocations: 53.53 kB / 405.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.4072, allocations: 4 kB / 405.1 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.4072, allocations: 0 / 405.1 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.4072, allocations: 4 kB / 405.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.237e-05/0.4073, allocations: 15.98 kB / 405.1 MB, free: 4.895 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.4073, allocations: 0 / 405.1 MB, free: 4.895 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.441e-05/0.4074, allocations: 0 / 405.1 MB, free: 4.895 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.4074, allocations: 8 kB / 405.1 MB, free: 4.887 MB / 318.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.095e-05/0.4075, allocations: 113.8 kB / 405.2 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.922e-05/0.4075, allocations: 41.59 kB / 405.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.16e-05/0.4076, allocations: 7.875 kB / 405.3 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.4076, allocations: 0 / 405.3 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.4076, allocations: 7.938 kB / 405.3 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.4076, allocations: 4.031 kB / 405.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.4078, allocations: 169.6 kB / 405.5 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.4078, allocations: 4 kB / 405.5 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.388e-05/0.4078, allocations: 4 kB / 405.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.4079, allocations: 0 / 405.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.4079, allocations: 7.938 kB / 405.5 MB, free: 4.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.4079, allocations: 3.938 kB / 405.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.4079, allocations: 0 / 405.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001702/0.4081, allocations: 164.3 kB / 405.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.283e-05/0.4081, allocations: 93 kB / 405.7 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.4082, allocations: 4 kB / 405.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.339e-05/0.4082, allocations: 0 / 405.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.372e-05/0.4083, allocations: 0 / 405.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-06/0.4083, allocations: 4 kB / 405.7 MB, free: 4.164 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.476e-05/0.4084, allocations: 103.2 kB / 405.9 MB, free: 4.062 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4084, allocations: 4.031 kB / 405.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002135/0.4086, allocations: 4 kB / 405.9 MB, free: 4.055 MB / 318.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.0001065/0.4087, allocations: 99.98 kB / 406 MB, free: 3.949 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.4088, allocations: 27.92 kB / 406 MB, free: 3.922 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4088, allocations: 0 / 406 MB, free: 3.922 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.2e-05/0.4089, allocations: 7.984 kB / 406 MB, free: 3.914 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.4092, allocations: 20.16 kB / 406 MB, free: 3.895 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003661/0.4096, allocations: 172 kB / 406.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.4099, allocations: 0.6883 MB / 406.9 MB, free: 2.977 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.521e-05/0.4099, allocations: 7.438 kB / 406.9 MB, free: 2.969 MB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4099, allocations: 0 / 406.9 MB, free: 2.969 MB / 318.1 MB Notification: Performance of Templates: time 0.002002/0.4119, allocations: 0.6308 MB / 407.5 MB, free: 2.336 MB / 318.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/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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches