Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001338/0.001338, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001459/0.001459, allocations: 160.2 kB / 24.91 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9583/0.9583, allocations: 177 MB / 205.2 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] 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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 4 kB / 273.4 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.145e-05/1.347e-05, allocations: 2.312 kB / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.001886/0.001899, allocations: 1.606 MB / 275 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003547/0.002254, allocations: 147.4 kB / 275.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.657e-05/0.002331, allocations: 7.938 kB / 275.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.755e-05/0.002378, allocations: 7.922 kB / 275.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.0025, allocations: 4 kB / 275.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.002683, allocations: 43.77 kB / 275.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.975e-05/0.002763, allocations: 27.92 kB / 275.2 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.43e-05/0.002837, allocations: 11.98 kB / 275.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.041e-05/0.002888, allocations: 23.86 kB / 275.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.974e-05/0.002927, allocations: 19.97 kB / 275.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.823e-05/0.002946, allocations: 0 / 275.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.906e-06/0.002954, allocations: 4 kB / 275.3 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.318e-05/0.002998, allocations: 11.94 kB / 275.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.295e-05/0.003021, allocations: 11.92 kB / 275.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 8.889e-05/0.003109, allocations: 35.84 kB / 275.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.533e-06/0.003111, allocations: 0 / 275.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.003112, allocations: 0 / 275.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.895e-06/0.003115, allocations: 0 / 275.4 MB, free: 15.25 MB / 266.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.0002803/0.003395, allocations: 264.7 kB / 275.6 MB, free: 14.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.003427, allocations: 15.98 kB / 275.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.745e-05/0.003454, allocations: 8.922 kB / 275.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.003586, allocations: 141.6 kB / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.803e-06/0.003593, allocations: 384 / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-06/0.003601, allocations: 4.375 kB / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.003759, allocations: 118.2 kB / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.003765, allocations: 192 / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-06/0.003771, allocations: 4.375 kB / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.003775, allocations: 384 / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.563e-05/0.003791, allocations: 15.88 kB / 275.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001518/0.003943, allocations: 145.1 kB / 276.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.817e-05/0.004041, allocations: 53.11 kB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.21e-05/0.004063, allocations: 25.7 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.004075, allocations: 0 / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.004095, allocations: 34.56 kB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 7.82e-07/0.004096, allocations: 0 / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001008/0.004197, allocations: 57.61 kB / 276.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.004238, allocations: 85.05 kB / 276.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.104e-05/0.004299, allocations: 126.7 kB / 276.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.276e-06/0.004307, allocations: 25.7 kB / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.875e-05/0.004336, allocations: 84.14 kB / 276.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.41e-05/0.00435, allocations: 7.953 kB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.097e-05/0.004371, allocations: 13.72 kB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.827e-05/0.00444, allocations: 318.8 kB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.839e-06/0.004444, allocations: 0 / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.35e-06/0.00445, allocations: 4.125 kB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.348e-05/0.004463, allocations: 12.86 kB / 276.9 MB, free: 13.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.004464, allocations: 0 / 276.9 MB, free: 13.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 2.908e-05/0.004493, allocations: 33.7 kB / 276.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.004503, allocations: 4 kB / 276.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.004507, allocations: 0 / 276.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.004516, allocations: 0 / 276.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.012e-05/0.004546, allocations: 11.92 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.886e-06/0.004549, allocations: 0 / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.009e-05/0.004559, allocations: 0 / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.004564, allocations: 8.031 kB / 276.9 MB, free: 13.47 MB / 266.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 4.872e-05/0.004613, allocations: 112.7 kB / 277.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.322e-05/0.004646, allocations: 45.62 kB / 277.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.461e-05/0.004671, allocations: 8.344 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.004672, allocations: 240 / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.004675, allocations: 3.938 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.004682, allocations: 7.969 kB / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.743e-05/0.004759, allocations: 69.89 kB / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.02e-07/0.00476, allocations: 0 / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.974e-05/0.004779, allocations: 15.98 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.62e-07/0.00478, allocations: 4 kB / 277.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.437e-06/0.004784, allocations: 3.938 kB / 277.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.00479, allocations: 4 kB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.00479, allocations: 0 / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.009e-05/0.004851, allocations: 140.3 kB / 277.4 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.167e-05/0.004872, allocations: 11.95 kB / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.837e-06/0.004881, allocations: 4 kB / 277.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.629e-05/0.004907, allocations: 4 kB / 277.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.181e-05/0.004929, allocations: 3.984 kB / 277.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.004933, allocations: 4 kB / 277.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.889e-05/0.004952, allocations: 31.89 kB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004952, allocations: 0 / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001102/0.005062, allocations: 4 kB / 277.4 MB, free: 12.95 MB / 266.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 6.47e-05/0.005127, allocations: 80.36 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 4.687e-05/0.005173, allocations: 16.8 kB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.005178, allocations: 4 kB / 277.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.145e-06/0.005186, allocations: 4.859 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001551/0.005341, allocations: 16.86 kB / 277.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002062/0.005547, allocations: 159.3 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.826e-05/0.005586, allocations: 63.34 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.364e-05/0.005599, allocations: 0 / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.995e-05/0.005639, allocations: 55.31 kB / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of SimCode: time 3.4e-07/0.005639, allocations: 0 / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of Templates: time 0.002471/0.008111, allocations: 0.5415 MB / 278.3 MB, free: 11.95 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.7478854209184647]