Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.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.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001746/0.001746, allocations: 113.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002261/0.002261, allocations: 212.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.692/1.692, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.3003, allocations: 50.54 MB / 409.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003538/0.3039, allocations: 2.371 MB / 412.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.3051, allocations: 0.6427 MB / 412.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.3052, allocations: 4 kB / 412.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.3054, allocations: 35.59 kB / 413 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.3056, allocations: 75.33 kB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002592/0.3059, allocations: 71.84 kB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003125/0.3062, allocations: 278.6 kB / 413.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002259/0.3065, allocations: 106.7 kB / 413.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.3067, allocations: 111.6 kB / 413.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.3069, allocations: 111.5 kB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.179e-05/0.3069, allocations: 20 kB / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.029e-05/0.307, allocations: 32 kB / 413.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.17e-05/0.307, allocations: 51.78 kB / 413.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.3071, allocations: 123.4 kB / 413.9 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003277/0.3075, allocations: 264.2 kB / 414.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3075, allocations: 0 / 414.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3075, allocations: 4 kB / 414.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.3075, allocations: 0 / 414.2 MB, free: 13.32 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.000788/0.3083, allocations: 0.5262 MB / 414.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3084, allocations: 12.03 kB / 414.7 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.3085, allocations: 32.64 kB / 414.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.3089, allocations: 248.6 kB / 415 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.3089, allocations: 24.75 kB / 415 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.309, allocations: 24.28 kB / 415.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003654/0.3094, allocations: 195.5 kB / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.3094, allocations: 0 / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.477e-05/0.3094, allocations: 19.98 kB / 415.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.3094, allocations: 4 kB / 415.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002741/0.3097, allocations: 137.7 kB / 415.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009686/0.3107, allocations: 0.6229 MB / 416 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003278/0.311, allocations: 186.5 kB / 416.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.3112, allocations: 96.83 kB / 416.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.3112, allocations: 3.984 kB / 416.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.3113, allocations: 38.55 kB / 416.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.274e-06/0.3113, allocations: 0 / 416.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002047/0.3133, allocations: 1.065 MB / 417.4 MB, free: 9.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.3134, allocations: 59.34 kB / 417.5 MB, free: 9.785 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000193/0.3136, allocations: 183.2 kB / 417.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.3136, allocations: 29.7 kB / 417.7 MB, free: 9.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.3138, allocations: 144.7 kB / 417.8 MB, free: 9.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.41e-05/0.3139, allocations: 118.3 kB / 417.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.707e-05/0.314, allocations: 53.7 kB / 418 MB, free: 9.238 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3141, allocations: 330.8 kB / 418.3 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.3143, allocations: 71.97 kB / 418.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.3145, allocations: 98.81 kB / 418.5 MB, free: 8.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003385/0.3148, allocations: 197.5 kB / 418.7 MB, free: 8.531 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3148, allocations: 0 / 418.7 MB, free: 8.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005086/0.3153, allocations: 295.1 kB / 419 MB, free: 8.234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.3154, allocations: 8 kB / 419 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.3154, allocations: 4.062 kB / 419 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001966/0.3156, allocations: 44.83 kB / 419 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.3159, allocations: 55.91 kB / 419.1 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001652/0.3175, allocations: 1.736 MB / 420.8 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.3177, allocations: 12.02 kB / 420.8 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.3177, allocations: 12 kB / 420.8 MB, free: 6.227 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000166/0.3179, allocations: 141.8 kB / 421 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.26e-05/0.3179, allocations: 27.66 kB / 421 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.103e-05/0.318, allocations: 30.66 kB / 421 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.318, allocations: 4 kB / 421 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.318, allocations: 3.984 kB / 421 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.318, allocations: 0 / 421 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/0.3192, allocations: 0.7893 MB / 421.8 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.3192, allocations: 4 kB / 421.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002629/0.3195, allocations: 67.78 kB / 421.9 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001256/0.3196, allocations: 36.83 kB / 421.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.3196, allocations: 4 kB / 421.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001259/0.3209, allocations: 1.481 MB / 423.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.3209, allocations: 8.094 kB / 423.4 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006849/0.3216, allocations: 474.4 kB / 423.9 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.127e-05/0.3217, allocations: 108.9 kB / 424 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.3217, allocations: 8 kB / 424 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.3219, allocations: 8 kB / 424 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.635e-05/0.3219, allocations: 19.97 kB / 424 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.322, allocations: 8 kB / 424 MB, free: 2.734 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001238/0.3221, allocations: 140.3 kB / 424.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3221, allocations: 0 / 424.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004251/0.3225, allocations: 64 kB / 424.2 MB, free: 2.535 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001561/0.3227, allocations: 112.3 kB / 424.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000651/0.3234, allocations: 338.4 kB / 424.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3234, allocations: 0 / 424.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003399/0.3237, allocations: 246.8 kB / 424.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.3242, allocations: 44.14 kB / 425 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.3255, allocations: 0.7542 MB / 425.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.3259, allocations: 0.7564 MB / 426.5 MB, free: 196 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.994e-05/0.3259, allocations: 23.44 kB / 426.5 MB, free: 176 kB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.3259, allocations: 0 / 426.5 MB, free: 176 kB / 334.1 MB Notification: Performance of Templates: time 0.006309/0.3323, allocations: 3.929 MB / 430.4 MB, free: 12.25 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches