Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 198.2 kB / 18.06 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.5 MB / 245.3 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007305/0.0007307, allocations: 101.2 kB / 297.4 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002735/0.0002739, allocations: 11.98 kB / 357.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2306, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08846/0.3191, allocations: 77.84 MB / 486.5 MB, free: 13.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/0.3194, allocations: 75.95 kB / 486.6 MB, free: 13.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005815/0.3252, allocations: 2.222 MB / 488.8 MB, free: 11.51 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3252, allocations: 0 / 488.8 MB, free: 11.51 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.3253, allocations: 4 kB / 488.8 MB, free: 11.51 MB / 362.7 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.0003613/0.3256, allocations: 379.1 kB / 489.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.3257, allocations: 12.03 kB / 489.2 MB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.3258, allocations: 17.72 kB / 489.2 MB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001798/0.326, allocations: 195 kB / 489.4 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.854e-06/0.326, allocations: 8.312 kB / 489.4 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.326, allocations: 8.172 kB / 489.4 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002588/0.3263, allocations: 118.4 kB / 489.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.3263, allocations: 192 / 489.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.3263, allocations: 7.938 kB / 489.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3264, allocations: 4 kB / 489.5 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.655e-05/0.3264, allocations: 31.91 kB / 489.6 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000339/0.3268, allocations: 270.7 kB / 489.8 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.3269, allocations: 79.72 kB / 489.9 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.2e-05/0.327, allocations: 35.91 kB / 489.9 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.327, allocations: 4 kB / 489.9 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.327, allocations: 38.5 kB / 490 MB, free: 10.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.327, allocations: 0 / 490 MB, free: 10.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002449/0.3273, allocations: 89.8 kB / 490.1 MB, free: 10.03 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.3274, allocations: 110.8 kB / 490.2 MB, free: 9.895 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.3275, allocations: 141.8 kB / 490.3 MB, free: 9.746 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.3275, allocations: 29.64 kB / 490.3 MB, free: 9.711 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.319e-05/0.3275, allocations: 88.14 kB / 490.4 MB, free: 9.621 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.37e-05/0.3275, allocations: 7.984 kB / 490.4 MB, free: 9.613 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-06/0.3276, allocations: 0 / 490.4 MB, free: 9.613 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.341e-05/0.3276, allocations: 314.8 kB / 490.7 MB, free: 9.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.448e-05/0.3277, allocations: 15.98 kB / 490.8 MB, free: 9.281 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.39e-05/0.3277, allocations: 31.44 kB / 490.8 MB, free: 9.238 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.919e-05/0.3278, allocations: 55.36 kB / 490.8 MB, free: 9.172 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3279, allocations: 0 / 490.8 MB, free: 9.172 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001274/0.328, allocations: 77.45 kB / 490.9 MB, free: 9.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.328, allocations: 4 kB / 490.9 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.328, allocations: 4.125 kB / 490.9 MB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.328, allocations: 4 kB / 490.9 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.391e-05/0.3281, allocations: 15.98 kB / 491 MB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.3281, allocations: 3.938 kB / 491 MB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.928e-05/0.3282, allocations: 4 kB / 491 MB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.3282, allocations: 0 / 491 MB, free: 9.055 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.521e-05/0.3283, allocations: 125.8 kB / 491.1 MB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.276e-05/0.3283, allocations: 45.64 kB / 491.1 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.309e-05/0.3284, allocations: 23.83 kB / 491.2 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3284, allocations: 3.938 kB / 491.2 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.3284, allocations: 4 kB / 491.2 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3284, allocations: 4 kB / 491.2 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.3286, allocations: 173.5 kB / 491.3 MB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3286, allocations: 4 kB / 491.3 MB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.948e-05/0.3286, allocations: 11.98 kB / 491.3 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3286, allocations: 0 / 491.3 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.3287, allocations: 0 / 491.3 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.3287, allocations: 4 kB / 491.4 MB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3287, allocations: 4 kB / 491.4 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001693/0.3288, allocations: 185 kB / 491.5 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.433e-05/0.3289, allocations: 89 kB / 491.6 MB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.3289, allocations: 4 kB / 491.6 MB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.697e-05/0.329, allocations: 8 kB / 491.6 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.971e-05/0.329, allocations: 7.984 kB / 491.6 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.3291, allocations: 0 / 491.6 MB, free: 8.262 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.448e-05/0.3291, allocations: 110.3 kB / 491.8 MB, free: 8.156 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3291, allocations: 0 / 491.8 MB, free: 8.156 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002149/0.3294, allocations: 8 kB / 491.8 MB, free: 8.148 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.982e-05/0.3295, allocations: 99.19 kB / 491.9 MB, free: 8.039 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001344/0.3296, allocations: 39.92 kB / 491.9 MB, free: 8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3296, allocations: 4 kB / 491.9 MB, free: 7.996 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.713e-05/0.3297, allocations: 11.98 kB / 491.9 MB, free: 7.984 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.33, allocations: 28.09 kB / 491.9 MB, free: 7.957 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003664/0.3304, allocations: 236.6 kB / 492.2 MB, free: 7.684 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002065/0.3306, allocations: 0.6926 MB / 492.9 MB, free: 6.965 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.503e-05/0.3306, allocations: 11.44 kB / 492.9 MB, free: 6.953 MB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.3306, allocations: 4 kB / 492.9 MB, free: 6.949 MB / 362.7 MB Notification: Performance of Templates: time 0.001834/0.3325, allocations: 0.8002 MB / 493.7 MB, free: 6.156 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches