Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007401/0.0007401, allocations: 90.69 kB / 17.31 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008065/0.0008066, allocations: 179.2 kB / 18.22 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 223.3 MB / 242.3 MB, free: 14.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003065, allocations: 11.94 kB / 302.1 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07363/0.07395, allocations: 50.41 MB / 352.5 MB, free: 3.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.001635/0.07563, allocations: 1.391 MB / 353.9 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003477/0.07599, allocations: 163.5 kB / 354.1 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.012e-05/0.07608, allocations: 3.938 kB / 354.1 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.073e-05/0.07612, allocations: 3.984 kB / 354.1 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.07622, allocations: 7.938 kB / 354.1 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002177/0.07645, allocations: 47.83 kB / 354.1 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.562e-05/0.07654, allocations: 47.88 kB / 354.2 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.08e-05/0.07664, allocations: 27.98 kB / 354.2 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.239e-05/0.07668, allocations: 23.81 kB / 354.2 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.148e-05/0.07673, allocations: 19.84 kB / 354.2 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.07675, allocations: 4 kB / 354.2 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.889e-06/0.07677, allocations: 3.938 kB / 354.2 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.234e-05/0.07681, allocations: 15.92 kB / 354.3 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.317e-05/0.07686, allocations: 57.45 kB / 354.3 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.194e-05/0.07694, allocations: 51.89 kB / 354.4 MB, free: 1.539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.07695, allocations: 0 / 354.4 MB, free: 1.539 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.07696, allocations: 0 / 354.4 MB, free: 1.539 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.07696, allocations: 0 / 354.4 MB, free: 1.539 MB / 286.1 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.0003686/0.07734, allocations: 371.5 kB / 354.7 MB, free: 1.125 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.85e-05/0.07737, allocations: 8.031 kB / 354.7 MB, free: 1.117 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.215e-05/0.07741, allocations: 8.844 kB / 354.7 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001593/0.07757, allocations: 202.1 kB / 354.9 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.0776, allocations: 16.38 kB / 355 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.07762, allocations: 4.375 kB / 355 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.07793, allocations: 158.4 kB / 355.1 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.07795, allocations: 4.188 kB / 355.1 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.07797, allocations: 11.94 kB / 355.1 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.07798, allocations: 0 / 355.1 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000116/0.0781, allocations: 39.92 kB / 355.2 MB, free: 0.625 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003319/0.07844, allocations: 377.7 kB / 355.5 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000213/0.07866, allocations: 115.8 kB / 355.6 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.07878, allocations: 58.62 kB / 355.7 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.07881, allocations: 0 / 355.7 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.07884, allocations: 42.55 kB / 355.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.07884, allocations: 0 / 355.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.000316/0.07916, allocations: 125.5 kB / 355.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.07923, allocations: 114.8 kB / 356 MB, free: 15.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.805e-05/0.07933, allocations: 133.8 kB / 356.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.07935, allocations: 25.7 kB / 356.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.037e-05/0.0794, allocations: 88.3 kB / 356.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.816e-05/0.07942, allocations: 15.88 kB / 356.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.339e-05/0.07945, allocations: 13.72 kB / 356.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.5e-05/0.07954, allocations: 323 kB / 356.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.094e-05/0.0796, allocations: 20 kB / 356.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.599e-05/0.07968, allocations: 71.66 kB / 356.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001331/0.07983, allocations: 107.5 kB / 356.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.07984, allocations: 4.188 kB / 356.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001877/0.08003, allocations: 109.6 kB / 356.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.08006, allocations: 15.22 kB / 356.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.08007, allocations: 0 / 356.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.08008, allocations: 4 kB / 356.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.233e-05/0.08016, allocations: 19.98 kB / 356.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.08017, allocations: 7.938 kB / 356.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.236e-05/0.08023, allocations: 7.984 kB / 356.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.08025, allocations: 8 kB / 356.9 MB, free: 14.63 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.018e-05/0.08033, allocations: 137.7 kB / 357.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.08046, allocations: 73.59 kB / 357.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.196e-05/0.0805, allocations: 20.59 kB / 357.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.08051, allocations: 4 kB / 357.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.08052, allocations: 0 / 357.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.08053, allocations: 0 / 357.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.08075, allocations: 185.5 kB / 357.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.08076, allocations: 3.984 kB / 357.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.998e-05/0.08085, allocations: 20 kB / 357.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.08086, allocations: 0 / 357.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.08087, allocations: 8 kB / 357.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.08088, allocations: 3.984 kB / 357.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.08088, allocations: 0 / 357.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003192/0.08121, allocations: 320.2 kB / 357.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.468e-05/0.08127, allocations: 89 kB / 357.8 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.0813, allocations: 11.94 kB / 357.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.08141, allocations: 11.98 kB / 357.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.931e-05/0.08144, allocations: 0 / 357.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.032e-06/0.08145, allocations: 4 kB / 357.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.586e-05/0.08152, allocations: 107.2 kB / 357.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.08152, allocations: 0 / 357.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002951/0.08183, allocations: 16 kB / 357.9 MB, free: 13.52 MB / 302.1 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 (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.509e-05/0.08191, allocations: 103.1 kB / 358 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001617/0.08208, allocations: 63.91 kB / 358.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.08209, allocations: 0.5625 kB / 358.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.589e-05/0.08214, allocations: 15.94 kB / 358.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.08258, allocations: 51.19 kB / 358.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003527/0.08295, allocations: 274.5 kB / 358.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002185/0.08318, allocations: 0.7007 MB / 359.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.498e-05/0.08321, allocations: 11.44 kB / 359.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.08322, allocations: 0 / 359.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of Templates: time 0.002017/0.08524, allocations: 0.8951 MB / 360 MB, free: 11.35 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches