Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.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.001397/0.001397, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001622/0.001622, allocations: 203.8 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 230.5 MB / 257.4 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2432/0.2432, allocations: 46.95 MB / 360.8 MB, free: 3.93 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(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_trunk_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_trunk_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002418/0.002418, allocations: 87.8 kB / 0.4966 GB, free: 7.074 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.3781, allocations: 66.09 MB / 0.5612 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004785/0.3829, allocations: 2.824 MB / 0.5639 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002097/0.385, allocations: 1.005 MB / 0.5649 GB, free: 152 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001826/0.3852, allocations: 15.88 kB / 0.5649 GB, free: 136 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.3854, allocations: 59.38 kB / 0.565 GB, free: 76 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002557/0.3856, allocations: 126.9 kB / 0.5651 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005757/0.3862, allocations: 175.5 kB / 0.5653 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005445/0.3868, allocations: 457.8 kB / 0.5657 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002093/0.387, allocations: 79.92 kB / 0.5658 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002251/0.3872, allocations: 163.4 kB / 0.5659 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002554/0.3874, allocations: 159.2 kB / 0.5661 GB, free: 14.93 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.89e-05/0.3875, allocations: 28 kB / 0.5661 GB, free: 14.9 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.3876, allocations: 51.98 kB / 0.5662 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.191e-05/0.3877, allocations: 75.75 kB / 0.5662 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001705/0.3879, allocations: 159.3 kB / 0.5664 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005661/0.3884, allocations: 444.5 kB / 0.5668 GB, free: 14.19 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.3884, allocations: 7.938 kB / 0.5668 GB, free: 14.18 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.3884, allocations: 0 / 0.5668 GB, free: 14.18 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.3885, allocations: 0 / 0.5668 GB, free: 14.18 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.00123/0.3897, allocations: 0.5988 MB / 0.5674 GB, free: 13.55 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.3897, allocations: 8.031 kB / 0.5674 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00035/0.3901, allocations: 72.62 kB / 0.5675 GB, free: 13.47 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004942/0.3906, allocations: 229.7 kB / 0.5677 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.84e-05/0.3906, allocations: 29.38 kB / 0.5677 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.783e-05/0.3907, allocations: 40.33 kB / 0.5678 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006889/0.3914, allocations: 363.5 kB / 0.5681 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.142e-05/0.3914, allocations: 8 kB / 0.5681 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.3915, allocations: 12 kB / 0.5681 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.3915, allocations: 12 kB / 0.5681 GB, free: 12.74 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000476/0.392, allocations: 222.9 kB / 0.5683 GB, free: 12.53 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002349/0.3943, allocations: 1.394 MB / 0.5697 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006381/0.3949, allocations: 299.7 kB / 0.57 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.3951, allocations: 93.17 kB / 0.5701 GB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.3952, allocations: 7.938 kB / 0.5701 GB, free: 10.58 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.3952, allocations: 42.55 kB / 0.5701 GB, free: 10.53 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.463e-06/0.3952, allocations: 0 / 0.5701 GB, free: 10.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.000714/0.3959, allocations: 262.1 kB / 0.5704 GB, free: 10.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001723/0.3961, allocations: 187.9 kB / 0.5706 GB, free: 10.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002699/0.3964, allocations: 233.1 kB / 0.5708 GB, free: 9.797 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/0.3964, allocations: 33.7 kB / 0.5708 GB, free: 9.758 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001843/0.3966, allocations: 228.1 kB / 0.571 GB, free: 9.531 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.3967, allocations: 111.1 kB / 0.5711 GB, free: 9.422 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.3968, allocations: 70.14 kB / 0.5712 GB, free: 9.348 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.397, allocations: 338.8 kB / 0.5715 GB, free: 9.008 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001878/0.3972, allocations: 80.78 kB / 0.5716 GB, free: 8.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/0.3975, allocations: 249.7 kB / 0.5718 GB, free: 8.609 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005618/0.3981, allocations: 369 kB / 0.5722 GB, free: 8.172 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3981, allocations: 0 / 0.5722 GB, free: 8.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006745/0.3987, allocations: 392.8 kB / 0.5726 GB, free: 7.781 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.3988, allocations: 8 kB / 0.5726 GB, free: 7.773 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.3988, allocations: 4 kB / 0.5726 GB, free: 7.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.379e-05/0.3988, allocations: 8 kB / 0.5726 GB, free: 7.762 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003565/0.3992, allocations: 108.5 kB / 0.5727 GB, free: 7.656 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.434e-05/0.3992, allocations: 11.94 kB / 0.5727 GB, free: 7.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.3994, allocations: 43.67 kB / 0.5727 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.673e-05/0.3994, allocations: 24.23 kB / 0.5728 GB, free: 7.578 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.0001717/0.3996, allocations: 165.6 kB / 0.5729 GB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.3997, allocations: 27.81 kB / 0.573 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002042/0.3999, allocations: 99.33 kB / 0.573 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.3999, allocations: 4 kB / 0.5731 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3999, allocations: 0 / 0.5731 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.3999, allocations: 7.984 kB / 0.5731 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000595/0.4005, allocations: 241.1 kB / 0.5733 GB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.4005, allocations: 11.94 kB / 0.5733 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003862/0.4009, allocations: 79.95 kB / 0.5734 GB, free: 6.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.4009, allocations: 0 / 0.5734 GB, free: 6.906 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.578e-05/0.401, allocations: 8 kB / 0.5734 GB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.665e-06/0.401, allocations: 11.92 kB / 0.5734 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.401, allocations: 0 / 0.5734 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008841/0.4019, allocations: 0.7664 MB / 0.5741 GB, free: 6.098 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.648e-05/0.4019, allocations: 35.72 kB / 0.5742 GB, free: 6.062 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.711e-05/0.402, allocations: 8 kB / 0.5742 GB, free: 6.055 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002987/0.4023, allocations: 12 kB / 0.5742 GB, free: 6.043 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.405e-05/0.4023, allocations: 20.05 kB / 0.5742 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.4024, allocations: 15.94 kB / 0.5742 GB, free: 6.008 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001621/0.4025, allocations: 156.5 kB / 0.5744 GB, free: 5.855 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4025, allocations: 4 kB / 0.5744 GB, free: 5.852 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005894/0.4031, allocations: 95.84 kB / 0.5745 GB, free: 5.758 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.000147/0.4033, allocations: 111.1 kB / 0.5746 GB, free: 5.641 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004834/0.4037, allocations: 223.9 kB / 0.5748 GB, free: 5.422 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4037, allocations: 0 / 0.5748 GB, free: 5.422 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001788/0.4039, allocations: 95.77 kB / 0.5749 GB, free: 5.328 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009115/0.4048, allocations: 87.88 kB / 0.575 GB, free: 5.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/0.407, allocations: 1.312 MB / 0.5763 GB, free: 3.891 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.4072, allocations: 190.5 kB / 0.5764 GB, free: 3.688 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001496/0.4074, allocations: 30.97 kB / 0.5765 GB, free: 3.656 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.891e-05/0.4074, allocations: 27.62 kB / 0.5765 GB, free: 3.629 MB / 414.1 MB Notification: Performance of SimCode: time 4.3e-07/0.4074, allocations: 0 / 0.5765 GB, free: 3.629 MB / 414.1 MB Notification: Performance of Templates: time 0.008445/0.4159, allocations: 3.527 MB / 0.5799 GB, free: 172 kB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.399650307372212]