Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009571/0.0009571, allocations: 202.7 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.17/1.17, allocations: 227.2 MB / 245 MB, free: 7.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008594/0.0008594, allocations: 95.73 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002099/0.0002101, allocations: 4 kB / 357.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.178, allocations: 51.48 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08121/0.2592, allocations: 77.89 MB / 487.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.2595, allocations: 83.88 kB / 487.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003334/0.2628, allocations: 1.423 MB / 488.8 MB, free: 11.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2628, allocations: 0 / 488.8 MB, free: 11.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.2628, allocations: 0 / 488.8 MB, free: 11.25 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003683/0.2632, allocations: 375 kB / 489.2 MB, free: 10.83 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.2633, allocations: 12.03 kB / 489.2 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.286e-05/0.2633, allocations: 7.906 kB / 489.2 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.2635, allocations: 193.3 kB / 489.4 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.2635, allocations: 8 kB / 489.4 MB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.359e-05/0.2635, allocations: 4 kB / 489.4 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003127/0.2638, allocations: 168.8 kB / 489.6 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.2639, allocations: 3.938 kB / 489.6 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.2639, allocations: 7.938 kB / 489.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.2639, allocations: 0 / 489.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001089/0.264, allocations: 43.97 kB / 489.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003906/0.2644, allocations: 373.8 kB / 490 MB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/0.2646, allocations: 119.9 kB / 490.1 MB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.2647, allocations: 160 / 490.1 MB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.2647, allocations: 42.61 kB / 490.1 MB, free: 9.719 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.2647, allocations: 0 / 490.1 MB, free: 9.719 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003067/0.265, allocations: 125.4 kB / 490.3 MB, free: 9.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/0.2651, allocations: 110.8 kB / 490.4 MB, free: 9.457 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.767e-05/0.2652, allocations: 121.2 kB / 490.5 MB, free: 9.328 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.2652, allocations: 33.95 kB / 490.5 MB, free: 9.289 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.112e-05/0.2653, allocations: 92.08 kB / 490.6 MB, free: 9.195 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.576e-05/0.2653, allocations: 7.891 kB / 490.6 MB, free: 9.188 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-06/0.2653, allocations: 4 kB / 490.6 MB, free: 9.184 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.999e-05/0.2654, allocations: 314.8 kB / 490.9 MB, free: 8.867 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.951e-05/0.2654, allocations: 15.98 kB / 490.9 MB, free: 8.852 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.602e-05/0.2655, allocations: 79.59 kB / 491 MB, free: 8.746 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.008e-05/0.2656, allocations: 31.98 kB / 491 MB, free: 8.715 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-06/0.2656, allocations: 3.953 kB / 491 MB, free: 8.711 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000176/0.2658, allocations: 105.4 kB / 491.2 MB, free: 8.602 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.2658, allocations: 8.281 kB / 491.2 MB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.2658, allocations: 4 kB / 491.2 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.2658, allocations: 4 kB / 491.2 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.244e-05/0.2659, allocations: 23.92 kB / 491.2 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.034e-06/0.2659, allocations: 4 kB / 491.2 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.673e-05/0.266, allocations: 4 kB / 491.2 MB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.266, allocations: 8 kB / 491.2 MB, free: 8.547 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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 8.599e-05/0.2661, allocations: 125.8 kB / 491.3 MB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.2662, allocations: 77.55 kB / 491.4 MB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.356e-05/0.2663, allocations: 16.72 kB / 491.4 MB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.2663, allocations: 4 kB / 491.4 MB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.2663, allocations: 3.984 kB / 491.4 MB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2663, allocations: 0 / 491.4 MB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002201/0.2665, allocations: 193.5 kB / 491.6 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2665, allocations: 0 / 491.6 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.732e-05/0.2666, allocations: 27.89 kB / 491.6 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.2666, allocations: 0 / 491.6 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.2666, allocations: 11.92 kB / 491.7 MB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.2666, allocations: 4 kB / 491.7 MB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2666, allocations: 4 kB / 491.7 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000344/0.267, allocations: 336.1 kB / 492 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.591e-05/0.2671, allocations: 93 kB / 492.1 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.2671, allocations: 7.953 kB / 492.1 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.485e-05/0.2672, allocations: 3.984 kB / 492.1 MB, free: 7.535 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.908e-05/0.2672, allocations: 11.94 kB / 492.1 MB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.2673, allocations: 4 kB / 492.1 MB, free: 7.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.056e-05/0.2673, allocations: 109.8 kB / 492.2 MB, free: 7.414 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2673, allocations: 0 / 492.2 MB, free: 7.414 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002516/0.2676, allocations: 12 kB / 492.2 MB, free: 7.402 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 (10): * Single equations (assignments): 10 * 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.266e-05/0.2677, allocations: 102.9 kB / 492.3 MB, free: 7.297 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000162/0.2679, allocations: 60.12 kB / 492.4 MB, free: 7.238 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.2679, allocations: 0.5625 kB / 492.4 MB, free: 7.238 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.014e-05/0.2679, allocations: 16 kB / 492.4 MB, free: 7.223 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.2682, allocations: 57.22 kB / 492.5 MB, free: 7.172 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003379/0.2685, allocations: 223 kB / 492.7 MB, free: 6.918 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002529/0.2688, allocations: 0.7004 MB / 493.4 MB, free: 6.191 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.045e-05/0.2688, allocations: 4.672 kB / 493.4 MB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.628e-05/0.2689, allocations: 15.42 kB / 493.4 MB, free: 6.168 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2689, allocations: 0 / 493.4 MB, free: 6.168 MB / 362.7 MB Notification: Performance of Templates: time 0.002308/0.2712, allocations: 0.5833 MB / 494 MB, free: 5.59 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches