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.001499/0.001499, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001692/0.001692, allocations: 211.2 kB / 24.47 MB, free: 3.977 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.465/1.465, 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.2344/0.2344, allocations: 46.96 MB / 361.6 MB, free: 4.023 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.00198/0.00198, allocations: 68.12 kB / 0.4973 GB, free: 7.227 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.34, allocations: 66.03 MB / 0.5618 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004461/0.3445, allocations: 2.827 MB / 0.5646 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.3465, allocations: 1.009 MB / 0.5655 GB, free: 332 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.3467, allocations: 7.938 kB / 0.5655 GB, free: 324 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002105/0.3469, allocations: 63.31 kB / 0.5656 GB, free: 260 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002427/0.3471, allocations: 123 kB / 0.5657 GB, free: 136 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005714/0.3477, allocations: 171.5 kB / 0.5659 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005153/0.3482, allocations: 457.8 kB / 0.5663 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.3484, allocations: 80 kB / 0.5664 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002021/0.3486, allocations: 171.4 kB / 0.5666 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002345/0.3488, allocations: 175.2 kB / 0.5667 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.808e-05/0.3489, allocations: 32 kB / 0.5668 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.349, allocations: 51.98 kB / 0.5668 GB, free: 15.01 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.502e-05/0.3491, allocations: 83.62 kB / 0.5669 GB, free: 14.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.3493, allocations: 155.3 kB / 0.567 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005336/0.3498, allocations: 452.5 kB / 0.5675 GB, free: 14.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3498, allocations: 0 / 0.5675 GB, free: 14.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3498, allocations: 0 / 0.5675 GB, free: 14.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.3498, allocations: 0 / 0.5675 GB, free: 14.34 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.001081/0.3509, allocations: 0.6027 MB / 0.5681 GB, free: 13.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.3509, allocations: 8.031 kB / 0.5681 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003106/0.3512, allocations: 68.62 kB / 0.5681 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004409/0.3517, allocations: 229.7 kB / 0.5683 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.762e-05/0.3517, allocations: 29.38 kB / 0.5684 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.638e-05/0.3518, allocations: 48.31 kB / 0.5684 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000618/0.3524, allocations: 363.5 kB / 0.5688 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.053e-05/0.3524, allocations: 8 kB / 0.5688 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.3525, allocations: 16 kB / 0.5688 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.3525, allocations: 8 kB / 0.5688 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004422/0.3529, allocations: 219.8 kB / 0.569 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00227/0.3552, allocations: 1.382 MB / 0.5704 GB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005965/0.3558, allocations: 307.6 kB / 0.5707 GB, free: 10.85 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.356, allocations: 93.16 kB / 0.5707 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.356, allocations: 4 kB / 0.5707 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/0.356, allocations: 46.48 kB / 0.5708 GB, free: 10.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.114e-06/0.3561, allocations: 4 kB / 0.5708 GB, free: 10.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007127/0.3568, allocations: 257.3 kB / 0.571 GB, free: 10.42 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.3569, allocations: 191.8 kB / 0.5712 GB, free: 10.19 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002473/0.3571, allocations: 236.9 kB / 0.5714 GB, free: 9.941 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.3572, allocations: 33.7 kB / 0.5715 GB, free: 9.902 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.3573, allocations: 224.3 kB / 0.5717 GB, free: 9.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.3575, allocations: 111.1 kB / 0.5718 GB, free: 9.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.3576, allocations: 70.14 kB / 0.5719 GB, free: 9.496 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.3578, allocations: 342.8 kB / 0.5722 GB, free: 9.152 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.3579, allocations: 80.97 kB / 0.5723 GB, free: 9.074 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003033/0.3582, allocations: 245.7 kB / 0.5725 GB, free: 8.758 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004837/0.3587, allocations: 357.1 kB / 0.5728 GB, free: 8.332 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.3587, allocations: 4 kB / 0.5728 GB, free: 8.328 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000655/0.3594, allocations: 389.3 kB / 0.5732 GB, free: 7.941 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3594, allocations: 12.06 kB / 0.5732 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.3594, allocations: 4.25 kB / 0.5732 GB, free: 7.926 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/0.3594, allocations: 8 kB / 0.5732 GB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/0.3598, allocations: 115.8 kB / 0.5734 GB, free: 7.805 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.77e-05/0.3599, allocations: 11.94 kB / 0.5734 GB, free: 7.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002256/0.3601, allocations: 43.67 kB / 0.5734 GB, free: 7.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-05/0.3601, allocations: 23.98 kB / 0.5734 GB, free: 7.727 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.000181/0.3603, allocations: 161.6 kB / 0.5736 GB, free: 7.559 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000147/0.3604, allocations: 27.81 kB / 0.5736 GB, free: 7.531 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001999/0.3606, allocations: 95.39 kB / 0.5737 GB, free: 7.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3607, allocations: 4 kB / 0.5737 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3607, allocations: 0 / 0.5737 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/0.3607, allocations: 7.984 kB / 0.5737 GB, free: 7.418 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000617/0.3613, allocations: 245.1 kB / 0.5739 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.3613, allocations: 3.938 kB / 0.574 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000433/0.3617, allocations: 83.89 kB / 0.574 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.3617, allocations: 4 kB / 0.574 GB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.3618, allocations: 8 kB / 0.574 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.3618, allocations: 3.984 kB / 0.574 GB, free: 7.047 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3618, allocations: 4 kB / 0.574 GB, free: 7.043 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000816/0.3626, allocations: 0.7671 MB / 0.5748 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.279e-05/0.3626, allocations: 35.72 kB / 0.5748 GB, free: 6.219 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.125e-05/0.3627, allocations: 8 kB / 0.5748 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003181/0.363, allocations: 12 kB / 0.5749 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.287e-05/0.3631, allocations: 23.95 kB / 0.5749 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.3631, allocations: 7.938 kB / 0.5749 GB, free: 6.168 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001565/0.3632, allocations: 164.4 kB / 0.575 GB, free: 6.008 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3632, allocations: 0 / 0.575 GB, free: 6.008 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006177/0.3638, allocations: 99.84 kB / 0.5751 GB, free: 5.91 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.0001372/0.364, allocations: 103.2 kB / 0.5752 GB, free: 5.801 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005053/0.3645, allocations: 225.1 kB / 0.5754 GB, free: 5.582 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3645, allocations: 0 / 0.5754 GB, free: 5.582 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002041/0.3647, allocations: 96.33 kB / 0.5755 GB, free: 5.488 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009451/0.3656, allocations: 92.81 kB / 0.5756 GB, free: 5.402 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.3679, allocations: 1.305 MB / 0.5769 GB, free: 4.051 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.3681, allocations: 194.5 kB / 0.5771 GB, free: 3.844 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001458/0.3683, allocations: 38.95 kB / 0.5771 GB, free: 3.805 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.029e-05/0.3683, allocations: 23.44 kB / 0.5771 GB, free: 3.781 MB / 414.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3683, allocations: 0 / 0.5771 GB, free: 3.781 MB / 414.1 MB Notification: Performance of Templates: time 0.008487/0.3768, allocations: 3.612 MB / 0.5807 GB, free: 244 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 -s cvode -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: 5.030415171000641]