Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.001336/0.001336, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001648/0.001648, allocations: 148.5 kB / 24.81 MB, free: 9.281 MB / 18.57 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.054/1.054, allocations: 173.4 MB / 201.4 MB, free: 9.238 MB / 186.7 MB " [Timeout remaining time 179] 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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 268.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.062e-05/2.267e-05, allocations: 2.312 kB / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002784/0.002806, allocations: 1.592 MB / 270 MB, free: 4.605 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004169/0.003223, allocations: 147.4 kB / 270.2 MB, free: 4.461 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.901e-05/0.003312, allocations: 3.938 kB / 270.2 MB, free: 4.457 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.749e-05/0.00336, allocations: 7.938 kB / 270.2 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.003503, allocations: 11.86 kB / 270.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002327/0.003736, allocations: 35.84 kB / 270.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001041/0.00384, allocations: 31.91 kB / 270.2 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.355e-05/0.003934, allocations: 11.98 kB / 270.3 MB, free: 4.359 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.843e-05/0.003992, allocations: 23.92 kB / 270.3 MB, free: 4.336 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.095e-05/0.004033, allocations: 4 kB / 270.3 MB, free: 4.332 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.004051, allocations: 3.938 kB / 270.3 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.173e-05/0.004063, allocations: 8 kB / 270.3 MB, free: 4.32 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.949e-05/0.004113, allocations: 15.97 kB / 270.3 MB, free: 4.305 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.757e-05/0.00414, allocations: 11.94 kB / 270.3 MB, free: 4.293 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001025/0.004243, allocations: 35.83 kB / 270.4 MB, free: 4.258 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.004244, allocations: 0 / 270.4 MB, free: 4.258 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.004245, allocations: 0 / 270.4 MB, free: 4.258 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.004249, allocations: 0 / 270.4 MB, free: 4.258 MB / 250.7 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.0004117/0.004661, allocations: 396.3 kB / 270.7 MB, free: 3.832 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.004705, allocations: 12.86 kB / 270.8 MB, free: 3.82 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.846e-05/0.004744, allocations: 12.89 kB / 270.8 MB, free: 3.809 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.004905, allocations: 132.6 kB / 270.9 MB, free: 3.652 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.004916, allocations: 384 / 270.9 MB, free: 3.652 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.839e-06/0.004926, allocations: 4.375 kB / 270.9 MB, free: 3.648 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.00515, allocations: 133.5 kB / 271 MB, free: 3.492 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.005157, allocations: 4.125 kB / 271 MB, free: 3.488 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-06/0.005164, allocations: 384 / 271 MB, free: 3.488 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.00517, allocations: 384 / 271 MB, free: 3.488 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.969e-05/0.00519, allocations: 19.86 kB / 271.1 MB, free: 3.469 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002595/0.005449, allocations: 244.1 kB / 271.3 MB, free: 3.199 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001595/0.005609, allocations: 62.17 kB / 271.4 MB, free: 3.113 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.804e-05/0.005647, allocations: 31.36 kB / 271.4 MB, free: 3.074 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.005671, allocations: 0 / 271.4 MB, free: 3.074 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.005703, allocations: 37.39 kB / 271.4 MB, free: 3.027 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 3.827e-06/0.005707, allocations: 3.984 kB / 271.4 MB, free: 3.023 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001821/0.005889, allocations: 61.52 kB / 271.5 MB, free: 2.957 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.005946, allocations: 93.16 kB / 271.6 MB, free: 2.848 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.006065, allocations: 189.4 kB / 271.8 MB, free: 2.648 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.006079, allocations: 25.7 kB / 271.8 MB, free: 2.617 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.003e-05/0.006139, allocations: 130.8 kB / 271.9 MB, free: 2.484 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/0.006154, allocations: 4 kB / 271.9 MB, free: 2.48 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.519e-05/0.006189, allocations: 23.33 kB / 271.9 MB, free: 2.449 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.006343, allocations: 0.4884 MB / 272.4 MB, free: 1.949 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.814e-06/0.00635, allocations: 0 / 272.4 MB, free: 1.949 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.001e-06/0.006356, allocations: 0 / 272.4 MB, free: 1.949 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.347e-05/0.00638, allocations: 15.67 kB / 272.4 MB, free: 1.93 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.006382, allocations: 4.062 kB / 272.5 MB, free: 1.926 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.484e-05/0.006447, allocations: 33.64 kB / 272.5 MB, free: 1.887 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.006463, allocations: 8 kB / 272.5 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.006468, allocations: 0 / 272.5 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.006484, allocations: 3.938 kB / 272.5 MB, free: 1.875 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.77e-05/0.006522, allocations: 0 / 272.5 MB, free: 1.875 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.006527, allocations: 4 kB / 272.5 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.588e-05/0.006543, allocations: 0 / 272.5 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.888e-06/0.006547, allocations: 0 / 272.5 MB, free: 1.871 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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 8.323e-05/0.00663, allocations: 160.6 kB / 272.7 MB, free: 1.703 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.995e-05/0.00669, allocations: 45.66 kB / 272.7 MB, free: 1.652 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.863e-05/0.006729, allocations: 16.33 kB / 272.7 MB, free: 1.629 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.006732, allocations: 3.938 kB / 272.7 MB, free: 1.625 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.006734, allocations: 0 / 272.7 MB, free: 1.625 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.006737, allocations: 0 / 272.7 MB, free: 1.625 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000136/0.006873, allocations: 109.2 kB / 272.8 MB, free: 1.492 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.006875, allocations: 4 kB / 272.8 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.767e-05/0.006913, allocations: 11.94 kB / 272.8 MB, free: 1.477 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.006914, allocations: 0 / 272.8 MB, free: 1.477 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.398e-06/0.006919, allocations: 0 / 272.8 MB, free: 1.477 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.006921, allocations: 8 kB / 272.8 MB, free: 1.469 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.006922, allocations: 0 / 272.8 MB, free: 1.469 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001146/0.007037, allocations: 199.5 kB / 273 MB, free: 1.25 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.051e-05/0.007068, allocations: 11.95 kB / 273.1 MB, free: 1.238 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.087e-05/0.007078, allocations: 0 / 273.1 MB, free: 1.238 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.247e-05/0.007131, allocations: 3.984 kB / 273.1 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.544e-05/0.007156, allocations: 8 kB / 273.1 MB, free: 1.227 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.007161, allocations: 3.938 kB / 273.1 MB, free: 1.223 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.015e-05/0.007221, allocations: 131.2 kB / 273.2 MB, free: 1.094 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.007221, allocations: 4 kB / 273.2 MB, free: 1.09 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002529/0.007474, allocations: 4.031 kB / 273.2 MB, free: 1.086 MB / 250.7 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 7.99e-05/0.007554, allocations: 99.19 kB / 273.3 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.615e-05/0.00762, allocations: 27.66 kB / 273.3 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.007621, allocations: 0 / 273.3 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.275e-05/0.007634, allocations: 7.688 kB / 273.3 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.007936, allocations: 24.73 kB / 273.4 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002663/0.008202, allocations: 148.9 kB / 273.5 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.133e-05/0.008254, allocations: 63.41 kB / 273.6 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.756e-05/0.008271, allocations: 8 kB / 273.6 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.263e-05/0.008324, allocations: 74.19 kB / 273.7 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of SimCode: time 1.092e-06/0.008325, allocations: 0 / 273.7 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of Templates: time 0.002464/0.01079, allocations: 0.562 MB / 274.2 MB, free: 24 kB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.616890402045101]