Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/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_cpp_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_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001172/0.001172, allocations: 171.1 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007767/0.0007766, allocations: 107.1 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2965/0.2965, allocations: 43.56 MB / 363.1 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003905/0.0003906, allocations: 27.97 kB / 432 MB, free: 5.609 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.103, allocations: 58.84 MB / 490.8 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002246/0.1053, allocations: 1.882 MB / 492.7 MB, free: 8.785 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.1065, allocations: 0.7337 MB / 493.4 MB, free: 8.043 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.1066, allocations: 3.938 kB / 493.4 MB, free: 8.039 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001805/0.1068, allocations: 27.84 kB / 493.5 MB, free: 8.012 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.1069, allocations: 55.55 kB / 493.5 MB, free: 7.957 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003409/0.1073, allocations: 103.8 kB / 493.6 MB, free: 7.855 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003239/0.1076, allocations: 295.3 kB / 493.9 MB, free: 7.566 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.1078, allocations: 73.02 kB / 494 MB, free: 7.496 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.108, allocations: 127.5 kB / 494.1 MB, free: 7.371 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.1082, allocations: 135.5 kB / 494.2 MB, free: 7.238 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.619e-05/0.1082, allocations: 12 kB / 494.2 MB, free: 7.227 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.1084, allocations: 67.89 kB / 494.3 MB, free: 7.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.127e-05/0.1084, allocations: 47.83 kB / 494.4 MB, free: 7.113 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001346/0.1086, allocations: 137.1 kB / 494.5 MB, free: 6.973 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002552/0.1089, allocations: 231.6 kB / 494.7 MB, free: 6.746 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1089, allocations: 4 kB / 494.7 MB, free: 6.742 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1089, allocations: 0 / 494.7 MB, free: 6.742 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.1089, allocations: 0 / 494.7 MB, free: 6.742 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.0008425/0.1097, allocations: 0.5224 MB / 495.2 MB, free: 6.172 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.1098, allocations: 15.97 kB / 495.3 MB, free: 6.156 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.836e-05/0.1098, allocations: 24.66 kB / 495.3 MB, free: 6.133 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002832/0.1101, allocations: 247.9 kB / 495.5 MB, free: 5.852 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.1102, allocations: 12.81 kB / 495.5 MB, free: 5.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.597e-05/0.1102, allocations: 28.31 kB / 495.6 MB, free: 5.812 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000499/0.1107, allocations: 267.5 kB / 495.8 MB, free: 5.547 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.1108, allocations: 3.906 kB / 495.8 MB, free: 5.543 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.1108, allocations: 4 kB / 495.8 MB, free: 5.539 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.1108, allocations: 8 kB / 495.8 MB, free: 5.531 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004612/0.1113, allocations: 245.6 kB / 496.1 MB, free: 5.289 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00126/0.1126, allocations: 0.7401 MB / 496.8 MB, free: 4.496 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005039/0.1131, allocations: 250.5 kB / 497.1 MB, free: 4.242 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002573/0.1133, allocations: 144.8 kB / 497.2 MB, free: 4.098 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.1134, allocations: 4 kB / 497.2 MB, free: 4.094 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.1134, allocations: 38.56 kB / 497.3 MB, free: 4.047 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 1.423e-06/0.1134, allocations: 0 / 497.3 MB, free: 4.047 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.003009/0.1164, allocations: 1.5 MB / 498.8 MB, free: 2.438 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.1165, allocations: 55.41 kB / 498.8 MB, free: 2.371 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.1167, allocations: 190.6 kB / 499 MB, free: 2.172 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.19e-05/0.1167, allocations: 37.7 kB / 499 MB, free: 2.129 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.694e-05/0.1168, allocations: 140.5 kB / 499.2 MB, free: 1.988 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.282e-05/0.1169, allocations: 122.4 kB / 499.3 MB, free: 1.867 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/0.117, allocations: 8 kB / 499.3 MB, free: 1.859 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.1171, allocations: 330.8 kB / 499.6 MB, free: 1.527 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/0.1174, allocations: 123.9 kB / 499.7 MB, free: 1.406 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002811/0.1176, allocations: 171 kB / 499.9 MB, free: 1.227 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004266/0.1181, allocations: 255.1 kB / 0.4884 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1181, allocations: 0 / 0.4884 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008278/0.1189, allocations: 453.8 kB / 0.4889 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.1189, allocations: 4 kB / 0.4889 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.119, allocations: 4 kB / 0.4889 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005492/0.1195, allocations: 240.7 kB / 0.4891 GB, free: 272 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.1197, allocations: 55.84 kB / 0.4892 GB, free: 216 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1978/0.3175, allocations: 0.7434 MB / 0.4899 GB, free: 42.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003335/0.3179, allocations: 46.47 kB / 0.4899 GB, free: 42.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.318, allocations: 14.94 kB / 0.4899 GB, free: 42.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001742/0.3181, allocations: 154.6 kB / 0.4901 GB, free: 42.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.159e-05/0.3182, allocations: 21.41 kB / 0.4901 GB, free: 42.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.262e-05/0.3183, allocations: 37.83 kB / 0.4901 GB, free: 42.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.3183, allocations: 3.094 kB / 0.4901 GB, free: 42.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.3183, allocations: 0 / 0.4901 GB, free: 42.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3183, allocations: 5.672 kB / 0.4902 GB, free: 42.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/0.3199, allocations: 0.9528 MB / 0.4911 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3199, allocations: 0 / 0.4911 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002278/0.3201, allocations: 48.67 kB / 0.4911 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004468/0.3206, allocations: 220.9 kB / 0.4913 GB, free: 42.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/0.3206, allocations: 19.48 kB / 0.4914 GB, free: 42.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005453/0.3212, allocations: 0.706 MB / 0.492 GB, free: 41.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3212, allocations: 1.422 kB / 0.492 GB, free: 41.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.3223, allocations: 0.6442 MB / 0.4927 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.3224, allocations: 126 kB / 0.4928 GB, free: 41.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.692e-05/0.3225, allocations: 8.359 kB / 0.4928 GB, free: 41.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.3227, allocations: 52.22 kB / 0.4929 GB, free: 41.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.3229, allocations: 56.53 kB / 0.4929 GB, free: 41.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.722e-05/0.3229, allocations: 13.97 kB / 0.4929 GB, free: 41.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000121/0.323, allocations: 148.8 kB / 0.4931 GB, free: 41.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.323, allocations: 3.062 kB / 0.4931 GB, free: 41.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000347/0.3234, allocations: 74.39 kB / 0.4931 GB, free: 41.29 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001963/0.3236, allocations: 131.2 kB / 0.4933 GB, free: 41.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000672/0.3243, allocations: 322.8 kB / 0.4936 GB, free: 41.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3243, allocations: 0 / 0.4936 GB, free: 41.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003106/0.3246, allocations: 173.7 kB / 0.4937 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.0003753/0.325, allocations: 33.09 kB / 0.4938 GB, free: 41.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.3268, allocations: 0.9651 MB / 0.4947 GB, free: 40.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002019/0.327, allocations: 0.7514 MB / 0.4954 GB, free: 40.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.28e-05/0.3271, allocations: 20.81 kB / 0.4955 GB, free: 40.07 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3271, allocations: 5.328 kB / 0.4955 GB, free: 40.07 MB / 378.7 MB Notification: Performance of Templates: time 0.005562/0.3327, allocations: 4.054 MB / 0.4994 GB, free: 39.76 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches