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.001649/0.001649, allocations: 110.3 kB / 17.98 MB, free: 5.379 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.001962/0.001962, allocations: 193.3 kB / 18.9 MB, free: 4.461 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.343/1.343, allocations: 222.9 MB / 242.6 MB, free: 15.43 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.2059/0.2059, allocations: 44.17 MB / 336.9 MB, free: 2.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 64.97 kB / 408.5 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1054, allocations: 60.83 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003353/0.1088, allocations: 2.283 MB / 471.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.11, allocations: 0.7285 MB / 472.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.995e-05/0.1101, allocations: 4 kB / 472.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.1103, allocations: 23.78 kB / 472.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001206/0.1104, allocations: 59.53 kB / 472.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003697/0.1108, allocations: 119.9 kB / 472.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003126/0.1111, allocations: 335.2 kB / 472.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.1113, allocations: 88.55 kB / 473 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/0.1115, allocations: 143.5 kB / 473.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.1117, allocations: 151.4 kB / 473.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.12e-05/0.1118, allocations: 28 kB / 473.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.1119, allocations: 75.89 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.178e-05/0.112, allocations: 63.8 kB / 473.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.1121, allocations: 135.4 kB / 473.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002515/0.1124, allocations: 247.7 kB / 473.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1124, allocations: 0 / 473.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1124, allocations: 0 / 473.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1124, allocations: 0 / 473.8 MB, free: 10.24 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.0008678/0.1133, allocations: 0.5536 MB / 474.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.1133, allocations: 15.97 kB / 474.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7e-05/0.1134, allocations: 36.56 kB / 474.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.1137, allocations: 239.9 kB / 474.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/0.1137, allocations: 20.81 kB / 474.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.861e-05/0.1138, allocations: 20.38 kB / 474.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004891/0.1142, allocations: 263.5 kB / 475 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.1143, allocations: 0 / 475 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.1143, allocations: 12 kB / 475 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.1143, allocations: 4 kB / 475 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004877/0.1148, allocations: 245.5 kB / 475.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.1161, allocations: 0.7245 MB / 475.9 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004861/0.1166, allocations: 246.4 kB / 476.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/0.1168, allocations: 136.8 kB / 476.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.1168, allocations: 4 kB / 476.3 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.1169, allocations: 42.98 kB / 476.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.643e-06/0.1169, allocations: 3.938 kB / 476.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002854/0.1197, allocations: 1.456 MB / 477.8 MB, free: 5.969 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/0.1198, allocations: 59.39 kB / 477.9 MB, free: 5.898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.12, allocations: 199.1 kB / 478.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.12, allocations: 29.7 kB / 478.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.266e-05/0.1201, allocations: 136.7 kB / 478.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.07e-05/0.1202, allocations: 114.4 kB / 478.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.1203, allocations: 65.59 kB / 478.4 MB, free: 5.336 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1204, allocations: 338.8 kB / 478.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002272/0.1207, allocations: 120 kB / 478.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000254/0.1209, allocations: 168.2 kB / 479 MB, free: 4.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003974/0.1213, allocations: 255.2 kB / 479.3 MB, free: 4.441 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1213, allocations: 0 / 479.3 MB, free: 4.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007421/0.1221, allocations: 433.8 kB / 479.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.1221, allocations: 8 kB / 479.7 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1221, allocations: 4 kB / 479.7 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005197/0.1227, allocations: 240.7 kB / 479.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002299/0.1229, allocations: 51.91 kB / 480 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006978/0.1236, allocations: 0.7514 MB / 480.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.1239, allocations: 39.95 kB / 480.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.771e-05/0.1239, allocations: 8 kB / 480.8 MB, free: 2.883 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.0001529/0.1241, allocations: 150.5 kB / 480.9 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.286e-05/0.1241, allocations: 19.81 kB / 481 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.573e-05/0.1242, allocations: 46.56 kB / 481 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1242, allocations: 4 kB / 481 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1242, allocations: 0 / 481 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1242, allocations: 0 / 481 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.1257, allocations: 0.948 MB / 482 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.1257, allocations: 4 kB / 482 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002244/0.1259, allocations: 47.91 kB / 482 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003714/0.1263, allocations: 220.7 kB / 482.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.529e-05/0.1264, allocations: 8 kB / 482.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006112/0.127, allocations: 0.7239 MB / 483 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.127, allocations: 3.938 kB / 483 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.1281, allocations: 0.6372 MB / 483.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.1282, allocations: 128.8 kB / 483.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.19e-05/0.1282, allocations: 11.94 kB / 483.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.1285, allocations: 36.02 kB / 483.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.1286, allocations: 47.92 kB / 483.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.1287, allocations: 15.98 kB / 483.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001112/0.1288, allocations: 148.2 kB / 484 MB, free: 15.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1288, allocations: 0 / 484 MB, free: 15.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003469/0.1291, allocations: 76 kB / 484.1 MB, free: 15.48 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.0001796/0.1293, allocations: 138 kB / 484.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007178/0.13, allocations: 327.7 kB / 484.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1301, allocations: 0 / 484.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003113/0.1304, allocations: 163.8 kB / 484.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000379/0.1308, allocations: 27.98 kB / 484.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001809/0.1326, allocations: 0.8647 MB / 485.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/0.1329, allocations: 0.7525 MB / 486.3 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.425e-05/0.133, allocations: 27.42 kB / 486.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.133, allocations: 0 / 486.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of Templates: time 0.00573/0.1387, allocations: 4.099 MB / 490.4 MB, free: 9.027 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