Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.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.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows") translateModel(Modelica.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 106.6 kB / 16.51 MB, free: 6.707 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.001089/0.001089, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.289/1.289, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009568/0.0009569, allocations: 43.11 kB / 299.9 MB, free: 6.324 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08014/0.08111, allocations: 49.45 MB / 349.4 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003083/0.08424, allocations: 2.293 MB / 351.7 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003423/0.0846, allocations: 195.2 kB / 351.9 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.004e-05/0.08469, allocations: 4 kB / 351.9 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.323e-05/0.08479, allocations: 23.78 kB / 351.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001411/0.08494, allocations: 67.52 kB / 352 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001459/0.08509, allocations: 47.97 kB / 352 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001833/0.08528, allocations: 215 kB / 352.2 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/0.08547, allocations: 91.25 kB / 352.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.44e-05/0.08557, allocations: 83.72 kB / 352.4 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.08571, allocations: 95.55 kB / 352.5 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.569e-05/0.08575, allocations: 19.98 kB / 352.5 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.783e-05/0.08579, allocations: 16 kB / 352.5 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.807e-05/0.08584, allocations: 39.84 kB / 352.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.08594, allocations: 107.5 kB / 352.7 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002151/0.08616, allocations: 251.3 kB / 352.9 MB, free: 1.316 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.08617, allocations: 4 kB / 352.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.08618, allocations: 4 kB / 352.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.08619, allocations: 0 / 352.9 MB, free: 1.309 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0006374/0.08684, allocations: 0.5032 MB / 353.4 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.08688, allocations: 12.03 kB / 353.4 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.993e-05/0.08693, allocations: 28.64 kB / 353.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.08712, allocations: 212 kB / 353.7 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.08715, allocations: 20.94 kB / 353.7 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.0872, allocations: 20.38 kB / 353.7 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003415/0.08754, allocations: 232.8 kB / 353.9 MB, free: 192 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.08757, allocations: 4.094 kB / 353.9 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.185e-05/0.0876, allocations: 19.94 kB / 354 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.08761, allocations: 4 kB / 354 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002159/0.08783, allocations: 139.3 kB / 354.1 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.08885, allocations: 0.8594 MB / 355 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002103/0.08908, allocations: 159.7 kB / 355.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.123e-05/0.08918, allocations: 66.5 kB / 355.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.0892, allocations: 4 kB / 355.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.08923, allocations: 42.48 kB / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.393e-06/0.08923, allocations: 0 / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003526/0.08959, allocations: 174.2 kB / 355.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.08965, allocations: 106.8 kB / 355.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.08983, allocations: 190.6 kB / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.08985, allocations: 33.7 kB / 355.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.468e-05/0.08994, allocations: 155.7 kB / 355.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.401e-05/0.08999, allocations: 67.08 kB / 355.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.901e-05/0.09007, allocations: 57.89 kB / 356 MB, free: 13.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.09019, allocations: 330.8 kB / 356.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.698e-05/0.09028, allocations: 52.53 kB / 356.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.09042, allocations: 151.6 kB / 356.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002398/0.09067, allocations: 229.6 kB / 356.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.09068, allocations: 4 kB / 356.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003385/0.09103, allocations: 237.1 kB / 357 MB, free: 12.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.09105, allocations: 7.938 kB / 357 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.09106, allocations: 4 kB / 357 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.09108, allocations: 4.438 kB / 357 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002069/0.09129, allocations: 71.84 kB / 357.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.09131, allocations: 8 kB / 357.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.09144, allocations: 27.69 kB / 357.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.09146, allocations: 8 kB / 357.1 MB, free: 12.74 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 (33): * Single equations (assignments): 33 * 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 9.874e-05/0.09157, allocations: 141.7 kB / 357.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.152e-05/0.09165, allocations: 19.75 kB / 357.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.812e-05/0.0917, allocations: 29.39 kB / 357.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.09171, allocations: 0 / 357.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.09172, allocations: 4 kB / 357.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.09173, allocations: 4 kB / 357.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004966/0.09223, allocations: 424.8 kB / 357.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.09224, allocations: 0 / 357.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.09243, allocations: 35.98 kB / 357.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.09244, allocations: 0 / 357.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.09246, allocations: 8 kB / 357.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.09248, allocations: 8.094 kB / 357.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.09248, allocations: 3.938 kB / 357.8 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003429/0.09283, allocations: 373 kB / 358.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.988e-05/0.0929, allocations: 104.8 kB / 358.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.929e-05/0.09294, allocations: 11.94 kB / 358.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.09308, allocations: 4 kB / 358.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.854e-05/0.09312, allocations: 19.86 kB / 358.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.09313, allocations: 4.281 kB / 358.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.09324, allocations: 144.3 kB / 358.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09325, allocations: 0 / 358.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003512/0.09361, allocations: 51.94 kB / 358.5 MB, free: 11.26 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.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 (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 8.938e-05/0.0937, allocations: 107.2 kB / 358.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002343/0.09394, allocations: 146.3 kB / 358.7 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.09395, allocations: 0 / 358.7 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.509e-05/0.09403, allocations: 56.92 kB / 358.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004684/0.09451, allocations: 36.69 kB / 358.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009174/0.09543, allocations: 0.6632 MB / 359.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.0957, allocations: 0.7361 MB / 360.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.079e-05/0.0958, allocations: 21.94 kB / 360.2 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.088e-05/0.09585, allocations: 19.44 kB / 360.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09585, allocations: 3.938 kB / 360.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of Templates: time 0.003714/0.09957, allocations: 1.456 MB / 361.7 MB, free: 7.965 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches