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.00262/0.00262, allocations: 95.61 kB / 20.96 MB, free: 3.449 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.003084/0.003084, allocations: 161.3 kB / 24.27 MB, free: 148 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.664/1.664, 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.934e-06/1.934e-06, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.004e-05/3.197e-05, allocations: 2.312 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.004304/0.004336, allocations: 1.583 MB / 273.9 MB, free: 228 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005717/0.004908, allocations: 139.5 kB / 274.1 MB, free: 88 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.06e-05/0.004999, allocations: 7.938 kB / 274.1 MB, free: 80 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.244e-05/0.005071, allocations: 7.922 kB / 274.1 MB, free: 72 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001451/0.005216, allocations: 7.875 kB / 274.1 MB, free: 64 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.00553, allocations: 35.84 kB / 274.1 MB, free: 28 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001595/0.00569, allocations: 35.91 kB / 274.1 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.005803, allocations: 11.94 kB / 274.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.902e-05/0.005872, allocations: 15.98 kB / 274.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.531e-05/0.005927, allocations: 19.91 kB / 274.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.005954, allocations: 4 kB / 274.2 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.274e-05/0.005967, allocations: 0 / 274.2 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.918e-05/0.006026, allocations: 8 kB / 274.2 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.041e-05/0.006076, allocations: 15.92 kB / 274.2 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.006244, allocations: 43.81 kB / 274.3 MB, free: 15.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.006248, allocations: 4 kB / 274.3 MB, free: 15.87 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.00625, allocations: 0 / 274.3 MB, free: 15.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.006255, 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.000675/0.00693, allocations: 392.1 kB / 274.6 MB, free: 15.45 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.006976, allocations: 15.97 kB / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.809e-05/0.007034, allocations: 12.89 kB / 274.7 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/0.007328, allocations: 140.4 kB / 274.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.007342, allocations: 384 / 274.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.007357, allocations: 4.375 kB / 274.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004209/0.007778, allocations: 120.9 kB / 274.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.007789, allocations: 8.188 kB / 274.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.007799, allocations: 384 / 274.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.007803, allocations: 384 / 274.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.007919, allocations: 23.86 kB / 275 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004876/0.008406, allocations: 271.5 kB / 275.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003052/0.008711, allocations: 78.11 kB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.008825, allocations: 27.44 kB / 275.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.008849, allocations: 4 kB / 275.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.71e-05/0.008896, allocations: 37.38 kB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.713e-06/0.008898, allocations: 4 kB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004163/0.009314, allocations: 77.52 kB / 275.5 MB, free: 14.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.009418, allocations: 81.05 kB / 275.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.009695, allocations: 201.8 kB / 275.7 MB, free: 14.19 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.009722, allocations: 25.7 kB / 275.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.009855, allocations: 138.9 kB / 275.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.389e-05/0.009869, allocations: 0 / 275.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.944e-05/0.009938, allocations: 23.33 kB / 275.9 MB, free: 13.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003684/0.01031, allocations: 496.1 kB / 276.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.933e-05/0.01036, allocations: 4.125 kB / 276.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.095e-05/0.0104, allocations: 7.984 kB / 276.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000102/0.0105, allocations: 19.69 kB / 276.4 MB, free: 13.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.0105, allocations: 0 / 276.4 MB, free: 13.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000173/0.01067, allocations: 45.62 kB / 276.5 MB, free: 13.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.01069, allocations: 4 kB / 276.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.0107, allocations: 3.938 kB / 276.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.01072, allocations: 0 / 276.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.828e-05/0.01077, allocations: 4 kB / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.01078, allocations: 4.094 kB / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.599e-05/0.01083, allocations: 0 / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.01083, allocations: 0 / 276.5 MB, free: 13.39 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 0.0001784/0.01101, allocations: 168.5 kB / 276.7 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.01115, allocations: 45.66 kB / 276.7 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.911e-05/0.01121, allocations: 20.27 kB / 276.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.01121, allocations: 240 / 276.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.01121, allocations: 0 / 276.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/0.01122, allocations: 3.984 kB / 276.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002843/0.01151, allocations: 132.6 kB / 276.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.01151, allocations: 4 kB / 276.9 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.459e-05/0.01158, allocations: 11.94 kB / 276.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.01159, allocations: 0 / 276.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.0116, allocations: 3.984 kB / 276.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.01161, allocations: 7.938 kB / 276.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.01161, allocations: 0 / 276.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003771/0.01199, allocations: 215.6 kB / 277.1 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.258e-05/0.01205, allocations: 15.94 kB / 277.1 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.01207, allocations: 0 / 277.1 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.01218, allocations: 7.938 kB / 277.1 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.386e-05/0.01221, allocations: 4 kB / 277.1 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.01222, allocations: 0 / 277.1 MB, free: 12.69 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001614/0.01238, allocations: 147.2 kB / 277.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.01238, allocations: 0 / 277.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000408/0.01279, allocations: 7.938 kB / 277.3 MB, free: 12.54 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.0001653/0.01295, allocations: 98.19 kB / 277.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001875/0.01314, allocations: 27.67 kB / 277.4 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.01314, allocations: 0 / 277.4 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.968e-05/0.01321, allocations: 15.75 kB / 277.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005608/0.01378, allocations: 28.8 kB / 277.4 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005381/0.01431, allocations: 160.8 kB / 277.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001326/0.01445, allocations: 75.33 kB / 277.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.347e-05/0.01448, allocations: 4 kB / 277.7 MB, free: 12.06 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.994e-05/0.01452, allocations: 8.5 kB / 277.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of SimCode: time 6.42e-07/0.01452, allocations: 0 / 277.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of Templates: time 0.005234/0.01975, allocations: 0.5239 MB / 278.2 MB, free: 11.54 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 240] 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.781921276007779]