Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001836/0.001836, allocations: 92.31 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002079/0.002079, allocations: 157.7 kB / 24.27 MB, free: 176 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.501/1.501, allocations: 177.2 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.079e-05/3.236e-05, allocations: 6.312 kB / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003116/0.003148, allocations: 1.575 MB / 273.9 MB, free: 224 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004375/0.003586, allocations: 135.5 kB / 274 MB, free: 88 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.488e-05/0.00366, allocations: 3.938 kB / 274 MB, free: 84 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.693e-05/0.003717, allocations: 3.938 kB / 274.1 MB, free: 80 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.003863, allocations: 19.88 kB / 274.1 MB, free: 60 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002307/0.004094, allocations: 35.83 kB / 274.1 MB, free: 24 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.004218, allocations: 35.98 kB / 274.1 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.004325, allocations: 11.98 kB / 274.2 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.014e-05/0.004385, allocations: 15.97 kB / 274.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.458e-05/0.00443, allocations: 11.94 kB / 274.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.004452, allocations: 4 kB / 274.2 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.237e-05/0.004464, allocations: 4 kB / 274.2 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.258e-05/0.004517, allocations: 7.984 kB / 274.2 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.46e-05/0.004561, allocations: 11.94 kB / 274.2 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001265/0.004688, allocations: 47.81 kB / 274.3 MB, free: 15.87 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.00469, allocations: 0 / 274.3 MB, free: 15.87 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.004691, allocations: 0 / 274.3 MB, free: 15.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.004695, allocations: 0 / 274.3 MB, free: 15.87 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.000506/0.005201, allocations: 298 kB / 274.5 MB, free: 15.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.264e-05/0.005264, allocations: 12.03 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.344e-05/0.005317, allocations: 8.891 kB / 274.6 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002509/0.005568, allocations: 141.5 kB / 274.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.005585, allocations: 4.375 kB / 274.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.427e-06/0.005594, allocations: 4.375 kB / 274.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.005908, allocations: 113.6 kB / 274.8 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.005916, allocations: 192 / 274.8 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.005925, allocations: 4.312 kB / 274.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.00593, allocations: 384 / 274.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.348e-05/0.006013, allocations: 23.92 kB / 274.9 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003242/0.006338, allocations: 201.5 kB / 275.1 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.006538, allocations: 65.14 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.379e-05/0.006612, allocations: 25.77 kB / 275.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.006632, allocations: 4 kB / 275.1 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.006662, allocations: 30.56 kB / 275.2 MB, free: 14.81 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.006663, allocations: 0 / 275.2 MB, free: 14.81 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003082/0.006971, allocations: 81.5 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.828e-05/0.007049, allocations: 93.03 kB / 275.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.007202, allocations: 134.2 kB / 275.5 MB, free: 14.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.007225, allocations: 29.7 kB / 275.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.742e-05/0.007293, allocations: 84.14 kB / 275.6 MB, free: 14.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.007309, allocations: 4 kB / 275.6 MB, free: 14.35 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.643e-05/0.007345, allocations: 17.67 kB / 275.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.00752, allocations: 314.8 kB / 275.9 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.783e-05/0.007558, allocations: 4 kB / 275.9 MB, free: 14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.757e-05/0.007586, allocations: 8 kB / 275.9 MB, free: 14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.667e-05/0.007652, allocations: 20.91 kB / 275.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.007654, allocations: 0 / 275.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001062/0.00776, allocations: 49.62 kB / 276 MB, free: 13.92 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.007777, allocations: 10.66 kB / 276 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.007784, allocations: 3.938 kB / 276 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.0078, allocations: 3.984 kB / 276 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.092e-05/0.007841, allocations: 4 kB / 276 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.007846, allocations: 0 / 276 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.183e-05/0.007867, allocations: 0 / 276 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-06/0.007872, allocations: 0 / 276 MB, free: 13.9 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 9.788e-05/0.00797, allocations: 117.9 kB / 276.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.345e-05/0.008063, allocations: 57.59 kB / 276.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.442e-05/0.008098, allocations: 12.27 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.008104, allocations: 8.234 kB / 276.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.008109, allocations: 0 / 276.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.008114, allocations: 3.984 kB / 276.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.008273, allocations: 113.3 kB / 276.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.008274, allocations: 0 / 276.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.426e-05/0.008328, allocations: 15.92 kB / 276.3 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.00833, allocations: 0 / 276.3 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.008339, allocations: 8 kB / 276.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.008342, allocations: 3.938 kB / 276.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.008343, allocations: 0 / 276.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000206/0.008549, allocations: 164.3 kB / 276.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.588e-05/0.008585, allocations: 15.95 kB / 276.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.008598, allocations: 0 / 276.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.787e-05/0.008666, allocations: 7.922 kB / 276.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.344e-05/0.008699, allocations: 4 kB / 276.5 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.008702, allocations: 0 / 276.5 MB, free: 13.31 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.749e-05/0.00879, allocations: 111 kB / 276.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.00879, allocations: 4 kB / 276.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002328/0.009023, allocations: 4 kB / 276.7 MB, free: 13.2 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 0.000391/0.009414, allocations: 95.23 kB / 276.7 MB, free: 13.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001341/0.009548, allocations: 23.98 kB / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.00955, allocations: 0 / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.428e-05/0.009584, allocations: 4 kB / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003653/0.009949, allocations: 24.8 kB / 276.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004269/0.01038, allocations: 168.1 kB / 277 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.57e-05/0.01047, allocations: 75.33 kB / 277 MB, free: 12.76 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.474e-05/0.0105, allocations: 0 / 277 MB, free: 12.76 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.717e-05/0.01053, allocations: 12.5 kB / 277 MB, free: 12.75 MB / 266.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01053, allocations: 0 / 277 MB, free: 12.75 MB / 266.7 MB Notification: Performance of Templates: time 0.00314/0.01367, allocations: 0.5172 MB / 277.6 MB, free: 12.24 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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: 4.355230481014587]