Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007968/0.000797, allocations: 94.39 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001051/0.001051, allocations: 200.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002442/0.0002441, allocations: 11.98 kB / 308.4 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09944/0.0997, allocations: 51.52 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.001995/0.1017, allocations: 1.329 MB / 361.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.1028, allocations: 0.5572 MB / 361.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.835e-05/0.103, allocations: 3.938 kB / 361.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.552e-05/0.103, allocations: 0 / 361.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001496/0.1032, allocations: 11.92 kB / 361.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003342/0.1035, allocations: 55.83 kB / 361.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000107/0.1036, allocations: 47.86 kB / 361.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.1037, allocations: 31.89 kB / 362 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.1039, allocations: 23.94 kB / 362 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.753e-05/0.104, allocations: 23.8 kB / 362 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.556e-05/0.104, allocations: 4 kB / 362 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.413e-05/0.104, allocations: 4 kB / 362 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.35e-05/0.1041, allocations: 19.91 kB / 362 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.056e-05/0.1041, allocations: 49.45 kB / 362.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.1043, allocations: 43.91 kB / 362.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1043, allocations: 8 kB / 362.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1043, allocations: 0 / 362.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.1043, allocations: 0 / 362.1 MB, free: 11.06 MB / 302.1 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.0004769/0.1048, allocations: 371.5 kB / 362.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1048, allocations: 8.031 kB / 362.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001717/0.105, allocations: 28.75 kB / 362.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.1052, allocations: 204.6 kB / 362.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.567e-06/0.1052, allocations: 4.375 kB / 362.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.1053, allocations: 12.06 kB / 362.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003124/0.1056, allocations: 126.7 kB / 362.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.1056, allocations: 8 kB / 362.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.1056, allocations: 7.938 kB / 362.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1056, allocations: 0 / 362.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001011/0.1057, allocations: 31.92 kB / 362.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003739/0.1061, allocations: 291.5 kB / 363.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.1063, allocations: 94.3 kB / 363.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.315e-05/0.1064, allocations: 47.55 kB / 363.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.1064, allocations: 4 kB / 363.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.1064, allocations: 38.55 kB / 363.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.1064, allocations: 0 / 363.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003086/0.1067, allocations: 109.5 kB / 363.5 MB, free: 9.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.122e-05/0.1068, allocations: 132.5 kB / 363.6 MB, free: 9.312 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.107, allocations: 150.9 kB / 363.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.107, allocations: 29.7 kB / 363.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.858e-05/0.107, allocations: 96.06 kB / 363.9 MB, free: 9.016 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.1071, allocations: 7.906 kB / 363.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.396e-05/0.1071, allocations: 13.72 kB / 363.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1072, allocations: 318.8 kB / 364.2 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.163e-05/0.1073, allocations: 12 kB / 364.2 MB, free: 8.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.143e-05/0.1073, allocations: 48.28 kB / 364.3 MB, free: 8.594 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.1075, allocations: 64.22 kB / 364.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1075, allocations: 0 / 364.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001667/0.1076, allocations: 89.45 kB / 364.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.1077, allocations: 4 kB / 364.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1077, allocations: 4 kB / 364.4 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.1077, allocations: 0 / 364.4 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.599e-05/0.1078, allocations: 20.14 kB / 364.5 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.1078, allocations: 0 / 364.5 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.333e-05/0.1079, allocations: 7.938 kB / 364.5 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.1079, allocations: 11.94 kB / 364.5 MB, free: 8.375 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.509e-05/0.108, allocations: 129.6 kB / 364.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.388e-05/0.1081, allocations: 57.59 kB / 364.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.768e-05/0.1081, allocations: 15.83 kB / 364.7 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.1081, allocations: 3.984 kB / 364.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1081, allocations: 4.188 kB / 364.7 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.1081, allocations: 11.94 kB / 364.7 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001851/0.1083, allocations: 185.5 kB / 364.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1083, allocations: 0 / 364.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.942e-05/0.1084, allocations: 15.98 kB / 364.9 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1084, allocations: 0 / 364.9 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.1084, allocations: 4 kB / 364.9 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1085, allocations: 0 / 364.9 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1085, allocations: 0 / 364.9 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002082/0.1087, allocations: 209.8 kB / 365.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.297e-05/0.1087, allocations: 97 kB / 365.2 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.1088, allocations: 0 / 365.2 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.69e-05/0.1088, allocations: 11.98 kB / 365.2 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.064e-05/0.1089, allocations: 3.938 kB / 365.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-06/0.1089, allocations: 4 kB / 365.2 MB, free: 7.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.547e-05/0.109, allocations: 118.2 kB / 365.3 MB, free: 7.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.109, allocations: 0 / 365.3 MB, free: 7.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000238/0.1092, allocations: 8 kB / 365.3 MB, free: 7.402 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001079/0.1093, allocations: 95.25 kB / 365.4 MB, free: 7.301 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001659/0.1095, allocations: 51.91 kB / 365.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1095, allocations: 0 / 365.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.658e-05/0.1096, allocations: 15.94 kB / 365.5 MB, free: 7.234 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003933/0.11, allocations: 24.02 kB / 365.5 MB, free: 7.211 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004045/0.1104, allocations: 273.8 kB / 365.8 MB, free: 6.898 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002413/0.1106, allocations: 0.7015 MB / 366.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.085e-05/0.1107, allocations: 11.44 kB / 366.5 MB, free: 6.16 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1107, allocations: 0 / 366.5 MB, free: 6.16 MB / 302.1 MB Notification: Performance of Templates: time 0.002326/0.113, allocations: 0.9312 MB / 367.4 MB, free: 5.234 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches