Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.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.Mechanics.Translational.Examples.Accelerate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|accelerate.s|accelerate.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate") translateModel(Modelica.Mechanics.Translational.Examples.Accelerate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|accelerate.s|accelerate.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 111.5 kB / 17.69 MB, free: 5.438 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.001033/0.001033, allocations: 192 kB / 18.63 MB, free: 4.508 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.347/1.347, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000978/0.0009782, allocations: 43.61 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09572/0.09672, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Accelerate): time 0.002763/0.09952, allocations: 1.623 MB / 353.1 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002622/0.0998, allocations: 75.7 kB / 353.2 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.001e-05/0.09988, allocations: 0 / 353.2 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001436/0.1, allocations: 11.88 kB / 353.2 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.042e-05/0.1001, allocations: 15.84 kB / 353.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001418/0.1003, allocations: 15.98 kB / 353.2 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.1004, allocations: 75.66 kB / 353.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.1005, allocations: 12 kB / 353.3 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.347e-05/0.1006, allocations: 31.91 kB / 353.4 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.019e-05/0.1007, allocations: 23.86 kB / 353.4 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.597e-05/0.1007, allocations: 4 kB / 353.4 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.369e-05/0.1007, allocations: 4 kB / 353.4 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.267e-05/0.1007, allocations: 15.98 kB / 353.4 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.994e-05/0.1008, allocations: 27.81 kB / 353.4 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.1009, allocations: 71.78 kB / 353.5 MB, free: 1.684 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1009, allocations: 0 / 353.5 MB, free: 1.684 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.1009, allocations: 0 / 353.5 MB, free: 1.684 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.101, allocations: 3.938 kB / 353.5 MB, free: 1.68 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.0004411/0.1014, allocations: 359.3 kB / 353.9 MB, free: 1.277 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.1014, allocations: 12.03 kB / 353.9 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.02e-05/0.1015, allocations: 4.938 kB / 353.9 MB, free: 1.262 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.1017, allocations: 184.2 kB / 354.1 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/0.1017, allocations: 12.38 kB / 354.1 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.734e-05/0.1017, allocations: 8.359 kB / 354.1 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001336/0.1019, allocations: 69.48 kB / 354.1 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.1019, allocations: 4.172 kB / 354.1 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.1019, allocations: 3.938 kB / 354.1 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.1019, allocations: 4 kB / 354.2 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.542e-05/0.102, allocations: 35.92 kB / 354.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005976/0.1026, allocations: 381 kB / 354.6 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.859e-05/0.1027, allocations: 62.56 kB / 354.6 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.278e-05/0.1028, allocations: 20.84 kB / 354.6 MB, free: 396 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.128e-05/0.1028, allocations: 4 kB / 354.6 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.1028, allocations: 38.5 kB / 354.7 MB, free: 344 kB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.1028, allocations: 0 / 354.7 MB, free: 344 kB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006881/0.1035, allocations: 0.5169 MB / 355.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.1035, allocations: 51.41 kB / 355.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.227e-05/0.1036, allocations: 121.8 kB / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.1037, allocations: 25.7 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.995e-05/0.1037, allocations: 92.05 kB / 355.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/0.1037, allocations: 31.55 kB / 355.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.871e-05/0.1038, allocations: 25.72 kB / 355.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1039, allocations: 326.8 kB / 355.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.577e-05/0.1039, allocations: 16 kB / 355.9 MB, free: 15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.477e-05/0.104, allocations: 57.14 kB / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.913e-05/0.1041, allocations: 93.02 kB / 356 MB, free: 14.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1041, allocations: 0 / 356 MB, free: 14.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001542/0.1043, allocations: 109.5 kB / 356.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.1043, allocations: 4 kB / 356.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1043, allocations: 0 / 356.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.1043, allocations: 4 kB / 356.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.472e-05/0.1044, allocations: 24.45 kB / 356.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.1044, allocations: 11.97 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.012e-05/0.1045, allocations: 7.938 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.226e-06/0.1045, allocations: 4 kB / 356.2 MB, free: 14.65 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (13): * Single equations (assignments): 13 * 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.368e-05/0.1046, allocations: 125.8 kB / 356.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.858e-05/0.1046, allocations: 11.84 kB / 356.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.032e-05/0.1047, allocations: 8.375 kB / 356.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1047, allocations: 0 / 356.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1047, allocations: 3.938 kB / 356.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1047, allocations: 0 / 356.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004412/0.1051, allocations: 418.6 kB / 356.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1051, allocations: 0 / 356.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.674e-05/0.1052, allocations: 19.98 kB / 356.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/0.1052, allocations: 8.031 kB / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.1053, allocations: 0 / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.1053, allocations: 8.156 kB / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1053, allocations: 0 / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002103/0.1055, allocations: 239.5 kB / 357 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.908e-05/0.1055, allocations: 85.05 kB / 357.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.1056, allocations: 4 kB / 357.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.905e-05/0.1056, allocations: 0 / 357.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.1057, allocations: 11.98 kB / 357.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.1057, allocations: 8 kB / 357.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.432e-05/0.1058, allocations: 91.27 kB / 357.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1058, allocations: 0 / 357.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002621/0.106, allocations: 20 kB / 357.2 MB, free: 13.48 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (accelerate.s,accelerate.v) * 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 (9): * Single equations (assignments): 9 * 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.0001202/0.1062, allocations: 111.7 kB / 357.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.1063, allocations: 59.84 kB / 357.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1063, allocations: 4 kB / 357.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.843e-05/0.1064, allocations: 31.88 kB / 357.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003023/0.1067, allocations: 12.36 kB / 357.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005478/0.1072, allocations: 335.6 kB / 357.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.1075, allocations: 0.6963 MB / 358.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.647e-05/0.1075, allocations: 8.422 kB / 358.5 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.661e-05/0.1075, allocations: 15.38 kB / 358.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1076, allocations: 0 / 358.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of Templates: time 0.002762/0.1103, allocations: 0.6492 MB / 359.1 MB, free: 11.49 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Accelerate/Accelerate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches