Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001572/0.001571, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001881/0.001881, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.235/0.235, allocations: 46.11 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 85.42 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1252, allocations: 62.45 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004058/0.1293, allocations: 2.359 MB / 482.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.1309, allocations: 0.8958 MB / 483.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001727/0.1311, allocations: 7.938 kB / 483.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002399/0.1314, allocations: 51.58 kB / 483.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000227/0.1316, allocations: 79.33 kB / 483.5 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004118/0.132, allocations: 147.6 kB / 483.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003471/0.1324, allocations: 347.4 kB / 484 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.1326, allocations: 76.94 kB / 484.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000256/0.1328, allocations: 159.5 kB / 484.2 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002208/0.1331, allocations: 159.4 kB / 484.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.628e-05/0.1331, allocations: 28 kB / 484.4 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001891/0.1333, allocations: 87.92 kB / 484.5 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.1335, allocations: 75.73 kB / 484.6 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.1337, allocations: 139.4 kB / 484.7 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004833/0.1341, allocations: 379.1 kB / 485.1 MB, free: 188 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1342, allocations: 0 / 485.1 MB, free: 188 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1342, allocations: 0 / 485.1 MB, free: 188 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.1342, allocations: 4 kB / 485.1 MB, free: 184 kB / 350.1 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.001058/0.1353, allocations: 0.5732 MB / 485.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1353, allocations: 16.03 kB / 485.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.674e-05/0.1354, allocations: 54.73 kB / 485.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002011/0.1356, allocations: 32.64 kB / 485.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003039/0.1359, allocations: 256.4 kB / 486 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.508e-05/0.136, allocations: 20.94 kB / 486 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.11e-05/0.136, allocations: 20.38 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005389/0.1366, allocations: 272.9 kB / 486.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.1366, allocations: 0 / 486.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.1366, allocations: 12 kB / 486.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.1366, allocations: 12 kB / 486.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005179/0.1372, allocations: 238 kB / 486.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.1386, allocations: 0.7444 MB / 487.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005175/0.1391, allocations: 242.4 kB / 487.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.1394, allocations: 136.8 kB / 487.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.1394, allocations: 12.06 kB / 487.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.1394, allocations: 30.56 kB / 487.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.433e-06/0.1395, allocations: 0 / 487.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.00353/0.143, allocations: 1.421 MB / 489.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.1431, allocations: 59.41 kB / 489.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002359/0.1433, allocations: 203.8 kB / 489.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.723e-05/0.1433, allocations: 37.7 kB / 489.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.269e-05/0.1434, allocations: 136.6 kB / 489.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.1436, allocations: 122.3 kB / 489.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.1437, allocations: 61.69 kB / 489.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.1438, allocations: 342.8 kB / 490.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002655/0.1441, allocations: 119.9 kB / 490.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.1444, allocations: 172.3 kB / 490.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004236/0.1449, allocations: 227.3 kB / 490.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1449, allocations: 0 / 490.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008677/0.1457, allocations: 433.7 kB / 491 MB, free: 9.871 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1458, allocations: 18.22 kB / 491 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.1458, allocations: 0 / 491 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005064/0.1463, allocations: 200.7 kB / 491.2 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.1465, allocations: 47.97 kB / 491.3 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007452/0.1473, allocations: 0.7354 MB / 492 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002791/0.1476, allocations: 44.02 kB / 492.1 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.797e-05/0.1476, allocations: 8 kB / 492.1 MB, free: 8.801 MB / 366.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,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001805/0.1478, allocations: 152.5 kB / 492.2 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.843e-05/0.1479, allocations: 23.72 kB / 492.2 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.942e-05/0.148, allocations: 34.66 kB / 492.3 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.148, allocations: 4 kB / 492.3 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.148, allocations: 0 / 492.3 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.148, allocations: 7.984 kB / 492.3 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.1497, allocations: 0.9439 MB / 493.2 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1497, allocations: 0 / 493.2 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000227/0.15, allocations: 47.97 kB / 493.3 MB, free: 7.516 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004347/0.1504, allocations: 180.6 kB / 493.5 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.326e-05/0.1505, allocations: 16.02 kB / 493.5 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000656/0.1511, allocations: 0.6889 MB / 494.2 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1511, allocations: 0 / 494.2 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.1523, allocations: 0.6185 MB / 494.8 MB, free: 5.965 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.1524, allocations: 128.8 kB / 494.9 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.632e-05/0.1525, allocations: 11.98 kB / 494.9 MB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/0.1527, allocations: 31.97 kB / 494.9 MB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.1529, allocations: 43.92 kB / 495 MB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.527e-05/0.1529, allocations: 15.98 kB / 495 MB, free: 5.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001446/0.1531, allocations: 153.6 kB / 495.2 MB, free: 5.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1531, allocations: 0 / 495.2 MB, free: 5.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003763/0.1535, allocations: 79.92 kB / 495.2 MB, free: 5.492 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002056/0.1555, allocations: 1.388 MB / 496.6 MB, free: 4.188 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007637/0.1563, allocations: 327.7 kB / 496.9 MB, free: 3.867 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1563, allocations: 0 / 496.9 MB, free: 3.867 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003295/0.1566, allocations: 164.4 kB / 497.1 MB, free: 3.707 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000425/0.1571, allocations: 35.3 kB / 497.1 MB, free: 3.676 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004915/0.162, allocations: 3.094 MB / 0.4885 GB, free: 488 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003554/0.1624, allocations: 0.7525 MB / 0.4892 GB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.1625, allocations: 26.28 kB / 0.4893 GB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.1626, allocations: 75.41 kB / 0.4893 GB, free: 15.59 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1626, allocations: 0 / 0.4893 GB, free: 15.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03139/0.194, allocations: 7.665 MB / 0.4968 GB, free: 8.062 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.63, allocations: 3.938 kB / 0.4968 GB, free: 8.059 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv","/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_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches