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.001144/0.001144, allocations: 106.8 kB / 17.33 MB, free: 5.996 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.00107/0.00107, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.339/1.339, allocations: 222.9 MB / 241.9 MB, free: 13.71 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.2032/0.2032, allocations: 44.18 MB / 336.3 MB, free: 2.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 63.3 kB / 408 MB, free: 27.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1139, allocations: 60.83 MB / 468.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004493/0.1185, allocations: 2.287 MB / 471.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.1201, allocations: 0.7129 MB / 471.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000335/0.1205, allocations: 7.938 kB / 471.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003319/0.1208, allocations: 35.78 kB / 471.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003127/0.1212, allocations: 55.59 kB / 471.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006098/0.1218, allocations: 115.8 kB / 472 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003784/0.1222, allocations: 339.2 kB / 472.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002357/0.1224, allocations: 80.58 kB / 472.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002065/0.1227, allocations: 139.5 kB / 472.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.1229, allocations: 167.4 kB / 472.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.338e-05/0.1229, allocations: 24 kB / 472.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.1231, allocations: 75.95 kB / 472.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.1232, allocations: 67.75 kB / 472.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.1233, allocations: 131.4 kB / 473 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004085/0.1238, allocations: 331.2 kB / 473.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1238, allocations: 0 / 473.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1238, allocations: 4 kB / 473.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.1238, allocations: 0 / 473.4 MB, free: 10.05 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.001024/0.1248, allocations: 0.5652 MB / 473.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.1249, allocations: 8.031 kB / 473.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.355e-05/0.125, allocations: 58.72 kB / 474 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.676e-05/0.125, allocations: 24.66 kB / 474 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.1253, allocations: 243.9 kB / 474.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.046e-05/0.1254, allocations: 12.81 kB / 474.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.914e-05/0.1254, allocations: 28.38 kB / 474.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005095/0.1259, allocations: 267.3 kB / 474.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.126, allocations: 0 / 474.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.126, allocations: 11.94 kB / 474.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.126, allocations: 4 kB / 474.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004774/0.1265, allocations: 237.6 kB / 474.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.1278, allocations: 0.7245 MB / 475.5 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005479/0.1284, allocations: 250.4 kB / 475.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002477/0.1286, allocations: 140.8 kB / 475.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.1287, allocations: 4 kB / 475.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.1287, allocations: 31 kB / 475.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.403e-06/0.1287, allocations: 0 / 475.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.003136/0.1318, allocations: 1.466 MB / 477.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.1319, allocations: 55.41 kB / 477.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.1321, allocations: 207.1 kB / 477.7 MB, free: 5.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.824e-05/0.1321, allocations: 33.7 kB / 477.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.091e-05/0.1322, allocations: 132.7 kB / 477.8 MB, free: 5.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.248e-05/0.1323, allocations: 110.4 kB / 477.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.1324, allocations: 65.61 kB / 478 MB, free: 5.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.1326, allocations: 338.8 kB / 478.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.1328, allocations: 127.9 kB / 478.5 MB, free: 4.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002673/0.1331, allocations: 172.2 kB / 478.6 MB, free: 4.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000423/0.1335, allocations: 243.3 kB / 478.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.1336, allocations: 0 / 478.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007742/0.1343, allocations: 449.8 kB / 479.3 MB, free: 3.742 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1344, allocations: 7.938 kB / 479.3 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1344, allocations: 0 / 479.3 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005726/0.135, allocations: 232.7 kB / 479.5 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.1352, allocations: 55.91 kB / 479.6 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007428/0.1359, allocations: 0.7514 MB / 480.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002424/0.1362, allocations: 35.98 kB / 480.4 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.1362, allocations: 12 kB / 480.4 MB, free: 2.625 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.0001745/0.1364, allocations: 151.5 kB / 480.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.951e-05/0.1365, allocations: 23.75 kB / 480.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.408e-05/0.1366, allocations: 30.66 kB / 480.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.1366, allocations: 8.062 kB / 480.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1366, allocations: 0 / 480.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.1366, allocations: 3.984 kB / 480.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001585/0.1382, allocations: 0.9558 MB / 481.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1382, allocations: 0 / 481.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.1385, allocations: 51.91 kB / 481.6 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000411/0.1389, allocations: 212.7 kB / 481.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.627e-05/0.1389, allocations: 11.98 kB / 481.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006717/0.1396, allocations: 0.7162 MB / 482.5 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1396, allocations: 0 / 482.5 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.1408, allocations: 0.6411 MB / 483.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.1409, allocations: 128.8 kB / 483.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.583e-05/0.141, allocations: 15.94 kB / 483.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.1413, allocations: 31.95 kB / 483.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.1414, allocations: 51.91 kB / 483.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.694e-05/0.1414, allocations: 20.05 kB / 483.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001298/0.1416, allocations: 144.2 kB / 483.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1416, allocations: 3.938 kB / 483.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003829/0.142, allocations: 80 kB / 483.7 MB, free: 15.21 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.001536/0.1435, allocations: 1.202 MB / 484.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007748/0.1443, allocations: 327.7 kB / 485.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1443, allocations: 0 / 485.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003373/0.1447, allocations: 164.1 kB / 485.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.1451, allocations: 38.45 kB / 485.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00486/0.1499, allocations: 3.199 MB / 488.6 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003466/0.1503, allocations: 0.7447 MB / 489.3 MB, free: 9.391 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.1504, allocations: 22.28 kB / 489.3 MB, free: 9.371 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.1505, allocations: 75.41 kB / 489.4 MB, free: 9.301 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1506, allocations: 0 / 489.4 MB, free: 9.301 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02252/0.1731, allocations: 7.33 MB / 496.7 MB, free: 2.137 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001983/0.1733, allocations: 241.2 kB / 497 MB, free: 1.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.052/2.225, allocations: 0 / 497 MB, free: 1.879 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