Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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 trunk/package.mo", uses=false) 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) 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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001242/0.001242, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.365/0.3661, allocations: 50.55 MB / 409.3 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.00337/0.3695, allocations: 1.584 MB / 410.8 MB, free: 40 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.3706, allocations: 0.5259 MB / 411.4 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.85e-05/0.3707, allocations: 4 kB / 411.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.723e-05/0.3708, allocations: 7.938 kB / 411.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001866/0.371, allocations: 7.875 kB / 411.4 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003289/0.3713, allocations: 55.81 kB / 411.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00016/0.3715, allocations: 39.86 kB / 411.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.3717, allocations: 23.97 kB / 411.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.3718, allocations: 27.86 kB / 411.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.644e-05/0.3719, allocations: 27.86 kB / 411.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.3719, allocations: 0 / 411.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.652e-05/0.372, allocations: 8 kB / 411.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.098e-05/0.3721, allocations: 15.92 kB / 411.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.459e-05/0.3721, allocations: 27.8 kB / 411.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002076/0.3723, allocations: 51.61 kB / 411.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3724, allocations: 0 / 411.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3724, allocations: 0 / 411.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.3724, allocations: 0 / 411.7 MB, free: 15.22 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006315/0.373, allocations: 395 kB / 412 MB, free: 14.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.3731, allocations: 8.031 kB / 412 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.3733, allocations: 24.81 kB / 412.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004096/0.3737, allocations: 194.4 kB / 412.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.3737, allocations: 4.375 kB / 412.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.3738, allocations: 4.375 kB / 412.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003705/0.3741, allocations: 121.3 kB / 412.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.3742, allocations: 0 / 412.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.3742, allocations: 3.984 kB / 412.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.3742, allocations: 4 kB / 412.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.64e-05/0.3743, allocations: 23.92 kB / 412.4 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004177/0.3747, allocations: 265.8 kB / 412.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002477/0.375, allocations: 142.2 kB / 412.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.639e-05/0.375, allocations: 33.77 kB / 412.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.891e-05/0.3751, allocations: 0 / 412.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.3751, allocations: 42.56 kB / 412.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.71e-07/0.3751, allocations: 0 / 412.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002919/0.3754, allocations: 81.56 kB / 413 MB, free: 13.69 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.116e-05/0.3755, allocations: 81.09 kB / 413.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.3757, allocations: 134.2 kB / 413.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.3757, allocations: 25.83 kB / 413.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.102e-05/0.3758, allocations: 100.1 kB / 413.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.3758, allocations: 7.938 kB / 413.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.331e-05/0.3758, allocations: 13.72 kB / 413.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.376, allocations: 318.8 kB / 413.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.284e-05/0.376, allocations: 11.92 kB / 413.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.187e-05/0.3761, allocations: 39.36 kB / 413.7 MB, free: 12.9 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.903e-05/0.3762, allocations: 51.3 kB / 413.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3762, allocations: 4 kB / 413.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001411/0.3764, allocations: 69.61 kB / 413.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.3764, allocations: 11.98 kB / 413.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3764, allocations: 0 / 413.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.3764, allocations: 0 / 413.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.175e-05/0.3765, allocations: 8 kB / 413.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3765, allocations: 4 kB / 413.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.66e-05/0.3765, allocations: 0 / 413.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.3766, allocations: 7.984 kB / 413.8 MB, free: 12.73 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 9.913e-05/0.3767, allocations: 125.7 kB / 414 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.752e-05/0.3767, allocations: 57.67 kB / 414 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.262e-05/0.3768, allocations: 12.25 kB / 414 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3768, allocations: 0 / 414 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3768, allocations: 0 / 414 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.3768, allocations: 0 / 414 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002003/0.377, allocations: 177.6 kB / 414.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.377, allocations: 0 / 414.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.035e-05/0.3771, allocations: 8 kB / 414.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3771, allocations: 0 / 414.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.3771, allocations: 0 / 414.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.434e-05/0.3771, allocations: 8 kB / 414.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3772, allocations: 0 / 414.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002448/0.3774, allocations: 176.2 kB / 414.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.69e-05/0.3775, allocations: 89.05 kB / 414.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.395e-05/0.3775, allocations: 7.984 kB / 414.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.469e-05/0.3776, allocations: 4 kB / 414.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/0.3777, allocations: 4.375 kB / 414.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.3777, allocations: 0 / 414.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.925e-05/0.3778, allocations: 114 kB / 414.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3778, allocations: 0 / 414.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002286/0.378, allocations: 4 kB / 414.6 MB, free: 11.85 MB / 334.1 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 (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.0001672/0.3782, allocations: 95.25 kB / 414.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001819/0.3784, allocations: 36.11 kB / 414.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3784, allocations: 8 kB / 414.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.862e-05/0.3784, allocations: 7.984 kB / 414.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003645/0.3788, allocations: 43.81 kB / 414.8 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004141/0.3792, allocations: 167.4 kB / 415 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.3796, allocations: 0.6924 MB / 415.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.444e-05/0.3797, allocations: 4.062 kB / 415.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.738e-05/0.3797, allocations: 11.44 kB / 415.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.3797, allocations: 0 / 415.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of Templates: time 0.003429/0.3831, allocations: 0.5332 MB / 416.2 MB, free: 10.2 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches