Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009079/0.000908, allocations: 109.1 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002913/0.0002916, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2427, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.001514/0.2443, allocations: 1.383 MB / 408.9 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003142/0.2446, allocations: 175.5 kB / 409.1 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.798e-05/0.2447, allocations: 5.281 kB / 409.1 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.047e-05/0.2447, allocations: 7.938 kB / 409.1 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001303/0.2449, allocations: 3.938 kB / 409.1 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.2451, allocations: 41.45 kB / 409.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.73e-05/0.2452, allocations: 43.92 kB / 409.2 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.283e-05/0.2453, allocations: 29.92 kB / 409.2 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.874e-05/0.2453, allocations: 15.88 kB / 409.2 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.462e-05/0.2454, allocations: 23.86 kB / 409.2 MB, free: 26.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.2454, allocations: 0 / 409.2 MB, free: 26.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.152e-05/0.2454, allocations: 5.875 kB / 409.2 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.001e-05/0.2455, allocations: 15.86 kB / 409.2 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.861e-05/0.2455, allocations: 33.7 kB / 409.3 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.611e-05/0.2456, allocations: 43.91 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2456, allocations: 0 / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2456, allocations: 0.9062 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.2456, allocations: 0 / 409.3 MB, free: 26.02 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003785/0.246, allocations: 381.5 kB / 409.7 MB, free: 25.6 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.246, allocations: 8.031 kB / 409.7 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.203e-05/0.2461, allocations: 11.25 kB / 409.7 MB, free: 25.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.2462, allocations: 190.8 kB / 409.9 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.2462, allocations: 8 kB / 409.9 MB, free: 25.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.2463, allocations: 11.95 kB / 409.9 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002894/0.2466, allocations: 168.6 kB / 410.1 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.2466, allocations: 0 / 410.1 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.2466, allocations: 0 / 410.1 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2466, allocations: 8 kB / 410.1 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.745e-05/0.2467, allocations: 43.91 kB / 410.1 MB, free: 25.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003112/0.247, allocations: 365.8 kB / 410.5 MB, free: 24.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.2472, allocations: 115.8 kB / 410.6 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.3e-05/0.2473, allocations: 66.61 kB / 410.7 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.2474, allocations: 4 kB / 410.7 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.261e-05/0.2474, allocations: 30.56 kB / 410.7 MB, free: 24.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.2474, allocations: 0 / 410.7 MB, free: 24.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002827/0.2477, allocations: 137.8 kB / 410.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.2477, allocations: 106.8 kB / 410.9 MB, free: 24.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.275e-05/0.2478, allocations: 140.4 kB / 411.1 MB, free: 24.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.2478, allocations: 29.7 kB / 411.1 MB, free: 23.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.38e-05/0.2479, allocations: 92.12 kB / 411.2 MB, free: 23.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/0.2479, allocations: 7.844 kB / 411.2 MB, free: 23.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-06/0.2479, allocations: 8 kB / 411.2 MB, free: 23.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.951e-05/0.248, allocations: 318.8 kB / 411.5 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.596e-05/0.248, allocations: 20.06 kB / 411.5 MB, free: 23.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.451e-05/0.2481, allocations: 71.7 kB / 411.6 MB, free: 23.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.314e-05/0.2481, allocations: 27.94 kB / 411.6 MB, free: 23.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2481, allocations: 0 / 411.6 MB, free: 23.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001474/0.2483, allocations: 113.6 kB / 411.7 MB, free: 23.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.2483, allocations: 7.984 kB / 411.8 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2483, allocations: 7.938 kB / 411.8 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.2483, allocations: 0 / 411.8 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.526e-05/0.2484, allocations: 27.88 kB / 411.8 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.2484, allocations: 3.984 kB / 411.8 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.584e-05/0.2485, allocations: 12.28 kB / 411.8 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.2485, allocations: 8 kB / 411.8 MB, free: 23.22 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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.408e-05/0.2485, allocations: 117.8 kB / 411.9 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.2487, allocations: 81.44 kB / 412 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.369e-05/0.2487, allocations: 20.7 kB / 412 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.2487, allocations: 0 / 412 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.2487, allocations: 0 / 412 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2487, allocations: 4 kB / 412 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001641/0.2489, allocations: 181.5 kB / 412.2 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2489, allocations: 4 kB / 412.2 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.921e-05/0.249, allocations: 23.98 kB / 412.2 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.249, allocations: 4 kB / 412.2 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.249, allocations: 0 / 412.2 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.249, allocations: 0 / 412.2 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.249, allocations: 4 kB / 412.2 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/0.2493, allocations: 320.2 kB / 412.6 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.966e-05/0.2494, allocations: 89 kB / 412.6 MB, free: 22.28 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.2494, allocations: 8 kB / 412.7 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.025e-05/0.2495, allocations: 8 kB / 412.7 MB, free: 22.26 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.743e-05/0.2495, allocations: 3.953 kB / 412.7 MB, free: 22.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.2495, allocations: 8 kB / 412.7 MB, free: 22.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.466e-05/0.2496, allocations: 110.1 kB / 412.8 MB, free: 22.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2496, allocations: 0 / 412.8 MB, free: 22.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003391/0.2499, allocations: 12 kB / 412.8 MB, free: 22.13 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 10 * 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.182e-05/0.25, allocations: 99.19 kB / 412.9 MB, free: 22.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001519/0.2502, allocations: 64.41 kB / 413 MB, free: 21.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2502, allocations: 4 kB / 413 MB, free: 21.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.683e-05/0.2502, allocations: 15.92 kB / 413 MB, free: 21.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004839/0.2507, allocations: 39.33 kB / 413 MB, free: 21.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003031/0.251, allocations: 268.3 kB / 413.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001289/0.2512, allocations: 0.6965 MB / 414 MB, free: 20.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.669e-05/0.2512, allocations: 11.44 kB / 414 MB, free: 20.88 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.2512, allocations: 0 / 414 MB, free: 20.88 MB / 298.7 MB Notification: Performance of Templates: time 0.00185/0.253, allocations: 0.903 MB / 414.9 MB, free: 19.97 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches