Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001431/0.001431, allocations: 195.2 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008322/0.0008324, allocations: 98.08 kB / 296.8 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002488/0.0002489, allocations: 11.98 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.215, allocations: 51.29 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.001521/0.2166, allocations: 1.261 MB / 409.3 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006596/0.2172, allocations: 485.7 kB / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.13e-05/0.2173, allocations: 0 / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.821e-05/0.2174, allocations: 0 / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001319/0.2175, allocations: 11.92 kB / 409.8 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.2178, allocations: 36.47 kB / 409.8 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.019e-05/0.2179, allocations: 47.78 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.924e-05/0.218, allocations: 25.27 kB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.317e-05/0.2181, allocations: 17.5 kB / 409.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.013e-05/0.2181, allocations: 15.92 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.2181, allocations: 3.984 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.759e-05/0.2182, allocations: 8 kB / 409.9 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.12e-05/0.2182, allocations: 13.14 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.826e-05/0.2183, allocations: 49.52 kB / 410 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.286e-05/0.2183, allocations: 35.92 kB / 410 MB, free: 25.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.2184, allocations: 4.531 kB / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2184, allocations: 0.6875 kB / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.2184, allocations: 0 / 410 MB, free: 25.68 MB / 298.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.0003958/0.2188, allocations: 365.9 kB / 410.4 MB, free: 25.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.2188, allocations: 12.03 kB / 410.4 MB, free: 25.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001387/0.219, allocations: 18.09 kB / 410.4 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.2191, allocations: 190.6 kB / 410.6 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.754e-06/0.2192, allocations: 9.719 kB / 410.6 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.2192, allocations: 4.375 kB / 410.6 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002252/0.2194, allocations: 116 kB / 410.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.2194, allocations: 3.938 kB / 410.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.2194, allocations: 0 / 410.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.2194, allocations: 2.562 kB / 410.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.315e-05/0.2195, allocations: 23.98 kB / 410.8 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000264/0.2198, allocations: 269.7 kB / 411 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.949e-05/0.2199, allocations: 41.16 kB / 411.1 MB, free: 24.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.885e-05/0.2199, allocations: 25.77 kB / 411.1 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.22, allocations: 0 / 411.1 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/0.22, allocations: 34.56 kB / 411.1 MB, free: 24.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.21e-07/0.22, allocations: 0 / 411.1 MB, free: 24.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002283/0.2202, allocations: 77.52 kB / 411.2 MB, free: 24.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.2203, allocations: 81.3 kB / 411.3 MB, free: 24.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.373e-05/0.2204, allocations: 150.1 kB / 411.4 MB, free: 24.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.558e-06/0.2204, allocations: 25.7 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.395e-05/0.2204, allocations: 84.14 kB / 411.5 MB, free: 23.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.324e-05/0.2205, allocations: 3.984 kB / 411.5 MB, free: 23.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-06/0.2205, allocations: 0 / 411.5 MB, free: 23.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.122e-05/0.2205, allocations: 322.8 kB / 411.9 MB, free: 23.63 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.612e-05/0.2206, allocations: 8 kB / 411.9 MB, free: 23.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.387e-05/0.2206, allocations: 25.7 kB / 411.9 MB, free: 23.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.758e-05/0.2207, allocations: 33.66 kB / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.2207, allocations: 3.984 kB / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.867e-05/0.2208, allocations: 65.59 kB / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.2208, allocations: 8 kB / 412 MB, free: 23.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2208, allocations: 3.938 kB / 412 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.2208, allocations: 0 / 412 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.397e-05/0.2209, allocations: 8 kB / 412 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.221, allocations: 3.984 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.946e-05/0.221, allocations: 4 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-06/0.221, allocations: 0 / 412 MB, free: 23.45 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.759e-05/0.2211, allocations: 129.8 kB / 412.1 MB, free: 23.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.713e-05/0.2211, allocations: 37.59 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.964e-05/0.2212, allocations: 11.88 kB / 412.2 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.2212, allocations: 3.938 kB / 412.2 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.2212, allocations: 4 kB / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2212, allocations: 0 / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.2213, allocations: 169.5 kB / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2213, allocations: 0 / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.301e-05/0.2214, allocations: 16.02 kB / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.2214, allocations: 0 / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.2214, allocations: 0 / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2214, allocations: 0 / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2214, allocations: 0 / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001275/0.2215, allocations: 168.3 kB / 412.6 MB, free: 22.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.537e-05/0.2216, allocations: 93 kB / 412.6 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.2216, allocations: 3.984 kB / 412.6 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.568e-05/0.2217, allocations: 4 kB / 412.6 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.839e-05/0.2217, allocations: 3.984 kB / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.2217, allocations: 4 kB / 412.7 MB, free: 22.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.852e-05/0.2218, allocations: 110.2 kB / 412.8 MB, free: 22.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2218, allocations: 0 / 412.8 MB, free: 22.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002351/0.222, allocations: 4 kB / 412.8 MB, free: 22.59 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.901e-05/0.2221, allocations: 99.28 kB / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001137/0.2222, allocations: 27.92 kB / 412.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.572e-06/0.2222, allocations: 0 / 412.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.55e-05/0.2223, allocations: 11.98 kB / 412.9 MB, free: 22.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003434/0.2226, allocations: 23.91 kB / 412.9 MB, free: 22.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002635/0.2229, allocations: 206.8 kB / 413.1 MB, free: 22.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001131/0.223, allocations: 0.6964 MB / 413.8 MB, free: 21.46 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.429e-05/0.223, allocations: 15.53 kB / 413.8 MB, free: 21.45 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.223, allocations: 0 / 413.8 MB, free: 21.45 MB / 298.7 MB Notification: Performance of Templates: time 0.001652/0.2247, allocations: 0.7087 MB / 414.5 MB, free: 20.75 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches