Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001694/0.001694, 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.506/1.506, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001106/0.001106, allocations: 100.6 kB / 296.7 MB, free: 6.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001102, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2586, allocations: 50.46 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.002671/0.2613, allocations: 1.916 MB / 409 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009544/0.2623, allocations: 0.7153 MB / 409.7 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.912e-05/0.2624, allocations: 4 kB / 409.7 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.2626, allocations: 11.86 kB / 409.7 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.2627, allocations: 23.86 kB / 409.7 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003987/0.2631, allocations: 137.5 kB / 409.9 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000144/0.2632, allocations: 135.6 kB / 410 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.2634, allocations: 65.48 kB / 410.1 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.2635, allocations: 51.72 kB / 410.1 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.369e-05/0.2636, allocations: 59.69 kB / 410.2 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.539e-05/0.2636, allocations: 4 kB / 410.2 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.189e-05/0.2637, allocations: 55.89 kB / 410.2 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.798e-05/0.2638, allocations: 27.91 kB / 410.3 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.503e-05/0.2639, allocations: 67.53 kB / 410.3 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.264, allocations: 191.3 kB / 410.5 MB, free: 24.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2641, allocations: 3.984 kB / 410.5 MB, free: 24.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2641, allocations: 0 / 410.5 MB, free: 24.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.2641, allocations: 0 / 410.5 MB, free: 24.37 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0006182/0.2647, allocations: 472.4 kB / 411 MB, free: 23.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.2647, allocations: 12.03 kB / 411 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.2649, allocations: 32.67 kB / 411 MB, free: 23.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002159/0.2651, allocations: 240.9 kB / 411.2 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.2651, allocations: 8.562 kB / 411.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.609e-05/0.2652, allocations: 16.12 kB / 411.3 MB, free: 23.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005248/0.2657, allocations: 321.5 kB / 411.6 MB, free: 23.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.2657, allocations: 0 / 411.6 MB, free: 23.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.2657, allocations: 4 kB / 411.6 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.2657, allocations: 0 / 411.6 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.2659, allocations: 91.88 kB / 411.7 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003107/0.2663, allocations: 341.5 kB / 412 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003897/0.2667, allocations: 270.1 kB / 412.3 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.2668, allocations: 101.7 kB / 412.4 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004847/0.2673, allocations: 0.5817 MB / 413 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.783e-05/0.2674, allocations: 42.78 kB / 413 MB, free: 21.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.573e-06/0.2674, allocations: 0 / 413 MB, free: 21.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0004855/0.2679, allocations: 233.2 kB / 413.2 MB, free: 21.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/0.2679, allocations: 122.7 kB / 413.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.2681, allocations: 194.4 kB / 413.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.2681, allocations: 33.69 kB / 413.6 MB, free: 20.92 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.206e-05/0.2681, allocations: 104.5 kB / 413.7 MB, free: 20.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.2682, allocations: 19.89 kB / 413.7 MB, free: 20.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.433e-05/0.2682, allocations: 45.61 kB / 413.7 MB, free: 20.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.94e-05/0.2683, allocations: 322.8 kB / 414.1 MB, free: 20.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.777e-05/0.2683, allocations: 39.97 kB / 414.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.2685, allocations: 168.1 kB / 414.3 MB, free: 20.15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001536/0.2686, allocations: 208.1 kB / 414.5 MB, free: 19.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2686, allocations: 0 / 414.5 MB, free: 19.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.00025/0.2689, allocations: 217 kB / 414.7 MB, free: 19.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.2689, allocations: 8 kB / 414.7 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.2689, allocations: 4 kB / 414.7 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.2689, allocations: 4 kB / 414.7 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.2691, allocations: 47.91 kB / 414.7 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.2691, allocations: 12.53 kB / 414.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.571e-05/0.2692, allocations: 15.91 kB / 414.8 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.2692, allocations: 12 kB / 414.8 MB, free: 19.57 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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 9.39e-05/0.2693, allocations: 157.6 kB / 414.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002432/0.2695, allocations: 160.2 kB / 415.1 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002946/0.2698, allocations: 188.2 kB / 415.3 MB, free: 19.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.2699, allocations: 8 kB / 415.3 MB, free: 19.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2699, allocations: 0 / 415.3 MB, free: 19.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.2699, allocations: 3.938 kB / 415.3 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001548/0.27, allocations: 229.4 kB / 415.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.2701, allocations: 3.938 kB / 415.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.2702, allocations: 31.98 kB / 415.5 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2702, allocations: 0 / 415.5 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.2702, allocations: 7.984 kB / 415.5 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2702, allocations: 4 kB / 415.5 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2702, allocations: 0 / 415.5 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005562/0.2708, allocations: 0.9221 MB / 416.5 MB, free: 17.74 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.922e-05/0.2709, allocations: 120.7 kB / 416.6 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.923e-05/0.2709, allocations: 12 kB / 416.6 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.271, allocations: 11.98 kB / 416.6 MB, free: 17.58 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.2711, allocations: 4 kB / 416.6 MB, free: 17.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.2711, allocations: 7.938 kB / 416.6 MB, free: 17.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.127e-05/0.2712, allocations: 140.4 kB / 416.8 MB, free: 17.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.382e-06/0.2712, allocations: 0 / 416.8 MB, free: 17.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003819/0.2716, allocations: 43.88 kB / 416.8 MB, free: 17.39 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: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 0.0001679/0.2717, allocations: 116 kB / 416.9 MB, free: 17.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002708/0.272, allocations: 143.7 kB / 417.1 MB, free: 17.13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.272, allocations: 1.188 kB / 417.1 MB, free: 17.13 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.322e-05/0.2721, allocations: 4 kB / 417.1 MB, free: 17.12 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005483/0.2726, allocations: 148.6 kB / 417.2 MB, free: 16.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006236/0.2733, allocations: 0.5441 MB / 417.8 MB, free: 16.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/0.2734, allocations: 0.7402 MB / 418.5 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.352e-05/0.2735, allocations: 21.53 kB / 418.5 MB, free: 15.6 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.416e-05/0.2735, allocations: 19.38 kB / 418.5 MB, free: 15.59 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2735, allocations: 0 / 418.5 MB, free: 15.59 MB / 298.7 MB Notification: Performance of Templates: time 0.004277/0.2778, allocations: 2.3 MB / 420.8 MB, free: 13.3 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches