Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001477/0.001477, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001724/0.001724, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001354, allocations: 55.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3889/0.3903, allocations: 50.54 MB / 409.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.003785/0.3941, allocations: 1.876 MB / 411.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.3956, allocations: 0.6896 MB / 411.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002104/0.3958, allocations: 7.938 kB / 411.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001801/0.3961, allocations: 19.8 kB / 411.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001672/0.3962, allocations: 23.78 kB / 411.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004999/0.3967, allocations: 115.7 kB / 412 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002767/0.397, allocations: 147.5 kB / 412.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.3972, allocations: 57.72 kB / 412.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.3974, allocations: 59.7 kB / 412.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.3975, allocations: 59.64 kB / 412.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.3976, allocations: 12 kB / 412.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.827e-05/0.3976, allocations: 16 kB / 412.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.191e-05/0.3977, allocations: 31.84 kB / 412.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.952e-05/0.3978, allocations: 67.55 kB / 412.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002804/0.3981, allocations: 139.2 kB / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3981, allocations: 0 / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3981, allocations: 0 / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.3981, allocations: 0 / 412.5 MB, free: 14.33 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006826/0.3988, allocations: 466.7 kB / 413 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.3989, allocations: 12.02 kB / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002083/0.3991, allocations: 24.84 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004042/0.3995, allocations: 257 kB / 413.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.3995, allocations: 16.06 kB / 413.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.965e-05/0.3996, allocations: 8 kB / 413.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006164/0.4002, allocations: 282.2 kB / 413.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.4002, allocations: 0 / 413.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.4002, allocations: 0 / 413.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.4002, allocations: 4 kB / 413.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000229/0.4005, allocations: 79.86 kB / 413.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005962/0.4011, allocations: 427.5 kB / 414.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005662/0.4017, allocations: 298.1 kB / 414.4 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002167/0.4019, allocations: 112.3 kB / 414.5 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.4019, allocations: 0 / 414.5 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.852e-05/0.402, allocations: 38.5 kB / 414.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.413e-06/0.402, allocations: 0 / 414.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006599/0.4026, allocations: 225.2 kB / 414.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001637/0.4028, allocations: 187.9 kB / 414.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002314/0.4031, allocations: 182.3 kB / 415.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.4031, allocations: 29.7 kB / 415.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.826e-05/0.4032, allocations: 104.5 kB / 415.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.852e-05/0.4032, allocations: 24.25 kB / 415.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.4033, allocations: 33.72 kB / 415.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.4035, allocations: 326.8 kB / 415.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.945e-05/0.4036, allocations: 19.98 kB / 415.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.4038, allocations: 134.4 kB / 415.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003004/0.4041, allocations: 161.6 kB / 415.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.4041, allocations: 0 / 415.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000318/0.4044, allocations: 169.2 kB / 416.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.4045, allocations: 11.94 kB / 416.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.4045, allocations: 4 kB / 416.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.4045, allocations: 7.984 kB / 416.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.4047, allocations: 32.42 kB / 416.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.4047, allocations: 8 kB / 416.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.4048, allocations: 15.89 kB / 416.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.4048, allocations: 16 kB / 416.2 MB, free: 10.24 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (17): * Single equations (assignments): 17 * 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 0.0001583/0.405, allocations: 141.6 kB / 416.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002956/0.4053, allocations: 145.4 kB / 416.5 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.55e-05/0.4054, allocations: 21.39 kB / 416.5 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.4054, allocations: 4 kB / 416.5 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4054, allocations: 4.031 kB / 416.5 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.4054, allocations: 0 / 416.5 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003385/0.4058, allocations: 221.5 kB / 416.7 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.4058, allocations: 0 / 416.7 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.4059, allocations: 39.92 kB / 416.7 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.4059, allocations: 7.938 kB / 416.8 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.4059, allocations: 0 / 416.8 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.406, allocations: 7.984 kB / 416.8 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.406, allocations: 0 / 416.8 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004674/0.4064, allocations: 356.3 kB / 417.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.4066, allocations: 112.9 kB / 417.2 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.265e-05/0.4066, allocations: 7.938 kB / 417.2 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.4068, allocations: 15.98 kB / 417.2 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.4068, allocations: 4 kB / 417.3 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.4068, allocations: 4 kB / 417.3 MB, free: 9.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001484/0.407, allocations: 140.3 kB / 417.4 MB, free: 8.918 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.407, allocations: 0 / 417.4 MB, free: 8.918 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003353/0.4073, allocations: 20 kB / 417.4 MB, free: 8.898 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (17): * Single equations (assignments): 17 * 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.0001575/0.4075, allocations: 103.2 kB / 417.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003236/0.4078, allocations: 123.9 kB / 417.6 MB, free: 8.668 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.4078, allocations: 4 kB / 417.6 MB, free: 8.664 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.331e-05/0.4079, allocations: 7.984 kB / 417.6 MB, free: 8.656 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006829/0.4086, allocations: 105.2 kB / 417.7 MB, free: 8.555 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009273/0.4095, allocations: 363.1 kB / 418.1 MB, free: 8.164 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004146/0.4099, allocations: 0.7241 MB / 418.8 MB, free: 7.414 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.279e-05/0.41, allocations: 13.56 kB / 418.8 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.024e-05/0.4101, allocations: 19.42 kB / 418.9 MB, free: 7.383 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4101, allocations: 0 / 418.9 MB, free: 7.383 MB / 334.1 MB Notification: Performance of Templates: time 0.005841/0.4159, allocations: 1.712 MB / 420.6 MB, free: 5.691 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches