Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.621/1.621, allocations: 225.6 MB / 250.8 MB, free: 13.32 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 51.92 kB / 368.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.383/0.3846, allocations: 52.14 MB / 420.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.003436/0.388, allocations: 1.715 MB / 422.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005501/0.3885, allocations: 171.4 kB / 422.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.3886, allocations: 0 / 422.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.669e-05/0.3887, allocations: 7.875 kB / 422.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001649/0.3889, allocations: 19.92 kB / 422.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002989/0.3892, allocations: 43.83 kB / 422.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001392/0.3893, allocations: 51.84 kB / 422.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.3895, allocations: 23.97 kB / 422.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.729e-05/0.3895, allocations: 27.86 kB / 422.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.993e-05/0.3896, allocations: 23.86 kB / 423 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.175e-05/0.3896, allocations: 4 kB / 423 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.378e-05/0.3896, allocations: 8 kB / 423 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.845e-05/0.3897, allocations: 19.92 kB / 423 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.637e-05/0.3897, allocations: 31.75 kB / 423 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.3899, allocations: 72.86 kB / 423.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3899, allocations: 0 / 423.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3899, allocations: 0 / 423.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.3899, allocations: 0 / 423.1 MB, free: 12.89 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005768/0.3905, allocations: 399 kB / 423.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.3905, allocations: 8.031 kB / 423.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.566e-05/0.3906, allocations: 12.84 kB / 423.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/0.3909, allocations: 196.2 kB / 423.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.3909, allocations: 8.375 kB / 423.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.3909, allocations: 4.375 kB / 423.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003844/0.3913, allocations: 170.2 kB / 423.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.016e-06/0.3913, allocations: 192 / 423.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.3913, allocations: 7.938 kB / 423.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.3913, allocations: 4 kB / 423.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001123/0.3914, allocations: 35.92 kB / 423.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004494/0.3919, allocations: 365.9 kB / 424.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002524/0.3921, allocations: 111.8 kB / 424.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.3923, allocations: 50.69 kB / 424.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.3923, allocations: 8.141 kB / 424.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.3923, allocations: 34.56 kB / 424.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.3923, allocations: 0 / 424.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003599/0.3927, allocations: 129.8 kB / 424.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.959e-05/0.3927, allocations: 106.9 kB / 424.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.3929, allocations: 137.8 kB / 424.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.3929, allocations: 29.7 kB / 424.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.685e-05/0.393, allocations: 88.14 kB / 425 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/0.393, allocations: 3.953 kB / 425 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.972e-05/0.393, allocations: 29.7 kB / 425 MB, free: 10.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.3932, allocations: 326.9 kB / 425.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.842e-05/0.3932, allocations: 15.98 kB / 425.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.408e-05/0.3933, allocations: 71.66 kB / 425.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.3935, allocations: 99.53 kB / 425.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3935, allocations: 0 / 425.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001843/0.3937, allocations: 109.4 kB / 425.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3937, allocations: 4 kB / 425.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3937, allocations: 7.984 kB / 425.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.3937, allocations: 0 / 425.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.072e-05/0.3938, allocations: 32.2 kB / 425.6 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.3938, allocations: 7.938 kB / 425.6 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.784e-05/0.3938, allocations: 7.938 kB / 425.7 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.3939, allocations: 4 kB / 425.7 MB, free: 9.98 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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.0001065/0.394, allocations: 133.7 kB / 425.8 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.3941, allocations: 81.53 kB / 425.9 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.904e-05/0.3941, allocations: 8.719 kB / 425.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3941, allocations: 4 kB / 425.9 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.3941, allocations: 3.984 kB / 425.9 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3941, allocations: 4 kB / 425.9 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002577/0.3944, allocations: 193.5 kB / 426.1 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3944, allocations: 0 / 426.1 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.553e-05/0.3945, allocations: 19.98 kB / 426.1 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3945, allocations: 0 / 426.1 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.3945, allocations: 0 / 426.1 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.3945, allocations: 4 kB / 426.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3945, allocations: 0 / 426.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003877/0.3949, allocations: 316.3 kB / 426.4 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.094e-05/0.395, allocations: 101 kB / 426.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.395, allocations: 3.938 kB / 426.5 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.408e-05/0.3951, allocations: 4.281 kB / 426.5 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.879e-05/0.3951, allocations: 7.984 kB / 426.5 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.3951, allocations: 8 kB / 426.5 MB, free: 8.996 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.307e-05/0.3952, allocations: 110 kB / 426.6 MB, free: 8.891 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3952, allocations: 0 / 426.6 MB, free: 8.891 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002685/0.3955, allocations: 8 kB / 426.6 MB, free: 8.883 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 10 * 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.0001788/0.3957, allocations: 108 kB / 426.8 MB, free: 8.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001631/0.3958, allocations: 64.41 kB / 426.8 MB, free: 8.707 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.3958, allocations: 0 / 426.8 MB, free: 8.707 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.999e-05/0.3959, allocations: 15.94 kB / 426.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003841/0.3962, allocations: 32.02 kB / 426.9 MB, free: 8.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000374/0.3966, allocations: 216 kB / 427.1 MB, free: 8.414 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.397, allocations: 0.7043 MB / 427.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.068e-05/0.397, allocations: 4.672 kB / 427.8 MB, free: 7.676 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.697e-05/0.3971, allocations: 15.44 kB / 427.8 MB, free: 7.66 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3971, allocations: 7.938 kB / 427.8 MB, free: 7.652 MB / 334.1 MB Notification: Performance of Templates: time 0.003269/0.4003, allocations: 0.7339 MB / 428.5 MB, free: 6.922 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.016860231757164]