Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001423/0.001423, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001357/0.001357, allocations: 96.5 kB / 296.7 MB, free: 6.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009888/0.000989, allocations: 51.92 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2923, allocations: 50.46 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.002358/0.2947, allocations: 1.611 MB / 408.7 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007255/0.2955, allocations: 0.4965 MB / 409.2 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.787e-05/0.2955, allocations: 3.938 kB / 409.2 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.121e-05/0.2956, allocations: 0 / 409.2 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.2957, allocations: 11.92 kB / 409.2 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002315/0.296, allocations: 45.14 kB / 409.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.653e-05/0.2961, allocations: 43.73 kB / 409.3 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.2962, allocations: 15.97 kB / 409.3 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.2963, allocations: 19.92 kB / 409.3 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.822e-05/0.2963, allocations: 15.92 kB / 409.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.2964, allocations: 4 kB / 409.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.247e-05/0.2964, allocations: 8 kB / 409.3 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.797e-05/0.2965, allocations: 15.91 kB / 409.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.729e-05/0.2965, allocations: 19.81 kB / 409.4 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.2966, allocations: 43.83 kB / 409.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2966, allocations: 0 / 409.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.2966, allocations: 0 / 409.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.2966, allocations: 4 kB / 409.4 MB, free: 25.45 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.0003861/0.297, allocations: 364.8 kB / 409.8 MB, free: 25.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2971, allocations: 12.59 kB / 409.8 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.2972, allocations: 20.83 kB / 409.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.2974, allocations: 198.9 kB / 410 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.2974, allocations: 4.375 kB / 410 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.522e-05/0.2974, allocations: 4.312 kB / 410 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002104/0.2976, allocations: 97.36 kB / 410.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.2977, allocations: 4 kB / 410.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.2977, allocations: 4 kB / 410.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.2977, allocations: 0 / 410.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.976e-05/0.2978, allocations: 15.98 kB / 410.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002297/0.298, allocations: 261.8 kB / 410.4 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.584e-05/0.2981, allocations: 45.16 kB / 410.4 MB, free: 24.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.208e-05/0.2981, allocations: 21.77 kB / 410.4 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.2981, allocations: 4 kB / 410.4 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.563e-05/0.2982, allocations: 34.5 kB / 410.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.2982, allocations: 0 / 410.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002099/0.2984, allocations: 69.58 kB / 410.5 MB, free: 24.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.848e-05/0.2984, allocations: 85.05 kB / 410.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.972e-05/0.2985, allocations: 133.8 kB / 410.8 MB, free: 23.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.873e-06/0.2985, allocations: 25.7 kB / 410.8 MB, free: 23.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.633e-05/0.2986, allocations: 88.12 kB / 410.9 MB, free: 23.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.229e-05/0.2986, allocations: 7.906 kB / 410.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.443e-05/0.2986, allocations: 13.97 kB / 410.9 MB, free: 23.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.925e-05/0.2986, allocations: 326.8 kB / 411.2 MB, free: 23.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.537e-05/0.2987, allocations: 7.984 kB / 411.2 MB, free: 23.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.152e-05/0.2987, allocations: 21.7 kB / 411.2 MB, free: 23.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.356e-05/0.2988, allocations: 21.72 kB / 411.3 MB, free: 23.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2988, allocations: 8 kB / 411.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.354e-05/0.2989, allocations: 53.67 kB / 411.3 MB, free: 23.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.2989, allocations: 11.94 kB / 411.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.2989, allocations: 3.984 kB / 411.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.2989, allocations: 0 / 411.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.1e-05/0.299, allocations: 4 kB / 411.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.299, allocations: 0 / 411.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.319e-05/0.2991, allocations: 15.89 kB / 411.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.2991, allocations: 8 kB / 411.4 MB, free: 23.23 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.494e-05/0.2991, allocations: 119.2 kB / 411.5 MB, free: 23.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.529e-05/0.2992, allocations: 41.69 kB / 411.5 MB, free: 23.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.472e-05/0.2992, allocations: 7.875 kB / 411.5 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2992, allocations: 0 / 411.5 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.2992, allocations: 3.938 kB / 411.5 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.2992, allocations: 0 / 411.5 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001092/0.2994, allocations: 177.6 kB / 411.7 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2994, allocations: 0 / 411.7 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.818e-05/0.2994, allocations: 8.031 kB / 411.7 MB, free: 22.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2994, allocations: 3.984 kB / 411.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.621e-06/0.2994, allocations: 0 / 411.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.2994, allocations: 0 / 411.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2994, allocations: 4 kB / 411.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000256/0.2997, allocations: 0.7324 MB / 412.5 MB, free: 22.01 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.469e-05/0.2997, allocations: 89 kB / 412.5 MB, free: 21.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.2998, allocations: 0 / 412.5 MB, free: 21.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.022e-05/0.2998, allocations: 0 / 412.5 MB, free: 21.9 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.939e-05/0.2999, allocations: 7.938 kB / 412.6 MB, free: 21.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.2999, allocations: 0 / 412.6 MB, free: 21.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.293e-05/0.2999, allocations: 110.1 kB / 412.7 MB, free: 21.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2999, allocations: 0 / 412.7 MB, free: 21.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003005/0.3002, allocations: 8 kB / 412.7 MB, free: 21.78 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.05e-05/0.3003, allocations: 103.2 kB / 412.8 MB, free: 21.67 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001031/0.3004, allocations: 19.98 kB / 412.8 MB, free: 21.65 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.3004, allocations: 0 / 412.8 MB, free: 21.65 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.279e-05/0.3005, allocations: 15.92 kB / 412.8 MB, free: 21.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.3008, allocations: 12.03 kB / 412.8 MB, free: 21.62 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003075/0.3011, allocations: 272.2 kB / 413.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.3013, allocations: 0.6848 MB / 413.8 MB, free: 20.61 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.595e-05/0.3013, allocations: 7.984 kB / 413.8 MB, free: 20.6 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.457e-05/0.3013, allocations: 11.44 kB / 413.8 MB, free: 20.59 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3013, allocations: 0 / 413.8 MB, free: 20.59 MB / 298.7 MB Notification: Performance of Templates: time 0.002013/0.3033, allocations: 445.8 kB / 414.2 MB, free: 20.16 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches