Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001203/0.001203, allocations: 116.4 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00125/0.00125, allocations: 204 kB / 19.4 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.402/1.402, allocations: 227.7 MB / 247.9 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 68.12 kB / 359.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2425, allocations: 50.53 MB / 410.2 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.002699/0.2452, allocations: 1.476 MB / 411.7 MB, free: 0 / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001951/0.2454, allocations: 28.02 kB / 411.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.672e-05/0.2455, allocations: 7.938 kB / 411.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.708e-05/0.2455, allocations: 0 / 411.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.766e-05/0.2455, allocations: 3.938 kB / 411.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002288/0.2457, allocations: 19.97 kB / 411.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.253e-05/0.2458, allocations: 31.92 kB / 411.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.957e-05/0.2459, allocations: 0 / 411.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.549e-05/0.246, allocations: 19.81 kB / 411.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.693e-05/0.246, allocations: 11.92 kB / 411.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.418e-05/0.246, allocations: 4 kB / 411.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.428e-06/0.246, allocations: 8 kB / 411.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.133e-05/0.2461, allocations: 7.938 kB / 411.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.469e-05/0.2461, allocations: 15.92 kB / 411.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.634e-05/0.2462, allocations: 27.89 kB / 411.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2462, allocations: 0 / 411.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2462, allocations: 0 / 411.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.2462, allocations: 3.938 kB / 411.9 MB, free: 15.81 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004283/0.2466, allocations: 347.2 kB / 412.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.2466, allocations: 8.031 kB / 412.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.848e-05/0.2467, allocations: 12.89 kB / 412.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/0.2469, allocations: 176.3 kB / 412.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.2469, allocations: 384 / 412.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.049e-05/0.2469, allocations: 4.375 kB / 412.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000354/0.2473, allocations: 123.8 kB / 412.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.2473, allocations: 4.172 kB / 412.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.2473, allocations: 7.938 kB / 412.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.2473, allocations: 0 / 412.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.2474, allocations: 31.91 kB / 412.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001582/0.2476, allocations: 161.6 kB / 412.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.2478, allocations: 54.48 kB / 412.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.128e-05/0.2479, allocations: 24.92 kB / 412.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.2479, allocations: 0 / 412.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.848e-05/0.2479, allocations: 38.56 kB / 412.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.91e-07/0.2479, allocations: 0 / 412.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002848/0.2482, allocations: 81.53 kB / 412.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.2483, allocations: 59.41 kB / 413 MB, free: 14.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.428e-05/0.2483, allocations: 105.8 kB / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.2484, allocations: 25.7 kB / 413.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.367e-05/0.2484, allocations: 80.14 kB / 413.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.235e-05/0.2484, allocations: 0 / 413.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.202e-05/0.2484, allocations: 25.7 kB / 413.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.2486, allocations: 318.8 kB / 413.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.149e-05/0.2486, allocations: 0 / 413.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.189e-05/0.2486, allocations: 35.42 kB / 413.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.024e-05/0.2487, allocations: 39.38 kB / 413.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.2487, allocations: 0 / 413.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.215e-05/0.2488, allocations: 65.89 kB / 413.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.2488, allocations: 4 kB / 413.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.2488, allocations: 3.938 kB / 413.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.2488, allocations: 4 kB / 413.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.14e-05/0.2489, allocations: 12 kB / 413.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.2489, allocations: 8.125 kB / 413.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.027e-05/0.2489, allocations: 7.875 kB / 413.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.2489, allocations: 4 kB / 413.7 MB, free: 13.72 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 7.644e-05/0.249, allocations: 109.8 kB / 413.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001601/0.2491, allocations: 73.59 kB / 413.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.15e-05/0.2492, allocations: 11.84 kB / 413.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.2492, allocations: 0 / 413.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.2492, allocations: 0 / 413.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2492, allocations: 4 kB / 413.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/0.2493, allocations: 161.6 kB / 414.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.2493, allocations: 3.984 kB / 414.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.058e-05/0.2493, allocations: 8 kB / 414.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.2493, allocations: 0 / 414.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.2494, allocations: 3.938 kB / 414.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2494, allocations: 0 / 414.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2494, allocations: 0 / 414.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000181/0.2495, allocations: 93.27 kB / 414.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.582e-05/0.2496, allocations: 89.06 kB / 414.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.513e-05/0.2496, allocations: 3.938 kB / 414.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.407e-05/0.2496, allocations: 4.047 kB / 414.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.107e-06/0.2496, allocations: 7.922 kB / 414.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.2496, allocations: 3.984 kB / 414.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.384e-05/0.2497, allocations: 83.28 kB / 414.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2497, allocations: 0 / 414.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001872/0.2499, allocations: 4 kB / 414.4 MB, free: 12.96 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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 (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.0001081/0.25, allocations: 102.2 kB / 414.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.2501, allocations: 39.91 kB / 414.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2501, allocations: 0 / 414.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.2501, allocations: 0 / 414.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.2504, allocations: 25.33 kB / 414.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002974/0.2507, allocations: 113.6 kB / 414.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.251, allocations: 0.6807 MB / 415.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.238e-05/0.251, allocations: 8.234 kB / 415.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.502e-05/0.2511, allocations: 19.38 kB / 415.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2511, allocations: 0 / 415.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of Templates: time 0.002672/0.2537, allocations: 433.8 kB / 415.8 MB, free: 11.5 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches