Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 110 kB / 18.3 MB, free: 4.84 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.001201/0.001201, allocations: 199.4 kB / 19.23 MB, free: 3.914 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.396/1.396, allocations: 222.9 MB / 242.9 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.213/0.213, allocations: 44.18 MB / 337.3 MB, free: 2.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 60.02 kB / 409.1 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1135, allocations: 60.82 MB / 469.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003537/0.1171, allocations: 2.245 MB / 472.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.1184, allocations: 0.7245 MB / 472.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.1186, allocations: 8 kB / 472.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002062/0.1188, allocations: 35.66 kB / 472.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.119, allocations: 71.41 kB / 473 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004338/0.1194, allocations: 131.7 kB / 473.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003425/0.1198, allocations: 339.2 kB / 473.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001822/0.12, allocations: 84.56 kB / 473.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002051/0.1202, allocations: 143.6 kB / 473.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002133/0.1204, allocations: 159.4 kB / 473.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.537e-05/0.1205, allocations: 24 kB / 473.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.1206, allocations: 79.89 kB / 473.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.084e-05/0.1207, allocations: 63.83 kB / 474 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.1209, allocations: 131.4 kB / 474.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000357/0.1212, allocations: 331.2 kB / 474.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1213, allocations: 0 / 474.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1213, allocations: 0 / 474.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1213, allocations: 0 / 474.5 MB, free: 9.801 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0009323/0.1222, allocations: 0.5575 MB / 475 MB, free: 9.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1223, allocations: 12.03 kB / 475 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.444e-05/0.1224, allocations: 28.56 kB / 475 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002704/0.1226, allocations: 243.9 kB / 475.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.1227, allocations: 16.81 kB / 475.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.548e-05/0.1227, allocations: 28.38 kB / 475.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004945/0.1232, allocations: 259.5 kB / 475.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.1233, allocations: 4 kB / 475.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.829e-05/0.1233, allocations: 8 kB / 475.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.1233, allocations: 4 kB / 475.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004803/0.1238, allocations: 241.5 kB / 475.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.1251, allocations: 0.7322 MB / 476.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005157/0.1256, allocations: 246.4 kB / 476.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/0.1259, allocations: 132.8 kB / 476.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.789e-05/0.126, allocations: 4 kB / 476.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.126, allocations: 38.98 kB / 477 MB, free: 7.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.653e-06/0.126, allocations: 0 / 477 MB, free: 7.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00312/0.1291, allocations: 1.459 MB / 478.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.1292, allocations: 59.39 kB / 478.5 MB, free: 5.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.1294, allocations: 203.1 kB / 478.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.617e-05/0.1294, allocations: 37.7 kB / 478.7 MB, free: 5.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.548e-05/0.1295, allocations: 132.7 kB / 478.9 MB, free: 5.078 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.408e-05/0.1296, allocations: 110.4 kB / 479 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.1297, allocations: 69.59 kB / 479 MB, free: 4.895 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1299, allocations: 334.8 kB / 479.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.1301, allocations: 120 kB / 479.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.1304, allocations: 171.1 kB / 479.6 MB, free: 4.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004228/0.1308, allocations: 251.2 kB / 479.9 MB, free: 4.004 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1308, allocations: 0 / 479.9 MB, free: 4.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007866/0.1316, allocations: 437.9 kB / 480.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.1317, allocations: 8 kB / 480.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.1317, allocations: 4 kB / 480.3 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005553/0.1322, allocations: 236.7 kB / 480.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002236/0.1325, allocations: 55.84 kB / 480.6 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007257/0.1332, allocations: 0.7592 MB / 481.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00025/0.1335, allocations: 35.98 kB / 481.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.1335, allocations: 12 kB / 481.4 MB, free: 2.434 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001532/0.1337, allocations: 148.6 kB / 481.6 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.575e-05/0.1337, allocations: 15.81 kB / 481.6 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.325e-05/0.1338, allocations: 46.64 kB / 481.6 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1338, allocations: 4 kB / 481.6 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1338, allocations: 0 / 481.6 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1339, allocations: 0 / 481.6 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001505/0.1354, allocations: 0.9441 MB / 482.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.1354, allocations: 0 / 482.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002195/0.1356, allocations: 51.91 kB / 482.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000405/0.136, allocations: 216.7 kB / 482.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.558e-05/0.1361, allocations: 8 kB / 482.8 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006042/0.1367, allocations: 0.72 MB / 483.6 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1367, allocations: 0 / 483.6 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.1378, allocations: 0.6372 MB / 484.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.1379, allocations: 128.8 kB / 484.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.623e-05/0.138, allocations: 15.94 kB / 484.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.1383, allocations: 27.97 kB / 484.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.1384, allocations: 51.91 kB / 484.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.1384, allocations: 16.05 kB / 484.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001272/0.1386, allocations: 148.2 kB / 484.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1386, allocations: 0 / 484.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003833/0.1389, allocations: 76 kB / 484.7 MB, free: 15.05 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002169/0.1392, allocations: 142 kB / 484.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007967/0.14, allocations: 327.7 kB / 485.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.14, allocations: 4.125 kB / 485.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000317/0.1403, allocations: 156.1 kB / 485.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.1407, allocations: 31.98 kB / 485.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.1427, allocations: 0.7755 MB / 486.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.143, allocations: 0.7525 MB / 486.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.074e-05/0.1431, allocations: 27.44 kB / 486.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1431, allocations: 0 / 486.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of Templates: time 0.00627/0.1493, allocations: 4.095 MB / 491 MB, free: 8.688 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches