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.001627/0.001627, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001793/0.001793, allocations: 209 kB / 24.48 MB, free: 3.938 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.475/1.475, allocations: 230.6 MB / 258.2 MB, free: 7.789 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.2536/0.2536, allocations: 46.96 MB / 361.6 MB, free: 4.047 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.002189/0.002189, allocations: 67.91 kB / 0.4973 GB, free: 7.613 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3703/0.3725, allocations: 66.02 MB / 0.5618 GB, free: 33.63 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003379/0.3759, allocations: 2.827 MB / 0.5645 GB, free: 31.77 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.3773, allocations: 1.014 MB / 0.5655 GB, free: 31.09 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.3775, allocations: 13.97 kB / 0.5655 GB, free: 31.08 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.3776, allocations: 58.42 kB / 0.5656 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001715/0.3778, allocations: 132.8 kB / 0.5657 GB, free: 30.95 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004405/0.3782, allocations: 166.7 kB / 0.5659 GB, free: 30.86 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003276/0.3786, allocations: 455.1 kB / 0.5663 GB, free: 30.62 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.3787, allocations: 80.36 kB / 0.5664 GB, free: 30.58 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001438/0.3789, allocations: 166.5 kB / 0.5666 GB, free: 30.51 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001884/0.379, allocations: 159.4 kB / 0.5667 GB, free: 30.44 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.115e-05/0.3791, allocations: 30.81 kB / 0.5667 GB, free: 30.44 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001107/0.3792, allocations: 49.08 kB / 0.5668 GB, free: 30.43 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.695e-05/0.3793, allocations: 78.73 kB / 0.5669 GB, free: 30.38 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.3794, allocations: 152.4 kB / 0.567 GB, free: 30.31 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003611/0.3797, allocations: 452.3 kB / 0.5674 GB, free: 30.14 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3797, allocations: 0 / 0.5674 GB, free: 30.14 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3797, allocations: 0 / 0.5674 GB, free: 30.14 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.812e-06/0.3797, allocations: 0 / 0.5674 GB, free: 30.14 MB / 446.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.0008047/0.3805, allocations: 0.5968 MB / 0.568 GB, free: 29.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3806, allocations: 8.812 kB / 0.568 GB, free: 29.68 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002597/0.3808, allocations: 73.02 kB / 0.5681 GB, free: 29.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.3812, allocations: 237.8 kB / 0.5683 GB, free: 29.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.3812, allocations: 29.94 kB / 0.5684 GB, free: 29.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-05/0.3813, allocations: 44.64 kB / 0.5684 GB, free: 29.42 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004547/0.3817, allocations: 361 kB / 0.5687 GB, free: 29.24 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.3817, allocations: 3.156 kB / 0.5687 GB, free: 29.24 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.3818, allocations: 15.56 kB / 0.5688 GB, free: 29.23 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.3818, allocations: 8.469 kB / 0.5688 GB, free: 29.23 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003592/0.3821, allocations: 220.5 kB / 0.569 GB, free: 29.16 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.3838, allocations: 1.396 MB / 0.5703 GB, free: 28.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004421/0.3842, allocations: 308 kB / 0.5706 GB, free: 27.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.3844, allocations: 96.86 kB / 0.5707 GB, free: 27.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.3844, allocations: 3.031 kB / 0.5707 GB, free: 27.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.3844, allocations: 43.84 kB / 0.5708 GB, free: 27.72 MB / 446.1 MB Notification: Performance of pre-optimization done (n=26): time 1.392e-06/0.3844, allocations: 0 / 0.5708 GB, free: 27.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=26): time 0.0005735/0.385, allocations: 264.8 kB / 0.571 GB, free: 27.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.385, allocations: 188.6 kB / 0.5712 GB, free: 27.39 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.3852, allocations: 228.7 kB / 0.5714 GB, free: 27.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.3852, allocations: 30.95 kB / 0.5715 GB, free: 27.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.632e-05/0.3853, allocations: 225.2 kB / 0.5717 GB, free: 27.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.82e-05/0.3854, allocations: 117.5 kB / 0.5718 GB, free: 26.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.335e-05/0.3855, allocations: 69.44 kB / 0.5718 GB, free: 26.89 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.08e-05/0.3855, allocations: 344.2 kB / 0.5722 GB, free: 26.56 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.3857, allocations: 79.11 kB / 0.5722 GB, free: 26.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002241/0.3859, allocations: 245.3 kB / 0.5725 GB, free: 26.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004315/0.3863, allocations: 363.3 kB / 0.5728 GB, free: 26 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.3864, allocations: 2.219 kB / 0.5728 GB, free: 26 MB / 446.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006301/0.387, allocations: 393 kB / 0.5732 GB, free: 25.83 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.851e-05/0.387, allocations: 6.875 kB / 0.5732 GB, free: 25.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.387, allocations: 9.438 kB / 0.5732 GB, free: 25.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/0.387, allocations: 8.25 kB / 0.5732 GB, free: 25.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003217/0.3874, allocations: 111.3 kB / 0.5733 GB, free: 25.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.3874, allocations: 9 kB / 0.5733 GB, free: 25.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.3876, allocations: 44.42 kB / 0.5734 GB, free: 25.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.611e-05/0.3876, allocations: 24.5 kB / 0.5734 GB, free: 25.77 MB / 446.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.0001144/0.3877, allocations: 162.1 kB / 0.5736 GB, free: 25.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.3878, allocations: 31.69 kB / 0.5736 GB, free: 25.61 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.388, allocations: 94.97 kB / 0.5737 GB, free: 25.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.388, allocations: 4.125 kB / 0.5737 GB, free: 25.54 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.388, allocations: 1.375 kB / 0.5737 GB, free: 25.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.388, allocations: 4.703 kB / 0.5737 GB, free: 25.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004949/0.3885, allocations: 243.9 kB / 0.5739 GB, free: 25.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3885, allocations: 6.125 kB / 0.5739 GB, free: 25.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003634/0.3889, allocations: 84.09 kB / 0.574 GB, free: 25.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.3889, allocations: 6.547 kB / 0.574 GB, free: 25.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.3889, allocations: 13.19 kB / 0.574 GB, free: 25.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.3889, allocations: 5.938 kB / 0.574 GB, free: 25.33 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3889, allocations: 1.25 kB / 0.574 GB, free: 25.33 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005973/0.3895, allocations: 0.7575 MB / 0.5748 GB, free: 24.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.12e-05/0.3895, allocations: 37.72 kB / 0.5748 GB, free: 24.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.935e-05/0.3896, allocations: 8.859 kB / 0.5748 GB, free: 24.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002975/0.3899, allocations: 8.281 kB / 0.5748 GB, free: 24.69 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.078e-05/0.3899, allocations: 22.73 kB / 0.5749 GB, free: 24.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.39, allocations: 12.22 kB / 0.5749 GB, free: 24.68 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001162/0.3901, allocations: 157.5 kB / 0.575 GB, free: 24.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3901, allocations: 0 / 0.575 GB, free: 24.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005724/0.3906, allocations: 99.03 kB / 0.5751 GB, free: 24.56 MB / 446.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 8.834e-05/0.3907, allocations: 107.1 kB / 0.5752 GB, free: 24.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004496/0.3912, allocations: 223.7 kB / 0.5754 GB, free: 24.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3912, allocations: 0 / 0.5754 GB, free: 24.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000178/0.3914, allocations: 91.73 kB / 0.5755 GB, free: 24.37 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00087/0.3922, allocations: 84.45 kB / 0.5756 GB, free: 24.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001741/0.394, allocations: 1.354 MB / 0.5769 GB, free: 23.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.3942, allocations: 190.9 kB / 0.5771 GB, free: 23.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.852e-05/0.3943, allocations: 27.31 kB / 0.5771 GB, free: 23.21 MB / 446.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3943, allocations: 3.938 kB / 0.5771 GB, free: 23.2 MB / 446.1 MB Notification: Performance of Templates: time 0.007715/0.402, allocations: 4.252 MB / 0.5813 GB, free: 22.68 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/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: 8.217048027087003]