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.00116/0.00116, allocations: 110.9 kB / 17.74 MB, free: 5.359 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.001104/0.001104, allocations: 192.5 kB / 18.67 MB, free: 4.434 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.395/1.395, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 47.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3416, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002714/0.3443, allocations: 1.548 MB / 402.9 MB, free: 7.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008241/0.3452, allocations: 470.8 kB / 403.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.067e-05/0.3453, allocations: 7.938 kB / 403.4 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.284e-05/0.3454, allocations: 7.922 kB / 403.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001426/0.3455, allocations: 7.938 kB / 403.4 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002739/0.3458, allocations: 51.77 kB / 403.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.3459, allocations: 47.78 kB / 403.5 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.346, allocations: 19.98 kB / 403.5 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.95e-05/0.3461, allocations: 19.92 kB / 403.6 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.345e-05/0.3462, allocations: 19.86 kB / 403.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.039e-05/0.3462, allocations: 4 kB / 403.6 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.327e-05/0.3462, allocations: 4 kB / 403.6 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.991e-05/0.3463, allocations: 11.98 kB / 403.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.907e-05/0.3463, allocations: 31.73 kB / 403.6 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.3464, allocations: 51.81 kB / 403.7 MB, free: 6.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3464, allocations: 0 / 403.7 MB, free: 6.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3464, allocations: 3.938 kB / 403.7 MB, free: 6.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.3465, allocations: 0 / 403.7 MB, free: 6.582 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004566/0.3469, allocations: 368.3 kB / 404 MB, free: 6.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.347, allocations: 12.03 kB / 404.1 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.169e-05/0.347, allocations: 16.78 kB / 404.1 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.3472, allocations: 204 kB / 404.3 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.742e-06/0.3473, allocations: 384 / 404.3 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.3473, allocations: 4.375 kB / 404.3 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000254/0.3475, allocations: 113.3 kB / 404.4 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.3476, allocations: 0 / 404.4 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.789e-06/0.3476, allocations: 0 / 404.4 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3476, allocations: 0 / 404.4 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.343e-05/0.3477, allocations: 23.92 kB / 404.4 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002927/0.348, allocations: 261.8 kB / 404.7 MB, free: 5.449 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.12e-05/0.348, allocations: 41.16 kB / 404.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.216e-05/0.3481, allocations: 25.77 kB / 404.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.3481, allocations: 0 / 404.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.843e-05/0.3481, allocations: 34.56 kB / 404.8 MB, free: 5.316 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 7.71e-07/0.3482, allocations: 0 / 404.8 MB, free: 5.316 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002442/0.3484, allocations: 73.5 kB / 404.8 MB, free: 5.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.746e-05/0.3485, allocations: 77.11 kB / 404.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.3486, allocations: 142.1 kB / 405.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.3486, allocations: 33.95 kB / 405.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.851e-05/0.3486, allocations: 84.14 kB / 405.2 MB, free: 4.867 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.3487, allocations: 3.906 kB / 405.2 MB, free: 4.863 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.3487, allocations: 13.72 kB / 405.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.3488, allocations: 318.8 kB / 405.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.192e-05/0.3489, allocations: 11.94 kB / 405.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.702e-05/0.3489, allocations: 21.7 kB / 405.5 MB, free: 4.484 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.638e-05/0.349, allocations: 37.7 kB / 405.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.349, allocations: 0 / 405.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001084/0.3491, allocations: 57.56 kB / 405.6 MB, free: 4.379 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.3491, allocations: 4 kB / 405.6 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.3491, allocations: 4 kB / 405.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.3492, allocations: 4 kB / 405.6 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.629e-05/0.3492, allocations: 11.98 kB / 405.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.3493, allocations: 3.984 kB / 405.6 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.418e-05/0.3493, allocations: 4 kB / 405.7 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.3493, allocations: 0 / 405.7 MB, free: 4.348 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: 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 6.984e-05/0.3494, allocations: 121.8 kB / 405.8 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.907e-05/0.3494, allocations: 41.55 kB / 405.8 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.755e-05/0.3495, allocations: 11.88 kB / 405.8 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3495, allocations: 0 / 405.8 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.3495, allocations: 4.031 kB / 405.8 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.3495, allocations: 0 / 405.8 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001546/0.3497, allocations: 169.5 kB / 406 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3497, allocations: 4 kB / 406 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.395e-05/0.3497, allocations: 11.98 kB / 406 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3497, allocations: 0 / 406 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.3497, allocations: 0 / 406 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3497, allocations: 0 / 406 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3498, allocations: 4 kB / 406 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001549/0.3499, allocations: 168.2 kB / 406.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.36e-05/0.35, allocations: 93 kB / 406.3 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.35, allocations: 4 kB / 406.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.19e-05/0.3501, allocations: 0 / 406.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.755e-05/0.3501, allocations: 0 / 406.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-06/0.3501, allocations: 4 kB / 406.3 MB, free: 3.617 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.614e-05/0.3502, allocations: 114 kB / 406.4 MB, free: 3.508 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3502, allocations: 0 / 406.4 MB, free: 3.508 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002104/0.3504, allocations: 4 kB / 406.4 MB, free: 3.504 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: 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 8.839e-05/0.3505, allocations: 99.98 kB / 406.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001195/0.3506, allocations: 19.98 kB / 406.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3506, allocations: 7.938 kB / 406.5 MB, free: 3.371 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.584e-05/0.3507, allocations: 12.11 kB / 406.5 MB, free: 3.359 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.351, allocations: 20.02 kB / 406.5 MB, free: 3.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002884/0.3513, allocations: 189.3 kB / 406.7 MB, free: 3.121 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002141/0.3515, allocations: 0.6883 MB / 407.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.3e-05/0.3515, allocations: 19.36 kB / 407.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3515, allocations: 3.938 kB / 407.4 MB, free: 2.383 MB / 318.1 MB Notification: Performance of Templates: time 0.001866/0.3534, allocations: 0.7295 MB / 408.2 MB, free: 1.66 MB / 318.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