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.0008927/0.0008927, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.0009233/0.0009233, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 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 0.9534/0.9534, allocations: 177 MB / 204.8 MB, free: 5.566 MB / 186.7 MB " [Timeout remaining time 179] 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.282/0.282, allocations: 34.86 MB / 296.3 MB, free: 0.5469 MB / 266.7 MB " [Timeout remaining time 180] 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 1.282e-06/1.282e-06, allocations: 0 / 378.7 MB, free: 2.133 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.757e-05/1.886e-05, allocations: 2.312 kB / 378.7 MB, free: 2.129 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003188/0.003207, allocations: 3.06 MB / 381.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001694/0.004902, allocations: 1.055 MB / 382.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001678/0.005069, allocations: 7.938 kB / 382.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.005237, allocations: 67.31 kB / 382.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001837/0.005421, allocations: 130.8 kB / 383 MB, free: 13.78 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005327/0.005954, allocations: 179.4 kB / 383.2 MB, free: 13.61 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004006/0.006354, allocations: 477.4 kB / 383.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.006519, allocations: 68 kB / 383.8 MB, free: 13.06 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002174/0.006736, allocations: 259.4 kB / 384 MB, free: 12.81 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.006889, allocations: 127.6 kB / 384.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.845e-05/0.006928, allocations: 32 kB / 384.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.988e-05/0.007028, allocations: 51.97 kB / 384.2 MB, free: 12.6 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.957e-05/0.007077, allocations: 75.73 kB / 384.3 MB, free: 12.53 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.007182, allocations: 135.7 kB / 384.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003213/0.007503, allocations: 318.8 kB / 384.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.007505, allocations: 0 / 384.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.007506, allocations: 0 / 384.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.007511, allocations: 0 / 384.7 MB, free: 12.08 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0007664/0.008278, allocations: 0.6948 MB / 385.4 MB, free: 11.35 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.008315, allocations: 12.03 kB / 385.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002396/0.008555, allocations: 100.6 kB / 385.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.008827, allocations: 236 kB / 385.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.00885, allocations: 25.38 kB / 385.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.093e-05/0.008901, allocations: 40.38 kB / 385.8 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003708/0.009272, allocations: 325.8 kB / 386.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.009293, allocations: 8.125 kB / 386.2 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.622e-05/0.00932, allocations: 19.94 kB / 386.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.009332, allocations: 16 kB / 386.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.00954, allocations: 135.2 kB / 386.3 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001377/0.01092, allocations: 1.669 MB / 388 MB, free: 8.633 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003519/0.01127, allocations: 298.5 kB / 388.3 MB, free: 8.266 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.222e-05/0.01135, allocations: 86.14 kB / 388.4 MB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.299e-05/0.01137, allocations: 4 kB / 388.4 MB, free: 8.152 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.0114, allocations: 49.27 kB / 388.4 MB, free: 8.094 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.563e-06/0.0114, allocations: 0 / 388.4 MB, free: 8.094 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.000384/0.01179, allocations: 221.2 kB / 388.6 MB, free: 7.871 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.01185, allocations: 184.1 kB / 388.8 MB, free: 7.648 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.01202, allocations: 284.2 kB / 389.1 MB, free: 7.355 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.01203, allocations: 29.7 kB / 389.1 MB, free: 7.32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.01215, allocations: 271 kB / 389.4 MB, free: 7.051 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.833e-05/0.01221, allocations: 115.1 kB / 389.5 MB, free: 6.938 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.84e-05/0.01228, allocations: 75.81 kB / 389.6 MB, free: 6.855 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.0124, allocations: 0.5079 MB / 390.1 MB, free: 6.336 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.284e-05/0.01248, allocations: 44.95 kB / 390.1 MB, free: 6.289 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.01264, allocations: 285.1 kB / 390.4 MB, free: 5.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002783/0.01292, allocations: 367.7 kB / 390.8 MB, free: 5.445 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.01292, allocations: 4 kB / 390.8 MB, free: 5.441 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003564/0.01328, allocations: 333.3 kB / 391.1 MB, free: 5.109 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.01329, allocations: 11.94 kB / 391.1 MB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.0133, allocations: 4 kB / 391.1 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.01332, allocations: 8 kB / 391.1 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.01351, allocations: 107.8 kB / 391.2 MB, free: 4.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.01352, allocations: 8 kB / 391.2 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.01363, allocations: 39.73 kB / 391.3 MB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.01365, allocations: 27.92 kB / 391.3 MB, free: 4.906 MB / 362.7 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.0001282/0.01378, allocations: 180.5 kB / 391.5 MB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.345e-05/0.01386, allocations: 47.86 kB / 391.5 MB, free: 4.672 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.01398, allocations: 83.45 kB / 391.6 MB, free: 4.586 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.01398, allocations: 4 kB / 391.6 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.862e-06/0.01399, allocations: 4 kB / 391.6 MB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.014, allocations: 3.984 kB / 391.6 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000364/0.01436, allocations: 244.3 kB / 391.8 MB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.01436, allocations: 4 kB / 391.9 MB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002061/0.01457, allocations: 83.89 kB / 391.9 MB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.01457, allocations: 0 / 391.9 MB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.01459, allocations: 11.94 kB / 391.9 MB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.01459, allocations: 11.98 kB / 392 MB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.0146, allocations: 1.062 kB / 392 MB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005362/0.01513, allocations: 0.9733 MB / 392.9 MB, free: 3.191 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.554e-05/0.01516, allocations: 31.73 kB / 393 MB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.639e-05/0.01518, allocations: 15.94 kB / 393 MB, free: 3.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.01534, allocations: 8 kB / 393 MB, free: 3.137 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.044e-05/0.01538, allocations: 19.95 kB / 393 MB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.01539, allocations: 15.98 kB / 393 MB, free: 3.102 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.708e-05/0.01548, allocations: 185.1 kB / 393.2 MB, free: 2.918 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01548, allocations: 0 / 393.2 MB, free: 2.918 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003701/0.01585, allocations: 107.8 kB / 393.3 MB, free: 2.812 MB / 362.7 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.27e-05/0.01593, allocations: 103.7 kB / 393.4 MB, free: 2.703 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002489/0.01618, allocations: 189.9 kB / 393.6 MB, free: 2.516 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.01618, allocations: 0 / 393.6 MB, free: 2.516 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.051e-05/0.01626, allocations: 83.77 kB / 393.7 MB, free: 2.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005424/0.0168, allocations: 75.38 kB / 393.8 MB, free: 2.359 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.01829, allocations: 1.039 MB / 394.8 MB, free: 1.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.984e-05/0.01837, allocations: 100.6 kB / 394.9 MB, free: 1.148 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.524e-05/0.01847, allocations: 42.94 kB / 394.9 MB, free: 1.105 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.356e-05/0.01852, allocations: 28.5 kB / 395 MB, free: 1.078 MB / 362.7 MB Notification: Performance of SimCode: time 1.182e-06/0.01852, allocations: 0 / 395 MB, free: 1.078 MB / 362.7 MB Notification: Performance of Templates: time 0.005192/0.02371, allocations: 3.041 MB / 398 MB, free: 14.11 MB / 378.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 240] 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","",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.2295922026969492]