Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009023/0.0009023, allocations: 93.16 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.0009852/0.0009853, allocations: 174.8 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.274/1.274, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002276/0.0002273, allocations: 4 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07344/0.07368, allocations: 50.41 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.001487/0.07519, allocations: 1.268 MB / 353.8 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006705/0.07588, allocations: 462.9 kB / 354.2 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.596e-05/0.07596, allocations: 3.938 kB / 354.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.578e-05/0.07599, allocations: 0 / 354.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.07611, allocations: 15.92 kB / 354.2 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002151/0.07633, allocations: 43.16 kB / 354.3 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.973e-05/0.07642, allocations: 43.8 kB / 354.3 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.999e-05/0.07651, allocations: 15.98 kB / 354.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.057e-05/0.07658, allocations: 15.92 kB / 354.3 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.907e-05/0.07664, allocations: 19.86 kB / 354.4 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.07666, allocations: 4 kB / 354.4 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.868e-06/0.07667, allocations: 0 / 354.4 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.89e-05/0.07672, allocations: 11.98 kB / 354.4 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.869e-05/0.07677, allocations: 45.52 kB / 354.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.075e-05/0.07684, allocations: 43.86 kB / 354.5 MB, free: 1.703 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.07685, allocations: 0 / 354.5 MB, free: 1.703 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.07686, allocations: 0 / 354.5 MB, free: 1.703 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.916e-06/0.07686, allocations: 3.938 kB / 354.5 MB, free: 1.699 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003652/0.07723, allocations: 371.5 kB / 354.8 MB, free: 1.289 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.07727, allocations: 8.031 kB / 354.8 MB, free: 1.281 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.976e-05/0.07731, allocations: 12.84 kB / 354.8 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.07747, allocations: 190.9 kB / 355 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.07749, allocations: 8.375 kB / 355 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.05e-05/0.0775, allocations: 384 / 355 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002375/0.07775, allocations: 113.3 kB / 355.2 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.07777, allocations: 4 kB / 355.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.07778, allocations: 0 / 355.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.07779, allocations: 0 / 355.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.422e-05/0.07788, allocations: 27.92 kB / 355.2 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002598/0.07815, allocations: 261.8 kB / 355.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.19e-05/0.07824, allocations: 49.16 kB / 355.5 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.927e-05/0.0783, allocations: 21.77 kB / 355.5 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.07832, allocations: 0 / 355.5 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.219e-05/0.07835, allocations: 42.5 kB / 355.6 MB, free: 436 kB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.07836, allocations: 4 kB / 355.6 MB, free: 432 kB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002284/0.07859, allocations: 73.52 kB / 355.6 MB, free: 352 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.07865, allocations: 81.11 kB / 355.7 MB, free: 252 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.07876, allocations: 134.4 kB / 355.8 MB, free: 104 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.07878, allocations: 29.7 kB / 355.9 MB, free: 68 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.008e-05/0.07883, allocations: 92.12 kB / 356 MB, free: 15.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.383e-05/0.07885, allocations: 11.88 kB / 356 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/0.07888, allocations: 9.719 kB / 356 MB, free: 15.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.445e-05/0.07897, allocations: 310.8 kB / 356.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.792e-05/0.07903, allocations: 19.92 kB / 356.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.362e-05/0.07908, allocations: 21.72 kB / 356.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.489e-05/0.07917, allocations: 37.64 kB / 356.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.07918, allocations: 0 / 356.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001267/0.07931, allocations: 69.58 kB / 356.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.07933, allocations: 7.125 kB / 356.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.07934, allocations: 0 / 356.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.07935, allocations: 4 kB / 356.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.448e-05/0.07942, allocations: 4 kB / 356.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.07944, allocations: 3.984 kB / 356.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.886e-05/0.07948, allocations: 7.984 kB / 356.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.07949, allocations: 0 / 356.5 MB, free: 15.45 MB / 302.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: 0 () * 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 7.128e-05/0.07957, allocations: 121.8 kB / 356.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.804e-05/0.07963, allocations: 45.53 kB / 356.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.827e-05/0.07967, allocations: 15.86 kB / 356.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.07968, allocations: 0 / 356.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.07969, allocations: 0 / 356.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.07969, allocations: 0 / 356.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001523/0.07985, allocations: 173.6 kB / 356.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.07986, allocations: 0 / 356.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.527e-05/0.07991, allocations: 4 kB / 356.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.07992, allocations: 0 / 356.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.07993, allocations: 12.02 kB / 356.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.07994, allocations: 0 / 356.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.07994, allocations: 0 / 356.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001583/0.08011, allocations: 164.2 kB / 357 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.857e-05/0.08017, allocations: 97.06 kB / 357.1 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.08019, allocations: 0 / 357.1 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.174e-05/0.08026, allocations: 7.984 kB / 357.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.356e-05/0.08029, allocations: 0 / 357.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.0803, allocations: 0 / 357.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.716e-05/0.08037, allocations: 113.8 kB / 357.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08038, allocations: 0 / 357.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002317/0.08062, allocations: 4 kB / 357.2 MB, free: 14.6 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: 0 () * 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 6.905e-05/0.08069, allocations: 107.2 kB / 357.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001186/0.08082, allocations: 19.98 kB / 357.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.08083, allocations: 0 / 357.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.349e-05/0.08088, allocations: 15.94 kB / 357.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.08121, allocations: 27.83 kB / 357.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002963/0.08152, allocations: 215.4 kB / 357.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.08173, allocations: 0.6887 MB / 358.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.719e-05/0.08177, allocations: 11.44 kB / 358.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.08177, allocations: 0 / 358.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of Templates: time 0.001762/0.08354, allocations: 0.7021 MB / 359 MB, free: 12.74 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches