Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.001333/0.001333, allocations: 124.5 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001459/0.001459, allocations: 207.2 kB / 20.75 MB, free: 2.316 MB / 14.72 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.511/1.511, allocations: 230.6 MB / 254.1 MB, free: 15.06 MB / 206.1 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.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 43.94 kB / 373.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1134, allocations: 53.33 MB / 426.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.003568/0.1169, allocations: 1.574 MB / 428.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.1182, allocations: 0.5377 MB / 428.9 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.1184, allocations: 11.88 kB / 428.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.357e-05/0.1184, allocations: 3.938 kB / 428.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.1186, allocations: 15.84 kB / 428.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004275/0.119, allocations: 55.83 kB / 429 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001661/0.1192, allocations: 47.78 kB / 429 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.1193, allocations: 12.19 kB / 429 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.1195, allocations: 31.91 kB / 429.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.097e-05/0.1196, allocations: 27.86 kB / 429.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.1196, allocations: 4 kB / 429.1 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.96e-05/0.1196, allocations: 4 kB / 429.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.14e-05/0.1197, allocations: 15.92 kB / 429.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.985e-05/0.1197, allocations: 27.81 kB / 429.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002013/0.1199, allocations: 55.73 kB / 429.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.12, allocations: 7.875 kB / 429.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.12, allocations: 0 / 429.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.12, allocations: 0 / 429.2 MB, free: 1.832 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000719/0.1207, allocations: 383 kB / 429.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.1207, allocations: 12.03 kB / 429.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002073/0.1209, allocations: 12.89 kB / 429.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.1213, allocations: 208.2 kB / 429.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.386e-06/0.1213, allocations: 384 / 429.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.224e-05/0.1213, allocations: 8.375 kB / 429.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003389/0.1216, allocations: 109.2 kB / 429.9 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.1217, allocations: 0 / 429.9 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.1217, allocations: 0 / 429.9 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.1217, allocations: 0 / 429.9 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.125e-05/0.1218, allocations: 23.92 kB / 430 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004023/0.1222, allocations: 261.8 kB / 430.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.1223, allocations: 45.12 kB / 430.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.712e-05/0.1223, allocations: 25.77 kB / 430.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.1224, allocations: 0 / 430.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.229e-05/0.1224, allocations: 34.56 kB / 430.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.1224, allocations: 0 / 430.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.000283/0.1227, allocations: 77.5 kB / 430.4 MB, free: 472 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.444e-05/0.1227, allocations: 77.11 kB / 430.5 MB, free: 376 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.1229, allocations: 139.4 kB / 430.6 MB, free: 228 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.1229, allocations: 25.7 kB / 430.6 MB, free: 196 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.632e-05/0.123, allocations: 92.38 kB / 430.7 MB, free: 100 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.123, allocations: 7.953 kB / 430.7 MB, free: 92 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-05/0.1231, allocations: 13.72 kB / 430.7 MB, free: 72 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1232, allocations: 326.8 kB / 431.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.173e-05/0.1233, allocations: 7.938 kB / 431.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.469e-05/0.1233, allocations: 21.64 kB / 431.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.737e-05/0.1234, allocations: 33.77 kB / 431.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1234, allocations: 0 / 431.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001473/0.1235, allocations: 57.58 kB / 431.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.1236, allocations: 8 kB / 431.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.1236, allocations: 0 / 431.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.1236, allocations: 0 / 431.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.526e-05/0.1237, allocations: 4 kB / 431.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.198e-06/0.1237, allocations: 8.047 kB / 431.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.583e-05/0.1237, allocations: 4 kB / 431.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.1237, allocations: 4 kB / 431.2 MB, free: 15.58 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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.0001037/0.1238, allocations: 117.8 kB / 431.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/0.1239, allocations: 45.58 kB / 431.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.978e-05/0.1239, allocations: 11.88 kB / 431.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.1239, allocations: 0 / 431.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1239, allocations: 0 / 431.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.994e-06/0.124, allocations: 8.031 kB / 431.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.1242, allocations: 169.6 kB / 431.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1242, allocations: 0 / 431.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.001e-05/0.1242, allocations: 7.984 kB / 431.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.1242, allocations: 4 kB / 431.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-06/0.1242, allocations: 0 / 431.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1243, allocations: 0 / 431.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1243, allocations: 0 / 431.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002065/0.1245, allocations: 172.2 kB / 431.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.955e-05/0.1245, allocations: 85.06 kB / 431.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.1246, allocations: 3.984 kB / 431.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.692e-05/0.1246, allocations: 7.938 kB / 431.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.1247, allocations: 4 kB / 431.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.1247, allocations: 0 / 431.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.853e-05/0.1248, allocations: 112.3 kB / 431.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1248, allocations: 4.031 kB / 431.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000227/0.125, allocations: 4 kB / 431.9 MB, free: 14.73 MB / 366.1 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 (2): * Single equations (assignments): 2 * 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.0001472/0.1251, allocations: 95.78 kB / 432 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001639/0.1253, allocations: 23.92 kB / 432.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.1253, allocations: 0 / 432.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.371e-05/0.1254, allocations: 11.98 kB / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.1257, allocations: 20.19 kB / 432.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003892/0.1261, allocations: 167.4 kB / 432.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.1265, allocations: 0.6885 MB / 432.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.058e-05/0.1265, allocations: 7.984 kB / 432.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.668e-05/0.1265, allocations: 7.438 kB / 433 MB, free: 13.65 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1265, allocations: 0 / 433 MB, free: 13.65 MB / 366.1 MB Notification: Performance of Templates: time 0.003424/0.1299, allocations: 0.5373 MB / 433.5 MB, free: 13.12 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.408679410815239]