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.Sample3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001527/0.001527, allocations: 109.4 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001703/0.001703, allocations: 207.2 kB / 19.79 MB, free: 2.586 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.635/1.635, allocations: 230.4 MB / 251.1 MB, free: 8.457 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.002352/0.002352, allocations: 75.81 kB / 369 MB, free: 6.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3718, allocations: 53.31 MB / 422.3 MB, free: 8.016 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.003252/0.375, allocations: 1.707 MB / 424 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004463/0.3755, allocations: 163.5 kB / 424.1 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.249e-05/0.3755, allocations: 0 / 424.1 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.485e-05/0.3756, allocations: 7.875 kB / 424.1 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000142/0.3757, allocations: 23.86 kB / 424.2 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002405/0.376, allocations: 43.89 kB / 424.2 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.3761, allocations: 51.84 kB / 424.3 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.3762, allocations: 23.97 kB / 424.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.214e-05/0.3763, allocations: 23.94 kB / 424.3 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.524e-05/0.3763, allocations: 23.84 kB / 424.3 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.922e-05/0.3763, allocations: 8 kB / 424.3 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.176e-05/0.3764, allocations: 4 kB / 424.3 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.993e-05/0.3764, allocations: 15.94 kB / 424.4 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.399e-05/0.3764, allocations: 35.73 kB / 424.4 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.3766, allocations: 71.59 kB / 424.5 MB, free: 5.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3766, allocations: 0 / 424.5 MB, free: 5.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3766, allocations: 0 / 424.5 MB, free: 5.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.3766, allocations: 0 / 424.5 MB, free: 5.816 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.0005523/0.3771, allocations: 401.9 kB / 424.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.3772, allocations: 8.031 kB / 424.9 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.094e-05/0.3772, allocations: 12.89 kB / 424.9 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.3775, allocations: 200.1 kB / 425.1 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.3775, allocations: 8.375 kB / 425.1 MB, free: 5.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.3775, allocations: 8.312 kB / 425.1 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003482/0.3779, allocations: 158.4 kB / 425.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.3779, allocations: 192 / 425.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.3779, allocations: 7.938 kB / 425.3 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.3779, allocations: 7.938 kB / 425.3 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.378, allocations: 35.97 kB / 425.3 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004283/0.3784, allocations: 369.8 kB / 425.7 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002532/0.3787, allocations: 115.7 kB / 425.8 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.3788, allocations: 58.7 kB / 425.8 MB, free: 4.254 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.3788, allocations: 8.141 kB / 425.8 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.3788, allocations: 38.5 kB / 425.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.012e-06/0.3788, allocations: 0 / 425.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003383/0.3792, allocations: 121.5 kB / 426 MB, free: 4.074 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.058e-05/0.3793, allocations: 110.8 kB / 426.1 MB, free: 3.941 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.3794, allocations: 136.6 kB / 426.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.3794, allocations: 33.69 kB / 426.3 MB, free: 3.762 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.771e-05/0.3795, allocations: 88.14 kB / 426.4 MB, free: 3.672 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.766e-05/0.3795, allocations: 3.953 kB / 426.4 MB, free: 3.668 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.259e-05/0.3796, allocations: 33.91 kB / 426.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3797, allocations: 322.8 kB / 426.7 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.827e-05/0.3798, allocations: 11.98 kB / 426.7 MB, free: 3.293 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.903e-05/0.3798, allocations: 71.66 kB / 426.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.38, allocations: 99.53 kB / 426.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.38, allocations: 0 / 426.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000188/0.3802, allocations: 105.5 kB / 427 MB, free: 2.961 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/0.3802, allocations: 4 kB / 427 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.567e-06/0.3802, allocations: 4 kB / 427 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.3802, allocations: 4.281 kB / 427 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.063e-05/0.3803, allocations: 23.98 kB / 427 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.3803, allocations: 7.938 kB / 427 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.173e-05/0.3804, allocations: 11.89 kB / 427 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.3804, allocations: 4 kB / 427 MB, free: 2.902 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 9.83e-05/0.3805, allocations: 129.8 kB / 427.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.3806, allocations: 73.59 kB / 427.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.749e-05/0.3806, allocations: 12.7 kB / 427.3 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.3807, allocations: 4.188 kB / 427.3 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3807, allocations: 4 kB / 427.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3807, allocations: 3.938 kB / 427.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002751/0.3809, allocations: 189.6 kB / 427.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3809, allocations: 0 / 427.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.477e-05/0.381, allocations: 19.98 kB / 427.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.381, allocations: 4 kB / 427.5 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-06/0.381, allocations: 0 / 427.5 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.381, allocations: 4 kB / 427.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.381, allocations: 0 / 427.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003879/0.3814, allocations: 320.2 kB / 427.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.198e-05/0.3815, allocations: 101 kB / 427.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.3815, allocations: 3.938 kB / 427.9 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.7e-05/0.3816, allocations: 4 kB / 427.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.742e-05/0.3817, allocations: 15.92 kB / 427.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.3817, allocations: 4 kB / 427.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.607e-05/0.3817, allocations: 103.3 kB / 428 MB, free: 1.816 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3817, allocations: 0 / 428 MB, free: 1.816 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002764/0.382, allocations: 8 kB / 428 MB, free: 1.809 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.000149/0.3822, allocations: 103.2 kB / 428.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001879/0.3823, allocations: 64.09 kB / 428.2 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3823, allocations: 0 / 428.2 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.174e-05/0.3824, allocations: 19.92 kB / 428.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004156/0.3828, allocations: 36 kB / 428.2 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003917/0.3832, allocations: 195.7 kB / 428.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.3836, allocations: 0.7006 MB / 429.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.954e-05/0.3836, allocations: 8.656 kB / 429.1 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.104e-05/0.3836, allocations: 15.44 kB / 429.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3836, allocations: 0 / 429.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of Templates: time 0.003273/0.3869, allocations: 0.7217 MB / 429.9 MB, free: 15.88 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches