Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001684/0.001684, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002109/0.002109, allocations: 210.6 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.526/1.526, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2401/0.2401, allocations: 46.96 MB / 360.9 MB, free: 4.055 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 59.91 kB / 0.4966 GB, free: 7.258 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.3826, allocations: 66.04 MB / 0.5611 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.006054/0.3887, allocations: 2.831 MB / 0.5638 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00272/0.3914, allocations: 1.009 MB / 0.5648 GB, free: 360 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004775/0.3919, allocations: 7.938 kB / 0.5648 GB, free: 352 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003421/0.3922, allocations: 63.33 kB / 0.5649 GB, free: 288 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005107/0.3927, allocations: 123 kB / 0.565 GB, free: 164 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008456/0.3936, allocations: 175.5 kB / 0.5652 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000777/0.3944, allocations: 457.8 kB / 0.5656 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002563/0.3946, allocations: 83.92 kB / 0.5657 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003374/0.395, allocations: 163.4 kB / 0.5658 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003018/0.3953, allocations: 179.2 kB / 0.566 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.507e-05/0.3953, allocations: 32 kB / 0.566 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001569/0.3955, allocations: 51.97 kB / 0.5661 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.738e-05/0.3956, allocations: 75.7 kB / 0.5662 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002117/0.3958, allocations: 167.2 kB / 0.5663 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006143/0.3964, allocations: 448.5 kB / 0.5667 GB, free: 14.36 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3964, allocations: 0 / 0.5667 GB, free: 14.36 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3964, allocations: 0 / 0.5667 GB, free: 14.36 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.447e-06/0.3964, allocations: 0 / 0.5667 GB, free: 14.36 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001223/0.3976, allocations: 0.5949 MB / 0.5673 GB, free: 13.73 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.3977, allocations: 12.03 kB / 0.5673 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003447/0.398, allocations: 64.64 kB / 0.5674 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00047/0.3985, allocations: 233.6 kB / 0.5676 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.963e-05/0.3985, allocations: 33.36 kB / 0.5676 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.318e-05/0.3986, allocations: 44.27 kB / 0.5677 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006351/0.3993, allocations: 359.5 kB / 0.568 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.98e-05/0.3993, allocations: 11.98 kB / 0.568 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.3993, allocations: 16 kB / 0.5681 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.3993, allocations: 8 kB / 0.5681 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004721/0.3998, allocations: 219.8 kB / 0.5683 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002266/0.4021, allocations: 1.386 MB / 0.5696 GB, free: 11.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006186/0.4027, allocations: 311.7 kB / 0.5699 GB, free: 10.87 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.4029, allocations: 93.12 kB / 0.57 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.4029, allocations: 4 kB / 0.57 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.4029, allocations: 42.5 kB / 0.5701 GB, free: 10.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.4029, allocations: 0 / 0.5701 GB, free: 10.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007125/0.4036, allocations: 269.5 kB / 0.5703 GB, free: 10.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.4038, allocations: 188 kB / 0.5705 GB, free: 10.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002609/0.404, allocations: 237 kB / 0.5707 GB, free: 9.961 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.404, allocations: 29.69 kB / 0.5708 GB, free: 9.926 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.4042, allocations: 224.2 kB / 0.571 GB, free: 9.703 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.4043, allocations: 111.1 kB / 0.5711 GB, free: 9.594 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.4044, allocations: 74.12 kB / 0.5711 GB, free: 9.516 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.4046, allocations: 338.8 kB / 0.5715 GB, free: 9.176 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001819/0.4048, allocations: 84.77 kB / 0.5715 GB, free: 9.094 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003265/0.4051, allocations: 245.7 kB / 0.5718 GB, free: 8.777 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005497/0.4057, allocations: 361.1 kB / 0.5721 GB, free: 8.348 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.4057, allocations: 4 kB / 0.5721 GB, free: 8.344 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006541/0.4063, allocations: 384.8 kB / 0.5725 GB, free: 7.961 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.4063, allocations: 8 kB / 0.5725 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.4064, allocations: 8.094 kB / 0.5725 GB, free: 7.945 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/0.4064, allocations: 12.56 kB / 0.5725 GB, free: 7.934 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/0.4068, allocations: 103.8 kB / 0.5726 GB, free: 7.832 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.818e-05/0.4068, allocations: 19.92 kB / 0.5726 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.407, allocations: 43.67 kB / 0.5727 GB, free: 7.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.97e-05/0.407, allocations: 20 kB / 0.5727 GB, free: 7.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0001765/0.4072, allocations: 161.6 kB / 0.5729 GB, free: 7.582 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.4074, allocations: 31.8 kB / 0.5729 GB, free: 7.551 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001868/0.4075, allocations: 91.39 kB / 0.573 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.4075, allocations: 4 kB / 0.573 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.4076, allocations: 4 kB / 0.573 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.4076, allocations: 0 / 0.573 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005903/0.4082, allocations: 253.1 kB / 0.5732 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.4082, allocations: 3.938 kB / 0.5732 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004273/0.4086, allocations: 83.89 kB / 0.5733 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.4086, allocations: 4.312 kB / 0.5733 GB, free: 7.078 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.4086, allocations: 8 kB / 0.5733 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.4086, allocations: 4 kB / 0.5733 GB, free: 7.066 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.4086, allocations: 4 kB / 0.5733 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008527/0.4095, allocations: 0.7674 MB / 0.5741 GB, free: 6.273 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.726e-05/0.4095, allocations: 35.73 kB / 0.5741 GB, free: 6.238 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.896e-05/0.4096, allocations: 15.98 kB / 0.5741 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003207/0.4099, allocations: 8 kB / 0.5741 GB, free: 6.215 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.204e-05/0.4099, allocations: 15.97 kB / 0.5741 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/0.41, allocations: 11.98 kB / 0.5742 GB, free: 6.188 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001477/0.4101, allocations: 156.5 kB / 0.5743 GB, free: 6.035 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4101, allocations: 3.938 kB / 0.5743 GB, free: 6.031 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005949/0.4107, allocations: 99.84 kB / 0.5744 GB, free: 5.934 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (27): * Single equations (assignments): 27 * 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.000128/0.4108, allocations: 107.2 kB / 0.5745 GB, free: 5.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004817/0.4113, allocations: 223.6 kB / 0.5747 GB, free: 5.602 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4113, allocations: 3.938 kB / 0.5747 GB, free: 5.598 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.4115, allocations: 95.83 kB / 0.5748 GB, free: 5.504 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009174/0.4124, allocations: 76.95 kB / 0.5749 GB, free: 5.434 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.4146, allocations: 1.313 MB / 0.5762 GB, free: 4.074 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/0.4148, allocations: 190.5 kB / 0.5764 GB, free: 3.871 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001318/0.415, allocations: 38.95 kB / 0.5764 GB, free: 3.832 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.883e-05/0.415, allocations: 23.44 kB / 0.5764 GB, free: 3.809 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.415, allocations: 0 / 0.5764 GB, free: 3.809 MB / 414.1 MB Notification: Performance of Templates: time 0.008321/0.4233, allocations: 3.619 MB / 0.5799 GB, free: 264 kB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.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: 5.410757512785494]