Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 173.9 kB / 16.08 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.668/1.668, allocations: 205.6 MB / 222.4 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008037/0.0008035, allocations: 90.58 kB / 270.8 MB, free: 8.125 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3916/0.3916, allocations: 43.67 MB / 362.7 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003403, allocations: 12 kB / 432.3 MB, free: 5.035 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1362, allocations: 58.84 MB / 491.1 MB, free: 10.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003705/0.14, allocations: 1.882 MB / 493 MB, free: 8.172 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002148/0.1422, allocations: 0.8285 MB / 493.9 MB, free: 7.316 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.1424, allocations: 7.938 kB / 493.9 MB, free: 7.309 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00031/0.1427, allocations: 27.78 kB / 493.9 MB, free: 7.281 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002297/0.143, allocations: 59.59 kB / 494 MB, free: 7.223 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005567/0.1435, allocations: 103.8 kB / 494.1 MB, free: 7.121 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004452/0.144, allocations: 315.3 kB / 494.4 MB, free: 6.809 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002777/0.1443, allocations: 77.02 kB / 494.4 MB, free: 6.734 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002728/0.1446, allocations: 131.5 kB / 494.6 MB, free: 6.605 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002848/0.1449, allocations: 139.4 kB / 494.7 MB, free: 6.469 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.563e-05/0.1449, allocations: 16 kB / 494.7 MB, free: 6.453 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001754/0.1451, allocations: 55.95 kB / 494.8 MB, free: 6.398 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001241/0.1453, allocations: 59.69 kB / 494.8 MB, free: 6.34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.1455, allocations: 137.1 kB / 495 MB, free: 6.199 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004411/0.1459, allocations: 315.2 kB / 495.3 MB, free: 5.891 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.1459, allocations: 3.938 kB / 495.3 MB, free: 5.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1459, allocations: 4 kB / 495.3 MB, free: 5.883 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1459, allocations: 0 / 495.3 MB, free: 5.883 MB / 378.7 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.001176/0.1471, allocations: 0.5224 MB / 495.8 MB, free: 5.312 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/0.1472, allocations: 12.03 kB / 495.8 MB, free: 5.301 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.543e-05/0.1473, allocations: 24.66 kB / 495.8 MB, free: 5.277 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000383/0.1477, allocations: 239.9 kB / 496.1 MB, free: 5.004 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.487e-05/0.1477, allocations: 16.81 kB / 496.1 MB, free: 4.988 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.334e-05/0.1478, allocations: 28.38 kB / 496.1 MB, free: 4.961 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006348/0.1484, allocations: 263.5 kB / 496.4 MB, free: 4.699 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.1485, allocations: 11.91 kB / 496.4 MB, free: 4.688 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.088e-05/0.1485, allocations: 8 kB / 496.4 MB, free: 4.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1486, allocations: 4 kB / 496.4 MB, free: 4.676 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005034/0.1491, allocations: 237.6 kB / 496.6 MB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.1506, allocations: 0.7557 MB / 497.4 MB, free: 3.637 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005696/0.1511, allocations: 242.5 kB / 497.6 MB, free: 3.391 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002665/0.1514, allocations: 144.8 kB / 497.8 MB, free: 3.246 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.1515, allocations: 0 / 497.8 MB, free: 3.246 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.1515, allocations: 38.56 kB / 497.8 MB, free: 3.199 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 9.91e-07/0.1515, allocations: 0 / 497.8 MB, free: 3.199 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.003117/0.1546, allocations: 1.51 MB / 499.3 MB, free: 1.582 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.1547, allocations: 51.41 kB / 499.4 MB, free: 1.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.1549, allocations: 198.6 kB / 499.6 MB, free: 1.312 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.6e-05/0.155, allocations: 41.7 kB / 499.6 MB, free: 1.266 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.673e-05/0.1551, allocations: 136.6 kB / 499.7 MB, free: 1.129 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.1552, allocations: 110.4 kB / 499.8 MB, free: 1.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-05/0.1552, allocations: 8 kB / 499.8 MB, free: 1.012 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.1554, allocations: 326.8 kB / 0.4884 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002535/0.1557, allocations: 123.9 kB / 0.4886 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003203/0.156, allocations: 179 kB / 0.4887 GB, free: 384 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004501/0.1564, allocations: 251.1 kB / 0.489 GB, free: 120 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1565, allocations: 4 kB / 0.489 GB, free: 116 kB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.2621/0.4186, allocations: 444.8 kB / 0.4894 GB, free: 43.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/0.4187, allocations: 7.469 kB / 0.4894 GB, free: 43.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.4187, allocations: 0 / 0.4894 GB, free: 43.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006341/0.4193, allocations: 242.3 kB / 0.4896 GB, free: 43.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/0.4196, allocations: 51.89 kB / 0.4897 GB, free: 43.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007219/0.4203, allocations: 0.7533 MB / 0.4904 GB, free: 42.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003063/0.4206, allocations: 54.86 kB / 0.4905 GB, free: 42.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.946e-05/0.4207, allocations: 14.84 kB / 0.4905 GB, free: 42.65 MB / 378.7 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,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * 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.0001884/0.4209, allocations: 143.6 kB / 0.4906 GB, free: 42.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.454e-05/0.4209, allocations: 25.44 kB / 0.4906 GB, free: 42.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.412e-05/0.421, allocations: 35.47 kB / 0.4907 GB, free: 42.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.421, allocations: 3.906 kB / 0.4907 GB, free: 42.53 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.4211, allocations: 3.938 kB / 0.4907 GB, free: 42.53 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.4211, allocations: 1.812 kB / 0.4907 GB, free: 42.53 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.4228, allocations: 0.9489 MB / 0.4916 GB, free: 42.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.4228, allocations: 3.672 kB / 0.4916 GB, free: 42.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002552/0.4231, allocations: 53.58 kB / 0.4917 GB, free: 42.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004626/0.4235, allocations: 220.5 kB / 0.4919 GB, free: 42.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.043e-05/0.4236, allocations: 10.91 kB / 0.4919 GB, free: 42.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005975/0.4242, allocations: 0.7071 MB / 0.4926 GB, free: 41.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4242, allocations: 8.734 kB / 0.4926 GB, free: 41.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.4254, allocations: 0.6452 MB / 0.4932 GB, free: 41.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.4255, allocations: 121.9 kB / 0.4933 GB, free: 41.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.733e-05/0.4256, allocations: 11.33 kB / 0.4933 GB, free: 41.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.4258, allocations: 51.25 kB / 0.4934 GB, free: 41.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.426, allocations: 48.5 kB / 0.4934 GB, free: 41.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/0.426, allocations: 13.83 kB / 0.4935 GB, free: 41.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001456/0.4262, allocations: 145.3 kB / 0.4936 GB, free: 41.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4262, allocations: 0 / 0.4936 GB, free: 41.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003995/0.4266, allocations: 74.92 kB / 0.4937 GB, free: 41.31 MB / 378.7 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.0002252/0.4268, allocations: 132 kB / 0.4938 GB, free: 41.22 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007802/0.4276, allocations: 327 kB / 0.4941 GB, free: 41.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.4276, allocations: 1.375 kB / 0.4941 GB, free: 41.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003477/0.428, allocations: 167.2 kB / 0.4943 GB, free: 41.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.4284, allocations: 35.47 kB / 0.4943 GB, free: 41.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001949/0.4304, allocations: 0.9579 MB / 0.4952 GB, free: 40.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.4306, allocations: 0.7526 MB / 0.496 GB, free: 40.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.65e-05/0.4307, allocations: 22.89 kB / 0.496 GB, free: 40.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.422e-05/0.4308, allocations: 24.69 kB / 0.496 GB, free: 40.05 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4308, allocations: 0 / 0.496 GB, free: 40.05 MB / 378.7 MB Notification: Performance of Templates: time 0.008965/0.4397, allocations: 4.749 MB / 0.5007 GB, free: 39.75 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches