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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 94.55 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 177.6 kB / 18.91 MB, free: 4.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 223.3 MB / 242.9 MB, free: 20 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2025/0.2025, allocations: 44.25 MB / 338.3 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.000369, allocations: 8 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1176, allocations: 61.93 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00319/0.1208, allocations: 2.367 MB / 475.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001881/0.1227, allocations: 0.9348 MB / 476.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002534/0.123, allocations: 4 kB / 476.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001894/0.1232, allocations: 35.7 kB / 476.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00029/0.1235, allocations: 95.22 kB / 476.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000509/0.124, allocations: 127.7 kB / 476.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005064/0.1246, allocations: 354.3 kB / 476.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.1248, allocations: 69.7 kB / 476.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001982/0.125, allocations: 123.5 kB / 477 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.1252, allocations: 131.3 kB / 477.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.979e-05/0.1253, allocations: 12 kB / 477.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.1254, allocations: 35.98 kB / 477.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.066e-05/0.1255, allocations: 55.75 kB / 477.2 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.1256, allocations: 172.9 kB / 477.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003005/0.1259, allocations: 259.5 kB / 477.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.126, allocations: 0 / 477.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.126, allocations: 0 / 477.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.619e-05/0.126, allocations: 0 / 477.6 MB, free: 8.555 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0009176/0.1269, allocations: 0.5498 MB / 478.2 MB, free: 7.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.127, allocations: 12.03 kB / 478.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002423/0.1272, allocations: 48.55 kB / 478.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003338/0.1275, allocations: 260.2 kB / 478.5 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.324e-05/0.1276, allocations: 25.03 kB / 478.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.374e-05/0.1277, allocations: 40.27 kB / 478.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005009/0.1282, allocations: 306.6 kB / 478.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.776e-05/0.1282, allocations: 7.938 kB / 478.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.708e-05/0.1282, allocations: 8 kB / 478.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.1283, allocations: 8 kB / 478.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003437/0.1286, allocations: 175.8 kB / 479.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.1306, allocations: 1.344 MB / 480.4 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004255/0.131, allocations: 253 kB / 480.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.1311, allocations: 80.25 kB / 480.7 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.1312, allocations: 7.938 kB / 480.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.1312, allocations: 42.56 kB / 480.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.703e-06/0.1312, allocations: 0 / 480.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004981/0.1317, allocations: 213.2 kB / 481 MB, free: 4.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.753e-05/0.1318, allocations: 162.2 kB / 481.2 MB, free: 4.723 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.132, allocations: 204.2 kB / 481.4 MB, free: 4.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.1321, allocations: 33.83 kB / 481.4 MB, free: 4.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.1322, allocations: 196 kB / 481.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.645e-05/0.1323, allocations: 90.73 kB / 481.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.474e-05/0.1324, allocations: 37.7 kB / 481.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.1325, allocations: 334.8 kB / 482 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.1326, allocations: 67.92 kB / 482.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/0.1328, allocations: 202 kB / 482.3 MB, free: 3.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003729/0.1332, allocations: 305.6 kB / 482.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.1332, allocations: 4 kB / 482.6 MB, free: 3.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004886/0.1337, allocations: 313.3 kB / 482.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.1338, allocations: 12.06 kB / 482.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.1338, allocations: 4 kB / 482.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.1338, allocations: 8 kB / 482.9 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002865/0.1341, allocations: 87.89 kB / 483 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.549e-05/0.1341, allocations: 7.938 kB / 483 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001915/0.1343, allocations: 31.69 kB / 483 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/0.1344, allocations: 20.31 kB / 483.1 MB, free: 2.633 MB / 350.1 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.0001487/0.1345, allocations: 145.7 kB / 483.2 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.1346, allocations: 35.7 kB / 483.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001799/0.1348, allocations: 91.02 kB / 483.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.1348, allocations: 0 / 483.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.1348, allocations: 7.938 kB / 483.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1349, allocations: 0 / 483.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006118/0.1355, allocations: 317.3 kB / 483.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.1355, allocations: 256 / 483.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.1358, allocations: 75.89 kB / 483.7 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.1358, allocations: 0 / 483.7 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.1359, allocations: 8.562 kB / 483.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.1359, allocations: 8 kB / 483.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1359, allocations: 0 / 483.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005506/0.1364, allocations: 0.645 MB / 484.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.249e-05/0.1365, allocations: 104.7 kB / 484.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.894e-05/0.1366, allocations: 15.98 kB / 484.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.1368, allocations: 8 kB / 484.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.109e-05/0.1369, allocations: 11.97 kB / 484.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.1369, allocations: 8 kB / 484.5 MB, free: 1.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001196/0.137, allocations: 149.6 kB / 484.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.137, allocations: 0 / 484.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005472/0.1376, allocations: 83.78 kB / 484.8 MB, free: 0.8359 MB / 350.1 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.0001085/0.1377, allocations: 103.2 kB / 484.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003559/0.1381, allocations: 195.5 kB / 485.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1381, allocations: 0 / 485.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.1382, allocations: 76.91 kB / 485.1 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008533/0.139, allocations: 59.66 kB / 485.2 MB, free: 412 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.141, allocations: 1.433 MB / 486.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.1414, allocations: 0.7719 MB / 487.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.531e-05/0.1415, allocations: 27.42 kB / 487.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1415, allocations: 0 / 487.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of Templates: time 0.005714/0.1472, allocations: 3.333 MB / 490.8 MB, free: 10.78 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches