Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001669/0.001669, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00144/0.001441, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.492/1.492, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 64.81 kB / 307.9 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09786/0.0998, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.003441/0.1033, allocations: 1.865 MB / 360.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.1046, allocations: 0.6935 MB / 361 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.1048, allocations: 7.938 kB / 361 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.1049, allocations: 19.8 kB / 361 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001243/0.105, allocations: 31.72 kB / 361.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004298/0.1055, allocations: 115.1 kB / 361.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002129/0.1057, allocations: 143.5 kB / 361.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.1059, allocations: 61.69 kB / 361.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.106, allocations: 59.72 kB / 361.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.562e-05/0.1061, allocations: 55.64 kB / 361.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.1062, allocations: 12 kB / 361.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.66e-05/0.1062, allocations: 16 kB / 361.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.543e-05/0.1063, allocations: 23.92 kB / 361.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.51e-05/0.1064, allocations: 71.53 kB / 361.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002142/0.1066, allocations: 143.5 kB / 361.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1066, allocations: 3.938 kB / 361.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1066, allocations: 0 / 361.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.1066, allocations: 0 / 361.7 MB, free: 10.62 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006532/0.1073, allocations: 463.1 kB / 362.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.011e-05/0.1073, allocations: 8.031 kB / 362.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.1075, allocations: 32.73 kB / 362.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.1078, allocations: 236.9 kB / 362.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.1078, allocations: 8.125 kB / 362.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.1079, allocations: 8 kB / 362.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005998/0.1085, allocations: 282.2 kB / 362.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.1085, allocations: 4 kB / 362.8 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.1085, allocations: 4 kB / 362.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.1085, allocations: 0 / 362.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.1088, allocations: 71.89 kB / 362.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005429/0.1093, allocations: 431.3 kB / 363.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005003/0.1098, allocations: 290.1 kB / 363.5 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/0.1101, allocations: 116.4 kB / 363.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.1101, allocations: 4 kB / 363.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.1101, allocations: 46.48 kB / 363.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.763e-06/0.1101, allocations: 7.938 kB / 363.7 MB, free: 8.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005749/0.1107, allocations: 209.5 kB / 363.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/0.1109, allocations: 196 kB / 364.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000192/0.1111, allocations: 186.6 kB / 364.3 MB, free: 7.746 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.1111, allocations: 33.7 kB / 364.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.047e-05/0.1112, allocations: 100.1 kB / 364.4 MB, free: 7.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.1112, allocations: 11.89 kB / 364.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.479e-05/0.1113, allocations: 33.7 kB / 364.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.1114, allocations: 326.8 kB / 364.8 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.763e-05/0.1115, allocations: 19.98 kB / 364.8 MB, free: 7.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.1117, allocations: 138.4 kB / 364.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002294/0.1119, allocations: 153.6 kB / 365.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1119, allocations: 0 / 365.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000351/0.1123, allocations: 169.2 kB / 365.3 MB, free: 6.648 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.1123, allocations: 10.12 kB / 365.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1123, allocations: 4.5 kB / 365.3 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.1124, allocations: 8 kB / 365.3 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.1125, allocations: 31.98 kB / 365.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.1125, allocations: 7.938 kB / 365.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.1126, allocations: 23.83 kB / 365.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.1126, allocations: 8 kB / 365.3 MB, free: 6.559 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (17): * Single equations (assignments): 17 * 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 0.0001323/0.1128, allocations: 137.7 kB / 365.5 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000298/0.1131, allocations: 141.3 kB / 365.6 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.49e-05/0.1131, allocations: 21.44 kB / 365.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1132, allocations: 4 kB / 365.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.1132, allocations: 4 kB / 365.6 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.1132, allocations: 3.984 kB / 365.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003039/0.1135, allocations: 217.5 kB / 365.9 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1135, allocations: 0 / 365.9 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/0.1137, allocations: 39.91 kB / 365.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.1137, allocations: 3.938 kB / 365.9 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.1137, allocations: 8 kB / 365.9 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.1137, allocations: 4 kB / 365.9 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1137, allocations: 8 kB / 365.9 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004363/0.1141, allocations: 349 kB / 366.3 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.1143, allocations: 116.8 kB / 366.4 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.051e-05/0.1143, allocations: 15.86 kB / 366.4 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.1145, allocations: 8.094 kB / 366.4 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.071e-05/0.1145, allocations: 11.92 kB / 366.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.1145, allocations: 8 kB / 366.4 MB, free: 5.371 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001234/0.1146, allocations: 136.3 kB / 366.6 MB, free: 5.238 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1146, allocations: 0 / 366.6 MB, free: 5.238 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003371/0.115, allocations: 20 kB / 366.6 MB, free: 5.219 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (17): * Single equations (assignments): 17 * 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.0001182/0.1151, allocations: 107.2 kB / 366.7 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003127/0.1154, allocations: 115.8 kB / 366.8 MB, free: 4.992 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1155, allocations: 1 kB / 366.8 MB, free: 4.992 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.902e-05/0.1155, allocations: 8 kB / 366.8 MB, free: 4.984 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006799/0.1162, allocations: 112.4 kB / 366.9 MB, free: 4.875 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008987/0.1171, allocations: 401.1 kB / 367.3 MB, free: 4.438 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003759/0.1175, allocations: 0.7163 MB / 368 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.497e-05/0.1175, allocations: 19.42 kB / 368 MB, free: 3.68 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1176, allocations: 4 kB / 368 MB, free: 3.676 MB / 302.1 MB Notification: Performance of Templates: time 0.003741/0.1213, allocations: 1.782 MB / 369.8 MB, free: 1.902 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches