Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 202.1 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 226.5 MB / 243.1 MB, free: 12.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008805/0.0008805, allocations: 95.27 kB / 295.1 MB, free: 4.438 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1886/0.1886, allocations: 44.84 MB / 392 MB, free: 11.4 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002967/0.0002969, allocations: 15.98 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.101, allocations: 62.96 MB / 0.5153 GB, free: 5.133 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002175/0.1033, allocations: 1.973 MB / 0.5173 GB, free: 3.141 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.1044, allocations: 0.803 MB / 0.518 GB, free: 2.332 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001724/0.1046, allocations: 11.94 kB / 0.518 GB, free: 2.32 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002328/0.1048, allocations: 39.77 kB / 0.5181 GB, free: 2.281 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000194/0.105, allocations: 67.52 kB / 0.5182 GB, free: 2.215 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.1053, allocations: 99.81 kB / 0.5182 GB, free: 2.117 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000275/0.1056, allocations: 303.4 kB / 0.5185 GB, free: 1.82 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000165/0.1058, allocations: 64.64 kB / 0.5186 GB, free: 1.758 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002345/0.106, allocations: 139.5 kB / 0.5187 GB, free: 1.621 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000195/0.1062, allocations: 143.5 kB / 0.5189 GB, free: 1.48 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.3e-05/0.1063, allocations: 12 kB / 0.5189 GB, free: 1.469 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001577/0.1065, allocations: 63.98 kB / 0.5189 GB, free: 1.406 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.711e-05/0.1065, allocations: 55.8 kB / 0.519 GB, free: 1.352 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.518e-05/0.1066, allocations: 65.58 kB / 0.5191 GB, free: 1.281 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002423/0.1069, allocations: 263.6 kB / 0.5193 GB, free: 1.023 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1069, allocations: 4 kB / 0.5193 GB, free: 1.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1069, allocations: 7.875 kB / 0.5193 GB, free: 1.012 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.1069, allocations: 4 kB / 0.5193 GB, free: 1.008 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007641/0.1077, allocations: 0.5419 MB / 0.5199 GB, free: 428 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.1077, allocations: 11.97 kB / 0.5199 GB, free: 416 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.1079, allocations: 39.7 kB / 0.5199 GB, free: 376 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.1082, allocations: 243.4 kB / 0.5201 GB, free: 88 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.299e-05/0.1082, allocations: 20.56 kB / 0.5202 GB, free: 68 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.808e-05/0.1083, allocations: 20 kB / 0.5202 GB, free: 48 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00055/0.1088, allocations: 264.8 kB / 0.5204 GB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.1088, allocations: 11.91 kB / 0.5204 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.1089, allocations: 4 kB / 0.5204 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1089, allocations: 8 kB / 0.5204 GB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004683/0.1094, allocations: 230.1 kB / 0.5207 GB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.1107, allocations: 0.7484 MB / 0.5214 GB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005048/0.1112, allocations: 250.4 kB / 0.5216 GB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002563/0.1115, allocations: 144.4 kB / 0.5218 GB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.1115, allocations: 3.938 kB / 0.5218 GB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.1115, allocations: 38.56 kB / 0.5218 GB, free: 14.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.413e-06/0.1116, allocations: 0 / 0.5218 GB, free: 14.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.002941/0.1145, allocations: 1.44 MB / 0.5232 GB, free: 12.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.1146, allocations: 55.41 kB / 0.5233 GB, free: 12.67 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002097/0.1148, allocations: 211.6 kB / 0.5235 GB, free: 12.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/0.1148, allocations: 37.7 kB / 0.5235 GB, free: 12.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.539e-05/0.1149, allocations: 140.7 kB / 0.5236 GB, free: 12.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.85e-05/0.115, allocations: 114.3 kB / 0.5238 GB, free: 12.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.009e-05/0.115, allocations: 8 kB / 0.5238 GB, free: 12.15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.1152, allocations: 338.8 kB / 0.5241 GB, free: 11.81 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002413/0.1154, allocations: 115.9 kB / 0.5242 GB, free: 11.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002571/0.1157, allocations: 155.3 kB / 0.5243 GB, free: 11.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002083/0.1159, allocations: 108 kB / 0.5244 GB, free: 11.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1159, allocations: 0 / 0.5244 GB, free: 11.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007493/0.1167, allocations: 417.6 kB / 0.5248 GB, free: 11.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.1167, allocations: 8.062 kB / 0.5249 GB, free: 11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.341e-06/0.1167, allocations: 0 / 0.5249 GB, free: 11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004037/0.1171, allocations: 168.7 kB / 0.525 GB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.1173, allocations: 59.89 kB / 0.5251 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006726/0.118, allocations: 0.7299 MB / 0.5258 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002634/0.1183, allocations: 48 kB / 0.5258 GB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.1183, allocations: 11.98 kB / 0.5258 GB, free: 9.961 MB / 362.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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001405/0.1185, allocations: 149.8 kB / 0.526 GB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.465e-05/0.1185, allocations: 27.67 kB / 0.526 GB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.915e-05/0.1186, allocations: 38.64 kB / 0.526 GB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1186, allocations: 4 kB / 0.526 GB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1186, allocations: 3.938 kB / 0.5261 GB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1187, allocations: 0 / 0.5261 GB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/0.12, allocations: 0.9285 MB / 0.527 GB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.12, allocations: 0 / 0.527 GB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002301/0.1203, allocations: 47.91 kB / 0.527 GB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003116/0.1206, allocations: 152.8 kB / 0.5272 GB, free: 8.539 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.1206, allocations: 11.98 kB / 0.5272 GB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005602/0.1212, allocations: 0.685 MB / 0.5278 GB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1212, allocations: 4.031 kB / 0.5278 GB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009656/0.1222, allocations: 0.5948 MB / 0.5284 GB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.1223, allocations: 120.9 kB / 0.5285 GB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.38e-05/0.1224, allocations: 19.94 kB / 0.5286 GB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000259/0.1226, allocations: 44.03 kB / 0.5286 GB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.1228, allocations: 55.88 kB / 0.5286 GB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.1228, allocations: 12 kB / 0.5287 GB, free: 6.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001238/0.1229, allocations: 153.5 kB / 0.5288 GB, free: 6.781 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1229, allocations: 4 kB / 0.5288 GB, free: 6.777 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003306/0.1233, allocations: 71.91 kB / 0.5289 GB, free: 6.707 MB / 362.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 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007036/0.124, allocations: 362.3 kB / 0.5292 GB, free: 6.461 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000665/0.1246, allocations: 307.7 kB / 0.5295 GB, free: 6.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1247, allocations: 0 / 0.5295 GB, free: 6.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003078/0.125, allocations: 151.9 kB / 0.5297 GB, free: 6.012 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003681/0.1253, allocations: 36.11 kB / 0.5297 GB, free: 5.977 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.1272, allocations: 0.9935 MB / 0.5307 GB, free: 4.945 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.1275, allocations: 0.7525 MB / 0.5314 GB, free: 4.168 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.06e-05/0.1276, allocations: 23.44 kB / 0.5314 GB, free: 4.145 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1276, allocations: 0 / 0.5314 GB, free: 4.145 MB / 362.7 MB Notification: Performance of Templates: time 0.006271/0.1339, allocations: 4.392 MB / 0.5357 GB, free: 15.75 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches