Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009565/0.0009565, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 226.6 MB / 244.3 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008115/0.0008114, allocations: 101.6 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003957/0.0003959, allocations: 11.92 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2764, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.001454/0.2779, allocations: 1.261 MB / 408.8 MB, free: 26.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006996/0.2786, allocations: 483.1 kB / 409.2 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.33e-05/0.2787, allocations: 4 kB / 409.2 MB, free: 26.08 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.871e-05/0.2788, allocations: 3.938 kB / 409.2 MB, free: 26.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.2789, allocations: 15.92 kB / 409.3 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002549/0.2791, allocations: 35.91 kB / 409.3 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.398e-05/0.2792, allocations: 35.8 kB / 409.3 MB, free: 25.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.854e-05/0.2793, allocations: 12.55 kB / 409.3 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.2794, allocations: 21.19 kB / 409.4 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.028e-05/0.2795, allocations: 19.91 kB / 409.4 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.2795, allocations: 0 / 409.4 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.834e-05/0.2796, allocations: 8.625 kB / 409.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.623e-05/0.2796, allocations: 13.83 kB / 409.4 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.782e-05/0.2796, allocations: 33.7 kB / 409.4 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.728e-05/0.2797, allocations: 27.94 kB / 409.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2797, allocations: 0 / 409.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.123e-06/0.2797, allocations: 0 / 409.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.2797, allocations: 0 / 409.5 MB, free: 25.86 MB / 298.7 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.0003369/0.2801, allocations: 361.4 kB / 409.8 MB, free: 25.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.2801, allocations: 10 kB / 409.8 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/0.2803, allocations: 27.81 kB / 409.9 MB, free: 25.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.2804, allocations: 186.9 kB / 410 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.2804, allocations: 7.75 kB / 410 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.2804, allocations: 0 / 410 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002084/0.2807, allocations: 97 kB / 410.1 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.2807, allocations: 0 / 410.1 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.2807, allocations: 0 / 410.1 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.2807, allocations: 0 / 410.1 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.488e-05/0.2808, allocations: 25.55 kB / 410.2 MB, free: 25.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002308/0.281, allocations: 273.6 kB / 410.4 MB, free: 24.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.709e-05/0.2811, allocations: 45.22 kB / 410.5 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.269e-05/0.2811, allocations: 21.77 kB / 410.5 MB, free: 24.65 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.2812, allocations: 4 kB / 410.5 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.578e-05/0.2812, allocations: 38.5 kB / 410.5 MB, free: 24.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.2812, allocations: 0 / 410.5 MB, free: 24.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002189/0.2814, allocations: 69.83 kB / 410.6 MB, free: 24.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.2815, allocations: 81.14 kB / 410.7 MB, free: 24.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.232e-05/0.2816, allocations: 144.3 kB / 410.8 MB, free: 24.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.999e-06/0.2816, allocations: 29.69 kB / 410.9 MB, free: 24.24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.512e-05/0.2816, allocations: 88.14 kB / 410.9 MB, free: 24.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.053e-05/0.2816, allocations: 0 / 410.9 MB, free: 24.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.896e-06/0.2816, allocations: 0 / 410.9 MB, free: 24.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.837e-05/0.2817, allocations: 314.8 kB / 411.3 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.001e-05/0.2817, allocations: 15.98 kB / 411.3 MB, free: 23.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.562e-05/0.2818, allocations: 21.72 kB / 411.3 MB, free: 23.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.082e-05/0.2818, allocations: 11.98 kB / 411.3 MB, free: 23.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2818, allocations: 0 / 411.3 MB, free: 23.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001043/0.282, allocations: 69.55 kB / 411.4 MB, free: 23.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.282, allocations: 4 kB / 411.4 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.282, allocations: 7.938 kB / 411.4 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.282, allocations: 0 / 411.4 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.345e-05/0.2821, allocations: 7.984 kB / 411.4 MB, free: 23.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.2821, allocations: 0 / 411.4 MB, free: 23.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.565e-05/0.2821, allocations: 4 kB / 411.4 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.2821, allocations: 0 / 411.4 MB, free: 23.68 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.408e-05/0.2822, allocations: 121.9 kB / 411.5 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.448e-05/0.2822, allocations: 41.59 kB / 411.5 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.632e-05/0.2823, allocations: 11.88 kB / 411.6 MB, free: 23.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.2823, allocations: 0 / 411.6 MB, free: 23.49 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2823, allocations: 0 / 411.6 MB, free: 23.49 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.2823, allocations: 3.984 kB / 411.6 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001114/0.2824, allocations: 169.6 kB / 411.7 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2824, allocations: 0 / 411.7 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.445e-05/0.2825, allocations: 12.02 kB / 411.7 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2825, allocations: 15.89 kB / 411.8 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.2825, allocations: 0 / 411.8 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2825, allocations: 0 / 411.8 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2825, allocations: 0 / 411.8 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001491/0.2827, allocations: 168.3 kB / 411.9 MB, free: 23.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.713e-05/0.2827, allocations: 89 kB / 412 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.2827, allocations: 3.953 kB / 412 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.246e-05/0.2828, allocations: 4 kB / 412 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.949e-05/0.2828, allocations: 0 / 412 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.2828, allocations: 0 / 412 MB, free: 22.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.776e-05/0.2829, allocations: 110.1 kB / 412.1 MB, free: 22.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2829, allocations: 0 / 412.1 MB, free: 22.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001934/0.2831, allocations: 4 kB / 412.1 MB, free: 22.84 MB / 298.7 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 (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 8.064e-05/0.2832, allocations: 111.2 kB / 412.2 MB, free: 22.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001251/0.2833, allocations: 27.92 kB / 412.3 MB, free: 22.69 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2833, allocations: 0 / 412.3 MB, free: 22.69 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.654e-05/0.2834, allocations: 11.98 kB / 412.3 MB, free: 22.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.2837, allocations: 10.55 kB / 412.3 MB, free: 22.67 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002719/0.284, allocations: 211.2 kB / 412.5 MB, free: 22.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.2841, allocations: 0.6887 MB / 413.2 MB, free: 21.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.784e-05/0.2841, allocations: 15.42 kB / 413.2 MB, free: 21.7 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2841, allocations: 4 kB / 413.2 MB, free: 21.69 MB / 298.7 MB Notification: Performance of Templates: time 0.001935/0.2861, allocations: 0.6529 MB / 413.9 MB, free: 21.04 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches