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.002178/0.002178, allocations: 109.6 kB / 18.45 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003161/0.003161, allocations: 212.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.373/2.373, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 55.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3809/0.3822, allocations: 50.53 MB / 409.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.00361/0.3859, allocations: 1.876 MB / 411.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.3873, allocations: 0.6974 MB / 412.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.3874, allocations: 7.938 kB / 412.5 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.3876, allocations: 23.73 kB / 412.5 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.3878, allocations: 23.8 kB / 412.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004041/0.3882, allocations: 111.3 kB / 412.7 MB, free: 15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001979/0.3884, allocations: 139.6 kB / 412.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001796/0.3886, allocations: 69.67 kB / 412.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.3887, allocations: 63.72 kB / 412.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.3889, allocations: 47.7 kB / 413 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.6e-05/0.3889, allocations: 12 kB / 413 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.536e-05/0.389, allocations: 15.94 kB / 413 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.848e-05/0.389, allocations: 27.92 kB / 413 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.467e-05/0.3891, allocations: 59.61 kB / 413.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002681/0.3894, allocations: 155.3 kB / 413.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3894, allocations: 4 kB / 413.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3894, allocations: 0 / 413.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.3894, allocations: 0 / 413.2 MB, free: 14.41 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.0006643/0.3901, allocations: 452.2 kB / 413.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.3901, allocations: 12.03 kB / 413.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.3903, allocations: 28.64 kB / 413.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004221/0.3907, allocations: 252.9 kB / 414 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.3908, allocations: 16.06 kB / 414 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.3908, allocations: 12 kB / 414 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006047/0.3914, allocations: 271.3 kB / 414.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.3914, allocations: 3.938 kB / 414.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.3915, allocations: 4 kB / 414.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.3915, allocations: 0 / 414.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002186/0.3917, allocations: 75.89 kB / 414.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005274/0.3922, allocations: 431.4 kB / 414.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004849/0.3927, allocations: 290.1 kB / 415 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.3929, allocations: 120.3 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.393, allocations: 7.984 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.393, allocations: 42.55 kB / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.352e-06/0.393, allocations: 0 / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005781/0.3936, allocations: 213.2 kB / 415.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.3938, allocations: 196.2 kB / 415.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.394, allocations: 186.3 kB / 415.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.394, allocations: 29.7 kB / 415.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.832e-05/0.3941, allocations: 100.1 kB / 415.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.353e-05/0.3941, allocations: 12.27 kB / 415.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.434e-05/0.3942, allocations: 41.61 kB / 416 MB, free: 11.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3943, allocations: 322.8 kB / 416.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.737e-05/0.3944, allocations: 23.98 kB / 416.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.3945, allocations: 137.2 kB / 416.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002016/0.3947, allocations: 153.5 kB / 416.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3948, allocations: 8 kB / 416.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002717/0.395, allocations: 161.1 kB / 416.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.3951, allocations: 12.44 kB / 416.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3951, allocations: 4 kB / 416.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.3951, allocations: 8 kB / 416.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.3952, allocations: 35.92 kB / 416.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.3952, allocations: 7.938 kB / 416.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.3954, allocations: 23.83 kB / 416.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.3954, allocations: 8 kB / 416.9 MB, free: 10.34 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.0001146/0.3955, allocations: 133.7 kB / 417 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000291/0.3958, allocations: 153.3 kB / 417.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.383e-05/0.3959, allocations: 17.41 kB / 417.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.3959, allocations: 8 kB / 417.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3959, allocations: 0 / 417.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.3959, allocations: 7.984 kB / 417.2 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002789/0.3962, allocations: 213.5 kB / 417.4 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.3962, allocations: 4 kB / 417.4 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001351/0.3963, allocations: 39.91 kB / 417.4 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.3963, allocations: 3.938 kB / 417.4 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.3964, allocations: 4 kB / 417.4 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3964, allocations: 4.031 kB / 417.4 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3964, allocations: 4 kB / 417.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000427/0.3968, allocations: 357 kB / 417.8 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.96e-05/0.3969, allocations: 112.8 kB / 417.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.397, allocations: 7.938 kB / 417.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.3971, allocations: 12 kB / 417.9 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.853e-05/0.3971, allocations: 3.984 kB / 417.9 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.3972, allocations: 4 kB / 417.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001253/0.3973, allocations: 140.3 kB / 418.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3973, allocations: 0 / 418.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003221/0.3976, allocations: 20 kB / 418.1 MB, free: 9 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.0001189/0.3977, allocations: 107.2 kB / 418.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000288/0.398, allocations: 116.7 kB / 418.3 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.398, allocations: 0 / 418.3 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.721e-05/0.3981, allocations: 20 kB / 418.3 MB, free: 8.754 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006043/0.3987, allocations: 92.31 kB / 418.4 MB, free: 8.664 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008717/0.3996, allocations: 393.2 kB / 418.8 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.3999, allocations: 0.7241 MB / 419.5 MB, free: 7.488 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.203e-05/0.4, allocations: 19.44 kB / 419.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4, allocations: 0 / 419.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of Templates: time 0.003569/0.4036, allocations: 1.808 MB / 421.3 MB, free: 5.664 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","/var/lib/jenkins1/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