Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001867/0.001867, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 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.002474/0.002474, allocations: 170.3 kB / 24.82 MB, free: 9.266 MB / 18.57 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.27/1.27, allocations: 177.1 MB / 205.3 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3771/0.3771, allocations: 32.8 MB / 294.6 MB, free: 1.234 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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=5002,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.795e-06/2.795e-06, allocations: 0 / 376.4 MB, free: 4.445 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.702e-05/4.981e-05, allocations: 6.25 kB / 376.4 MB, free: 4.438 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.005182/0.005232, allocations: 2.801 MB / 379.2 MB, free: 1.617 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002811/0.008043, allocations: 0.9931 MB / 380.2 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004876/0.008531, allocations: 15.88 kB / 380.3 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000274/0.008805, allocations: 47.45 kB / 380.3 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003187/0.009123, allocations: 111 kB / 380.4 MB, free: 460 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008057/0.009929, allocations: 155.5 kB / 380.6 MB, free: 304 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006444/0.01057, allocations: 402 kB / 381 MB, free: 15.9 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002368/0.01081, allocations: 57.41 kB / 381 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003594/0.01117, allocations: 211.5 kB / 381.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.01139, allocations: 107.7 kB / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.509e-05/0.01144, allocations: 24 kB / 381.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001655/0.01161, allocations: 47.98 kB / 381.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.395e-05/0.01167, allocations: 59.75 kB / 381.5 MB, free: 15.4 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.0118, allocations: 123.7 kB / 381.6 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005002/0.0123, allocations: 270.9 kB / 381.8 MB, free: 15.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.0123, allocations: 0 / 381.8 MB, free: 15.01 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.01231, allocations: 0 / 381.8 MB, free: 15.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.01231, allocations: 0 / 381.8 MB, free: 15.01 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.0009206/0.01323, allocations: 0.64 MB / 382.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.01329, allocations: 8.031 kB / 382.5 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003158/0.01361, allocations: 84.69 kB / 382.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.01399, allocations: 216.9 kB / 382.8 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/0.01402, allocations: 25.03 kB / 382.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.58e-05/0.01408, allocations: 40.31 kB / 382.8 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003644/0.01445, allocations: 248.9 kB / 383.1 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/0.01447, allocations: 12.08 kB / 383.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.0145, allocations: 15.94 kB / 383.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.01451, allocations: 12 kB / 383.1 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/0.0147, allocations: 94.88 kB / 383.2 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.01675, allocations: 1.375 MB / 384.6 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.01716, allocations: 239.4 kB / 384.8 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.574e-05/0.01725, allocations: 70.41 kB / 384.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.194e-05/0.01729, allocations: 11.97 kB / 384.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.01733, allocations: 41.39 kB / 384.9 MB, free: 11.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.014e-06/0.01733, allocations: 0 / 384.9 MB, free: 11.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004186/0.01775, allocations: 173.3 kB / 385.1 MB, free: 11.47 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.01786, allocations: 158.2 kB / 385.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.01808, allocations: 258.7 kB / 385.5 MB, free: 11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.0181, allocations: 25.7 kB / 385.5 MB, free: 10.97 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002625/0.01836, allocations: 251 kB / 385.8 MB, free: 10.72 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.01848, allocations: 99.33 kB / 385.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.55e-05/0.01857, allocations: 71.33 kB / 386 MB, free: 10.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.01877, allocations: 0.5078 MB / 386.5 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.975e-05/0.01883, allocations: 27.97 kB / 386.5 MB, free: 10 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.01897, allocations: 233.2 kB / 386.7 MB, free: 9.684 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.01925, allocations: 289.1 kB / 387 MB, free: 9.312 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.01925, allocations: 0 / 387 MB, free: 9.312 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0002892/0.01954, allocations: 268.9 kB / 387.3 MB, free: 9.043 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.01956, allocations: 4 kB / 387.3 MB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.01957, allocations: 8.188 kB / 387.3 MB, free: 9.031 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.01959, allocations: 12.45 kB / 387.3 MB, free: 9.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.01979, allocations: 87.91 kB / 387.4 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.886e-06/0.0198, allocations: 11.94 kB / 387.4 MB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.01992, allocations: 43.7 kB / 387.4 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.01993, allocations: 12 kB / 387.4 MB, free: 8.867 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (44): * Single equations (assignments): 44 * 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.0001324/0.02006, allocations: 180.4 kB / 387.6 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.561e-05/0.02014, allocations: 27.86 kB / 387.6 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001494/0.02029, allocations: 87.08 kB / 387.7 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.02029, allocations: 4 kB / 387.7 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.0203, allocations: 0 / 387.7 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.02031, allocations: 11.94 kB / 387.7 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003944/0.0207, allocations: 185 kB / 387.9 MB, free: 8.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.0207, allocations: 0 / 387.9 MB, free: 8.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.02088, allocations: 71.91 kB / 388 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.02088, allocations: 0 / 388 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.0209, allocations: 8 kB / 388 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.0209, allocations: 3.984 kB / 388 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.02091, allocations: 4 kB / 388 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006379/0.02154, allocations: 0.7978 MB / 388.8 MB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.344e-05/0.02158, allocations: 27.78 kB / 388.8 MB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.0216, allocations: 12 kB / 388.9 MB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.02184, allocations: 4 kB / 388.9 MB, free: 7.391 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.306e-05/0.02186, allocations: 15.97 kB / 388.9 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.02188, allocations: 11.94 kB / 388.9 MB, free: 7.363 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.661e-05/0.02195, allocations: 173.7 kB / 389.1 MB, free: 7.195 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02195, allocations: 0 / 389.1 MB, free: 7.195 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003912/0.02234, allocations: 83.84 kB / 389.1 MB, free: 7.113 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.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 (23): * Single equations (assignments): 23 * 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.0001252/0.02247, allocations: 99.19 kB / 389.2 MB, free: 7.008 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001966/0.02266, allocations: 155.2 kB / 389.4 MB, free: 6.852 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.02267, allocations: 0 / 389.4 MB, free: 6.852 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.833e-05/0.02273, allocations: 68.52 kB / 389.4 MB, free: 6.781 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005375/0.02326, allocations: 75.84 kB / 389.5 MB, free: 6.711 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.0246, allocations: 0.9017 MB / 390.4 MB, free: 5.758 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.424e-05/0.02469, allocations: 92.25 kB / 390.5 MB, free: 5.648 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.02479, allocations: 30.97 kB / 390.5 MB, free: 5.617 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.02493, allocations: 122.2 kB / 390.7 MB, free: 5.496 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.02493, allocations: 0 / 390.7 MB, free: 5.496 MB / 362.7 MB Notification: Performance of Templates: time 0.005921/0.03085, allocations: 2.718 MB / 393.4 MB, free: 2.84 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.570991037879139]