Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.008867/0.008867, allocations: 105.7 kB / 21.98 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001854/0.001854, allocations: 216.4 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.535/1.535, allocations: 230.6 MB / 259 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] 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.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|inertia1.w|inertia2.w|inertia3.w|inertia4.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|inertia1.w|inertia2.w|inertia3.w|inertia4.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [Timeout 660] "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.002389/0.002389, allocations: 71.91 kB / 379.8 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2748, allocations: 53.36 MB / 433.2 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003826/0.2786, allocations: 2.292 MB / 435.5 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.28, allocations: 0.779 MB / 436.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.2801, allocations: 7.938 kB / 436.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.2803, allocations: 35.59 kB / 436.3 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002804/0.2806, allocations: 87.33 kB / 436.4 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.2809, allocations: 119.7 kB / 436.5 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003736/0.2813, allocations: 298.6 kB / 436.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.2814, allocations: 44.58 kB / 436.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.2816, allocations: 111.6 kB / 436.9 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/0.2817, allocations: 123.5 kB / 437 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.749e-05/0.2818, allocations: 20 kB / 437.1 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.744e-05/0.2818, allocations: 20 kB / 437.1 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.141e-05/0.2819, allocations: 51.72 kB / 437.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.282, allocations: 127.4 kB / 437.3 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003247/0.2823, allocations: 264.2 kB / 437.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2823, allocations: 0 / 437.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2823, allocations: 0 / 437.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.2823, allocations: 0 / 437.5 MB, free: 2.582 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008331/0.2832, allocations: 465.5 kB / 438 MB, free: 2.098 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.2832, allocations: 8.031 kB / 438 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.167e-05/0.2833, allocations: 32.75 kB / 438 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003571/0.2836, allocations: 194.9 kB / 438.2 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.2837, allocations: 16.81 kB / 438.2 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.073e-05/0.2837, allocations: 24.38 kB / 438.2 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004535/0.2842, allocations: 242.9 kB / 438.5 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.2842, allocations: 3.953 kB / 438.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.2842, allocations: 12 kB / 438.5 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.2842, allocations: 4 kB / 438.5 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000343/0.2846, allocations: 143.8 kB / 438.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.286, allocations: 0.9892 MB / 439.6 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004637/0.2865, allocations: 206.4 kB / 439.8 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.2866, allocations: 63.48 kB / 439.9 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.2866, allocations: 3.984 kB / 439.9 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.903e-05/0.2867, allocations: 42.5 kB / 439.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.483e-06/0.2867, allocations: 0 / 439.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005915/0.2873, allocations: 201.3 kB / 440.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.752e-05/0.2874, allocations: 136.5 kB / 440.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.2876, allocations: 191.2 kB / 440.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.2876, allocations: 29.7 kB / 440.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.2877, allocations: 164.2 kB / 440.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.302e-05/0.2878, allocations: 71.42 kB / 440.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-05/0.2879, allocations: 53.59 kB / 440.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.288, allocations: 330.8 kB / 441.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.2882, allocations: 59.95 kB / 441.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.2884, allocations: 165.6 kB / 441.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003863/0.2888, allocations: 237.5 kB / 441.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.2888, allocations: 4 kB / 441.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004829/0.2893, allocations: 249.2 kB / 441.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.2893, allocations: 7.938 kB / 441.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.2893, allocations: 4.375 kB / 441.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.2893, allocations: 12 kB / 441.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002773/0.2896, allocations: 68.09 kB / 441.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.2896, allocations: 7.984 kB / 441.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.2898, allocations: 32.53 kB / 441.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.2898, allocations: 16 kB / 441.9 MB, free: 13.78 MB / 350.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 (32): * Single equations (assignments): 32 * 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.0001364/0.2899, allocations: 133.8 kB / 442.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.264e-05/0.29, allocations: 19.84 kB / 442.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.355e-05/0.2901, allocations: 25.02 kB / 442.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2901, allocations: 8 kB / 442.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2901, allocations: 0 / 442.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2901, allocations: 4 kB / 442.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004702/0.2906, allocations: 244.5 kB / 442.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.2906, allocations: 3.984 kB / 442.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002722/0.2908, allocations: 55.91 kB / 442.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.2908, allocations: 7.938 kB / 442.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.2909, allocations: 0 / 442.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.2909, allocations: 4 kB / 442.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2909, allocations: 0 / 442.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006478/0.2915, allocations: 0.5245 MB / 443 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.547e-05/0.2916, allocations: 23.78 kB / 443 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.34e-05/0.2916, allocations: 11.98 kB / 443 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.2918, allocations: 8 kB / 443 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.955e-05/0.2918, allocations: 11.98 kB / 443 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.2919, allocations: 7.984 kB / 443 MB, free: 12.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001275/0.292, allocations: 144.4 kB / 443.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.292, allocations: 0 / 443.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004321/0.2924, allocations: 63.84 kB / 443.2 MB, free: 12.42 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * 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 (16): * Single equations (assignments): 16 * 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.0001275/0.2925, allocations: 106.6 kB / 443.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003888/0.2929, allocations: 155.9 kB / 443.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2929, allocations: 0 / 443.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001448/0.2931, allocations: 59.91 kB / 443.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006634/0.2937, allocations: 57.31 kB / 443.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.2952, allocations: 0.8561 MB / 444.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.2956, allocations: 0.748 MB / 445.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.761e-05/0.2957, allocations: 27.42 kB / 445.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2957, allocations: 0 / 445.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of Templates: time 0.005299/0.301, allocations: 2.848 MB / 448.1 MB, free: 7.504 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.8662623970303684]