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.001626/0.001626, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.002152/0.002152, allocations: 213.3 kB / 24.48 MB, free: 3.957 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.47/1.47, 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.2541/0.2541, allocations: 46.95 MB / 361.6 MB, free: 4.027 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.002038/0.002038, allocations: 67.89 kB / 0.4973 GB, free: 7.223 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3466, allocations: 66.03 MB / 0.5618 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004438/0.351, allocations: 2.832 MB / 0.5646 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001946/0.353, allocations: 0.9972 MB / 0.5655 GB, free: 320 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001678/0.3531, allocations: 11.94 kB / 0.5655 GB, free: 308 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000193/0.3533, allocations: 63.38 kB / 0.5656 GB, free: 244 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.3536, allocations: 126.9 kB / 0.5657 GB, free: 116 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005575/0.3541, allocations: 171.5 kB / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005184/0.3546, allocations: 465.8 kB / 0.5663 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.3548, allocations: 75.95 kB / 0.5664 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.355, allocations: 171.4 kB / 0.5666 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002354/0.3553, allocations: 171.2 kB / 0.5667 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.717e-05/0.3553, allocations: 32 kB / 0.5668 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.3555, allocations: 55.98 kB / 0.5668 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.309e-05/0.3555, allocations: 75.69 kB / 0.5669 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.3557, allocations: 155.3 kB / 0.567 GB, free: 14.76 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000542/0.3563, allocations: 460.4 kB / 0.5675 GB, free: 14.31 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3563, allocations: 0 / 0.5675 GB, free: 14.31 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3563, allocations: 0 / 0.5675 GB, free: 14.31 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.3563, allocations: 4 kB / 0.5675 GB, free: 14.31 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.001124/0.3574, allocations: 0.5911 MB / 0.5681 GB, free: 13.69 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.3574, allocations: 8.031 kB / 0.5681 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003209/0.3578, allocations: 64.64 kB / 0.5681 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004498/0.3582, allocations: 245.6 kB / 0.5684 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.976e-05/0.3583, allocations: 21.38 kB / 0.5684 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.132e-05/0.3583, allocations: 44.33 kB / 0.5684 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006625/0.359, allocations: 363.6 kB / 0.5688 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.359, allocations: 7.938 kB / 0.5688 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.656e-05/0.3591, allocations: 12 kB / 0.5688 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.3591, allocations: 12 kB / 0.5688 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000454/0.3595, allocations: 215.8 kB / 0.569 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002273/0.3618, allocations: 1.394 MB / 0.5704 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006099/0.3624, allocations: 299.7 kB / 0.5707 GB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.3626, allocations: 93.11 kB / 0.5707 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.3626, allocations: 4 kB / 0.5708 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/0.3626, allocations: 42.56 kB / 0.5708 GB, free: 10.67 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.593e-06/0.3626, allocations: 0 / 0.5708 GB, free: 10.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007088/0.3633, allocations: 266.2 kB / 0.571 GB, free: 10.4 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/0.3635, allocations: 199.8 kB / 0.5712 GB, free: 10.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002525/0.3637, allocations: 229 kB / 0.5715 GB, free: 9.926 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.3638, allocations: 29.7 kB / 0.5715 GB, free: 9.891 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.3639, allocations: 220.3 kB / 0.5717 GB, free: 9.672 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.289e-05/0.364, allocations: 119 kB / 0.5718 GB, free: 9.555 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.3641, allocations: 70.14 kB / 0.5719 GB, free: 9.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.3643, allocations: 338.8 kB / 0.5722 GB, free: 9.141 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.3645, allocations: 84.83 kB / 0.5723 GB, free: 9.059 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003259/0.3648, allocations: 245.8 kB / 0.5725 GB, free: 8.742 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005461/0.3653, allocations: 373 kB / 0.5729 GB, free: 8.301 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.3653, allocations: 0 / 0.5729 GB, free: 8.301 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006642/0.366, allocations: 389 kB / 0.5732 GB, free: 7.914 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.366, allocations: 4 kB / 0.5732 GB, free: 7.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.366, allocations: 11.98 kB / 0.5733 GB, free: 7.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.3661, allocations: 8 kB / 0.5733 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003858/0.3664, allocations: 107.8 kB / 0.5734 GB, free: 7.785 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/0.3665, allocations: 8 kB / 0.5734 GB, free: 7.777 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.3667, allocations: 43.67 kB / 0.5734 GB, free: 7.734 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.049e-05/0.3667, allocations: 20.38 kB / 0.5734 GB, free: 7.715 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.0001791/0.3669, allocations: 169.6 kB / 0.5736 GB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.367, allocations: 31.81 kB / 0.5736 GB, free: 7.508 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001918/0.3672, allocations: 91.33 kB / 0.5737 GB, free: 7.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.3672, allocations: 4 kB / 0.5737 GB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3672, allocations: 4.312 kB / 0.5737 GB, free: 7.402 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.3672, allocations: 3.984 kB / 0.5737 GB, free: 7.398 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006031/0.3679, allocations: 245.1 kB / 0.574 GB, free: 7.129 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3679, allocations: 3.938 kB / 0.574 GB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004303/0.3683, allocations: 79.89 kB / 0.574 GB, free: 7.047 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3683, allocations: 8 kB / 0.574 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.3683, allocations: 8 kB / 0.5741 GB, free: 7.031 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.966e-06/0.3683, allocations: 7.984 kB / 0.5741 GB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3683, allocations: 0 / 0.5741 GB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008353/0.3692, allocations: 0.7664 MB / 0.5748 GB, free: 6.234 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.098e-05/0.3692, allocations: 35.72 kB / 0.5748 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.299e-05/0.3693, allocations: 8 kB / 0.5749 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/0.3696, allocations: 8 kB / 0.5749 GB, free: 6.184 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.3696, allocations: 19.97 kB / 0.5749 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.3697, allocations: 15.98 kB / 0.5749 GB, free: 6.148 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001578/0.3698, allocations: 160.5 kB / 0.575 GB, free: 5.992 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3698, allocations: 96 / 0.575 GB, free: 5.992 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006016/0.3704, allocations: 103.7 kB / 0.5751 GB, free: 5.891 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.0001232/0.3705, allocations: 107.1 kB / 0.5752 GB, free: 5.777 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004718/0.371, allocations: 228.5 kB / 0.5755 GB, free: 5.555 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.371, allocations: 0 / 0.5755 GB, free: 5.555 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000182/0.3712, allocations: 91.83 kB / 0.5756 GB, free: 5.465 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008878/0.3721, allocations: 84.44 kB / 0.5756 GB, free: 5.391 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.3743, allocations: 1.338 MB / 0.5769 GB, free: 4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.3746, allocations: 190.5 kB / 0.5771 GB, free: 3.797 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.884e-05/0.3747, allocations: 31.44 kB / 0.5772 GB, free: 3.766 MB / 414.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3747, allocations: 0 / 0.5772 GB, free: 3.766 MB / 414.1 MB Notification: Performance of Templates: time 0.007264/0.3819, allocations: 4.252 MB / 0.5813 GB, free: 15.52 MB / 430.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: 7.959164950996637]