Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009409/0.0009408, allocations: 96.75 kB / 296.8 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000316/0.0003161, allocations: 12 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2202, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.00143/0.2217, allocations: 1.305 MB / 409.4 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006569/0.2223, allocations: 0.4981 MB / 409.9 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.423e-05/0.2224, allocations: 7.938 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.139e-05/0.2225, allocations: 3.984 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.2226, allocations: 7.938 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002445/0.2228, allocations: 51.81 kB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.554e-05/0.2229, allocations: 47.86 kB / 410 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.223, allocations: 17.7 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.717e-05/0.2232, allocations: 29.64 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.347e-05/0.2232, allocations: 19.86 kB / 410 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.2232, allocations: 0 / 410 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.765e-05/0.2233, allocations: 7.984 kB / 410 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.87e-05/0.2233, allocations: 11.94 kB / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.398e-05/0.2234, allocations: 54.34 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.898e-05/0.2234, allocations: 39.92 kB / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.2234, allocations: 8.906 kB / 410.2 MB, free: 25.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2235, allocations: 0 / 410.2 MB, free: 25.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.2235, allocations: 0 / 410.2 MB, free: 25.6 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003714/0.2238, allocations: 378.8 kB / 410.5 MB, free: 25.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.2239, allocations: 12.03 kB / 410.5 MB, free: 25.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.224, allocations: 24.83 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.2242, allocations: 201.1 kB / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.806e-06/0.2242, allocations: 384 / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.074e-05/0.2242, allocations: 8.125 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.2245, allocations: 142.9 kB / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.2245, allocations: 0 / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.2245, allocations: 4 kB / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.2245, allocations: 0 / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.367e-05/0.2246, allocations: 29.67 kB / 410.9 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002842/0.2249, allocations: 291.4 kB / 411.2 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001056/0.225, allocations: 102.4 kB / 411.3 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.419e-05/0.2251, allocations: 51.48 kB / 411.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.2251, allocations: 0 / 411.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.739e-05/0.2252, allocations: 38.56 kB / 411.4 MB, free: 24.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 8.81e-07/0.2252, allocations: 0 / 411.4 MB, free: 24.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002627/0.2254, allocations: 109.3 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.2255, allocations: 137 kB / 411.7 MB, free: 23.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.553e-05/0.2256, allocations: 141.8 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.667e-06/0.2256, allocations: 29.7 kB / 411.8 MB, free: 23.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.939e-05/0.2256, allocations: 96.02 kB / 411.9 MB, free: 23.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.462e-05/0.2256, allocations: 11.89 kB / 411.9 MB, free: 23.56 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-06/0.2257, allocations: 0 / 411.9 MB, free: 23.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.634e-05/0.2257, allocations: 314.8 kB / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.375e-05/0.2258, allocations: 19.92 kB / 412.3 MB, free: 23.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.427e-05/0.2258, allocations: 48.28 kB / 412.3 MB, free: 23.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.531e-05/0.2259, allocations: 68.22 kB / 412.4 MB, free: 23.08 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2259, allocations: 0 / 412.4 MB, free: 23.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001283/0.226, allocations: 81.55 kB / 412.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.2261, allocations: 11.94 kB / 412.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.2261, allocations: 4.156 kB / 412.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.2261, allocations: 0 / 412.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.698e-05/0.2262, allocations: 12 kB / 412.5 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.2262, allocations: 3.984 kB / 412.5 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.378e-05/0.2262, allocations: 11.84 kB / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.2263, allocations: 4 kB / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (6): * Single equations (assignments): 6 * 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 6.113e-05/0.2263, allocations: 125.8 kB / 412.6 MB, free: 22.81 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.663e-05/0.2264, allocations: 53.62 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.028e-05/0.2264, allocations: 19.89 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2264, allocations: 0 / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2264, allocations: 0 / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2265, allocations: 7.938 kB / 412.7 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.2266, allocations: 177.6 kB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.2266, allocations: 3.984 kB / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.983e-05/0.2267, allocations: 15.94 kB / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.2267, allocations: 0 / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.2267, allocations: 4 kB / 412.9 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2267, allocations: 0 / 412.9 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.2267, allocations: 7.984 kB / 412.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001474/0.2269, allocations: 202.1 kB / 413.1 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.115e-05/0.2269, allocations: 97 kB / 413.2 MB, free: 22.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.2269, allocations: 7.938 kB / 413.2 MB, free: 22.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.719e-05/0.227, allocations: 4 kB / 413.2 MB, free: 22.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.277e-05/0.227, allocations: 3.938 kB / 413.2 MB, free: 22.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.2271, allocations: 7.984 kB / 413.2 MB, free: 22.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.712e-05/0.2271, allocations: 106.1 kB / 413.3 MB, free: 22 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2271, allocations: 4 kB / 413.3 MB, free: 22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002139/0.2273, allocations: 8 kB / 413.3 MB, free: 21.99 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (6): * Single equations (assignments): 6 * 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 8.757e-05/0.2274, allocations: 103.2 kB / 413.4 MB, free: 21.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001381/0.2276, allocations: 43.92 kB / 413.5 MB, free: 21.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2276, allocations: 3.938 kB / 413.5 MB, free: 21.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.891e-05/0.2276, allocations: 19.92 kB / 413.5 MB, free: 21.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.228, allocations: 34.95 kB / 413.5 MB, free: 21.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002895/0.2283, allocations: 241.6 kB / 413.8 MB, free: 21.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.2284, allocations: 0.7004 MB / 414.5 MB, free: 20.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.023e-05/0.2285, allocations: 15.44 kB / 414.5 MB, free: 20.76 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2285, allocations: 0 / 414.5 MB, free: 20.76 MB / 298.7 MB Notification: Performance of Templates: time 0.001803/0.2303, allocations: 0.9135 MB / 415.4 MB, free: 19.85 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches