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: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 107.6 kB / 17.21 MB, free: 6.289 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.001193/0.001193, allocations: 194 kB / 18.12 MB, free: 5.383 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.383/1.383, allocations: 222.9 MB / 241.8 MB, free: 15.36 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.2074/0.2074, allocations: 44.17 MB / 336.1 MB, free: 3.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 59.81 kB / 407.8 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0974/0.09869, allocations: 60.82 MB / 468.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004088/0.1028, allocations: 2.287 MB / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.1044, allocations: 0.7246 MB / 471.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002419/0.1046, allocations: 8 kB / 471.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002681/0.105, allocations: 35.78 kB / 471.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.1052, allocations: 59.53 kB / 471.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004248/0.1056, allocations: 107.8 kB / 471.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004297/0.1061, allocations: 323.2 kB / 472.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.1063, allocations: 77 kB / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002904/0.1066, allocations: 135.5 kB / 472.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002852/0.1069, allocations: 147.4 kB / 472.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.403e-05/0.107, allocations: 16 kB / 472.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001887/0.1071, allocations: 63.95 kB / 472.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.1073, allocations: 51.81 kB / 472.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.1075, allocations: 123.4 kB / 472.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004436/0.1079, allocations: 323.2 kB / 473.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1079, allocations: 0 / 473.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1079, allocations: 0 / 473.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.886e-06/0.1079, allocations: 0 / 473.1 MB, free: 10.29 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.001129/0.1091, allocations: 0.5536 MB / 473.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.1091, allocations: 8.031 kB / 473.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.82e-05/0.1092, allocations: 62.72 kB / 473.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.708e-05/0.1093, allocations: 28.56 kB / 473.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.1097, allocations: 236 kB / 474 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.1097, allocations: 20.81 kB / 474 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.843e-05/0.1098, allocations: 28.36 kB / 474 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005774/0.1104, allocations: 267.2 kB / 474.3 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.1104, allocations: 4 kB / 474.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.1105, allocations: 4 kB / 474.3 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.1105, allocations: 8 kB / 474.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005211/0.111, allocations: 233.6 kB / 474.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.1124, allocations: 0.7361 MB / 475.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005338/0.113, allocations: 254.1 kB / 475.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002738/0.1132, allocations: 140.8 kB / 475.6 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.1133, allocations: 3.938 kB / 475.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.1133, allocations: 35 kB / 475.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.444e-06/0.1133, allocations: 0 / 475.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.003295/0.1166, allocations: 1.457 MB / 477.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.662e-05/0.1167, allocations: 55.41 kB / 477.2 MB, free: 5.895 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/0.1169, allocations: 203.1 kB / 477.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.703e-05/0.117, allocations: 41.7 kB / 477.4 MB, free: 5.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.751e-05/0.1171, allocations: 132.7 kB / 477.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.1172, allocations: 114.4 kB / 477.7 MB, free: 5.391 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/0.1174, allocations: 69.61 kB / 477.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1175, allocations: 334.8 kB / 478.1 MB, free: 4.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002779/0.1178, allocations: 123.9 kB / 478.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003042/0.1181, allocations: 172.2 kB / 478.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004676/0.1186, allocations: 243.3 kB / 478.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1186, allocations: 0 / 478.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008289/0.1194, allocations: 441.8 kB / 479 MB, free: 3.988 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.1195, allocations: 4 kB / 479 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.1195, allocations: 4.062 kB / 479 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005731/0.1201, allocations: 236.6 kB / 479.2 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000234/0.1203, allocations: 51.97 kB / 479.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008435/0.1212, allocations: 0.7591 MB / 480.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/0.1214, allocations: 36.02 kB / 480.1 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.23e-05/0.1215, allocations: 12 kB / 480.1 MB, free: 2.863 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.0001704/0.1217, allocations: 146.8 kB / 480.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.226e-05/0.1217, allocations: 19.75 kB / 480.3 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.159e-05/0.1218, allocations: 34.66 kB / 480.3 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1218, allocations: 4 kB / 480.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1219, allocations: 7.984 kB / 480.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1219, allocations: 4 kB / 480.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001635/0.1235, allocations: 0.9519 MB / 481.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1235, allocations: 0 / 481.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002483/0.1238, allocations: 51.91 kB / 481.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004568/0.1242, allocations: 212.7 kB / 481.5 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.282e-05/0.1243, allocations: 11.98 kB / 481.5 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007669/0.1251, allocations: 0.72 MB / 482.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.1251, allocations: 0 / 482.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.1262, allocations: 0.6372 MB / 482.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.1264, allocations: 128.9 kB / 483 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.462e-05/0.1265, allocations: 15.94 kB / 483 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002591/0.1267, allocations: 35.95 kB / 483.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.1268, allocations: 43.91 kB / 483.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.1269, allocations: 15.98 kB / 483.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001345/0.127, allocations: 152.2 kB / 483.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.127, allocations: 0 / 483.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.1274, allocations: 80 kB / 483.4 MB, free: 15.46 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.001502/0.1289, allocations: 1.202 MB / 484.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007087/0.1296, allocations: 315.7 kB / 484.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1296, allocations: 3.938 kB / 484.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003454/0.13, allocations: 155.9 kB / 485 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003972/0.1304, allocations: 32.23 kB / 485.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004995/0.1354, allocations: 3.198 MB / 488.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.1358, allocations: 0.7486 MB / 489 MB, free: 9.656 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.723e-05/0.1359, allocations: 26.28 kB / 489 MB, free: 9.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.136, allocations: 63.42 kB / 489.1 MB, free: 9.57 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.136, allocations: 3.938 kB / 489.1 MB, free: 9.566 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.1561, allocations: 7.048 MB / 496.1 MB, free: 2.66 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/0.1564, allocations: 244.1 kB / 496.4 MB, free: 2.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.981/2.138, allocations: 0 / 496.4 MB, free: 2.402 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > 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