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.001021/0.001021, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001002/0.001002, allocations: 158.4 kB / 24.99 MB, free: 9.285 MB / 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.025/1.025, allocations: 177.1 MB / 205.3 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] 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 1.342e-06/1.342e-06, allocations: 0 / 273 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.259e-05/3.393e-05, allocations: 2.312 kB / 273 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002117/0.002151, allocations: 1.61 MB / 274.7 MB, free: 216 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007099/0.00286, allocations: 0.518 MB / 275.2 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.873e-05/0.002939, allocations: 3.938 kB / 275.2 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.742e-05/0.002987, allocations: 3.938 kB / 275.2 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.003128, allocations: 19.84 kB / 275.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.003377, allocations: 51.83 kB / 275.2 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.913e-05/0.003477, allocations: 51.78 kB / 275.3 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.856e-05/0.003575, allocations: 12.11 kB / 275.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.00369, allocations: 39.84 kB / 275.4 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.408e-05/0.003735, allocations: 11.98 kB / 275.4 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.00375, allocations: 7.938 kB / 275.4 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.662e-05/0.003786, allocations: 7.984 kB / 275.4 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.966e-05/0.003826, allocations: 11.98 kB / 275.4 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.399e-05/0.00385, allocations: 15.94 kB / 275.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001215/0.003971, allocations: 39.83 kB / 275.4 MB, free: 15.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.003976, allocations: 4 kB / 275.4 MB, free: 15.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.003977, allocations: 4 kB / 275.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.003983, allocations: 0 / 275.5 MB, free: 15.41 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003933/0.004376, allocations: 412.1 kB / 275.9 MB, free: 14.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.004411, allocations: 8.031 kB / 275.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.004531, allocations: 20.89 kB / 275.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.004699, allocations: 155.7 kB / 276 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.227e-06/0.004708, allocations: 4.375 kB / 276 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.606e-06/0.004716, allocations: 4.359 kB / 276 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/0.004943, allocations: 129.6 kB / 276.2 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.581e-06/0.004949, allocations: 192 / 276.2 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-06/0.004958, allocations: 4.125 kB / 276.2 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.004966, allocations: 0 / 276.2 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.142e-05/0.004997, allocations: 11.94 kB / 276.2 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002576/0.005255, allocations: 259.5 kB / 276.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.374e-05/0.005309, allocations: 58.06 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.362e-05/0.005332, allocations: 19.5 kB / 276.5 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.702e-05/0.005349, allocations: 7.984 kB / 276.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.00537, allocations: 37.33 kB / 276.6 MB, free: 14.13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=2): time 8.72e-07/0.005371, allocations: 0 / 276.6 MB, free: 14.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001404/0.005512, allocations: 49.59 kB / 276.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.005552, allocations: 85.09 kB / 276.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.512e-05/0.005647, allocations: 189.9 kB / 276.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.805e-06/0.005655, allocations: 25.7 kB / 276.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.871e-05/0.005704, allocations: 138.8 kB / 277 MB, free: 13.6 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.005718, allocations: 256 / 277 MB, free: 13.6 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.834e-05/0.005746, allocations: 35.3 kB / 277.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.005864, allocations: 492.1 kB / 277.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.427e-05/0.005878, allocations: 7.938 kB / 277.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.174e-06/0.005885, allocations: 0 / 277.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.518e-05/0.00591, allocations: 11.69 kB / 277.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.005913, allocations: 8 kB / 277.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.463e-05/0.005968, allocations: 41.58 kB / 277.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.005984, allocations: 8 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.005988, allocations: 0 / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.006, allocations: 4.094 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.596e-05/0.006056, allocations: 0 / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.027e-06/0.00606, allocations: 0 / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.495e-05/0.006075, allocations: 4 kB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.092e-06/0.006081, allocations: 7.922 kB / 277.6 MB, free: 12.96 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 6.092e-05/0.006142, allocations: 152.6 kB / 277.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.587e-05/0.006178, allocations: 45.59 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.588e-05/0.006204, allocations: 7.812 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.006206, allocations: 3.984 kB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.00621, allocations: 0 / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.006212, allocations: 4.031 kB / 277.9 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.322e-05/0.006306, allocations: 128.6 kB / 278 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.006307, allocations: 0 / 278 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.272e-05/0.006329, allocations: 4 kB / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.006331, allocations: 0 / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.006339, allocations: 7.922 kB / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.00634, allocations: 4 kB / 278 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.006341, allocations: 0 / 278 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.119e-05/0.006432, allocations: 199.5 kB / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.644e-05/0.006458, allocations: 15.94 kB / 278.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.00647, allocations: 7.969 kB / 278.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.172e-05/0.006502, allocations: 4 kB / 278.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.017e-05/0.006532, allocations: 7.984 kB / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.006534, allocations: 0 / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.959e-05/0.006584, allocations: 142.3 kB / 278.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006584, allocations: 0 / 278.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001404/0.006724, allocations: 8 kB / 278.4 MB, free: 12.16 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 (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 7.249e-05/0.006797, allocations: 95.19 kB / 278.5 MB, free: 12.06 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.918e-05/0.006876, allocations: 27.61 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.006878, allocations: 0 / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.196e-05/0.00689, allocations: 11.69 kB / 278.5 MB, free: 12.01 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002475/0.007137, allocations: 16.3 kB / 278.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000447/0.007584, allocations: 177.2 kB / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.557e-05/0.00762, allocations: 59.11 kB / 278.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.288e-05/0.007643, allocations: 8.203 kB / 278.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.59e-05/0.007668, allocations: 12.5 kB / 278.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of SimCode: time 7.92e-07/0.007669, allocations: 0 / 278.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of Templates: time 0.002264/0.009933, allocations: 0.5682 MB / 279.3 MB, free: 11.13 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 240] 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","",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.795363221084699]