Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00138/0.00138, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001522/0.001522, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2166/0.2166, allocations: 46.09 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 77.38 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1168, allocations: 62.44 MB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006347/0.1232, allocations: 4.111 MB / 484.2 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002784/0.126, allocations: 1.485 MB / 485.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003627/0.1264, allocations: 11.94 kB / 485.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004397/0.1269, allocations: 130.8 kB / 485.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006084/0.1275, allocations: 285.9 kB / 486.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007346/0.1283, allocations: 347.4 kB / 486.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009111/0.1292, allocations: 1.089 MB / 487.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002844/0.1295, allocations: 186.5 kB / 487.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005598/0.1301, allocations: 474.5 kB / 488.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005727/0.1306, allocations: 0.5176 MB / 488.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001436/0.1308, allocations: 84 kB / 488.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002848/0.1311, allocations: 132 kB / 488.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002483/0.1313, allocations: 235.2 kB / 489.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003924/0.1317, allocations: 425.9 kB / 489.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.1328, allocations: 1.005 MB / 490.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1328, allocations: 0 / 490.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1328, allocations: 3.938 kB / 490.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.1328, allocations: 0 / 490.6 MB, free: 10.68 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002328/0.1352, allocations: 1.169 MB / 491.8 MB, free: 9.457 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.1352, allocations: 8.031 kB / 491.8 MB, free: 9.449 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001451/0.1354, allocations: 106.7 kB / 491.9 MB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005188/0.1359, allocations: 119.9 kB / 492 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006059/0.1365, allocations: 473.4 kB / 492.4 MB, free: 8.715 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.795e-05/0.1366, allocations: 49.69 kB / 492.5 MB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/0.1367, allocations: 75.84 kB / 492.6 MB, free: 8.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.1381, allocations: 0.8145 MB / 493.4 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.965e-05/0.1382, allocations: 8 kB / 493.4 MB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.72e-05/0.1382, allocations: 24 kB / 493.4 MB, free: 7.711 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.1383, allocations: 16 kB / 493.4 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.1399, allocations: 0.7374 MB / 494.2 MB, free: 6.961 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004289/0.1442, allocations: 2.597 MB / 496.8 MB, free: 4.242 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.1457, allocations: 0.6733 MB / 497.4 MB, free: 3.535 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007344/0.1465, allocations: 373.7 kB / 497.8 MB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.184e-05/0.1466, allocations: 8 kB / 497.8 MB, free: 3.152 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.1466, allocations: 50.5 kB / 497.9 MB, free: 3.094 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.595e-06/0.1466, allocations: 0 / 497.9 MB, free: 3.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.008128/0.1547, allocations: 3.529 MB / 0.4896 GB, free: 15.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.409e-05/0.1548, allocations: 140.5 kB / 0.4898 GB, free: 15.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005439/0.1554, allocations: 477.9 kB / 0.4902 GB, free: 14.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001334/0.1555, allocations: 53.69 kB / 0.4903 GB, free: 14.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.1557, allocations: 280.6 kB / 0.4905 GB, free: 14.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002505/0.156, allocations: 295.9 kB / 0.4908 GB, free: 14.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002775/0.1563, allocations: 170.5 kB / 0.491 GB, free: 13.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.1564, allocations: 374.8 kB / 0.4913 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007692/0.1572, allocations: 361.8 kB / 0.4917 GB, free: 13.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008805/0.1581, allocations: 0.5099 MB / 0.4922 GB, free: 12.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.1594, allocations: 0.7067 MB / 0.4929 GB, free: 11.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1595, allocations: 0 / 0.4929 GB, free: 11.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002654/0.1621, allocations: 1.202 MB / 0.4941 GB, free: 10.58 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.1622, allocations: 10.69 kB / 0.4941 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.1622, allocations: 11.98 kB / 0.4941 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001294/0.1635, allocations: 0.5733 MB / 0.4946 GB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005224/0.164, allocations: 151.7 kB / 0.4948 GB, free: 9.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003975/0.168, allocations: 3.842 MB / 0.4985 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009325/0.169, allocations: 143.7 kB / 0.4987 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.178e-05/0.169, allocations: 43.98 kB / 0.4987 GB, free: 5.582 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003514/0.1694, allocations: 220.2 kB / 0.4989 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000226/0.1696, allocations: 75.16 kB / 0.499 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001817/0.1698, allocations: 88.83 kB / 0.4991 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.1698, allocations: 11.94 kB / 0.4991 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.1699, allocations: 4 kB / 0.4991 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.1699, allocations: 3.984 kB / 0.4991 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004356/0.1742, allocations: 2.164 MB / 0.5012 GB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.1742, allocations: 0 / 0.5012 GB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005445/0.1748, allocations: 119.8 kB / 0.5013 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001154/0.176, allocations: 0.5303 MB / 0.5018 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.083e-05/0.1761, allocations: 39.95 kB / 0.5019 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2419/0.418, allocations: 3.648 MB / 0.5054 GB, free: 39.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.4181, allocations: 1.578 kB / 0.5054 GB, free: 39.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003779/0.4218, allocations: 1.726 MB / 0.5071 GB, free: 39.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000393/0.4223, allocations: 225.6 kB / 0.5073 GB, free: 39.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001368/0.4224, allocations: 29.31 kB / 0.5074 GB, free: 39.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008971/0.4233, allocations: 126.9 kB / 0.5075 GB, free: 39.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005149/0.4238, allocations: 189.2 kB / 0.5077 GB, free: 39.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.371e-05/0.4239, allocations: 39.88 kB / 0.5077 GB, free: 39.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004659/0.4244, allocations: 323.1 kB / 0.508 GB, free: 39.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4244, allocations: 0 / 0.508 GB, free: 39.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009802/0.4254, allocations: 210.9 kB / 0.5082 GB, free: 39.33 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004334/0.4297, allocations: 2.565 MB / 0.5107 GB, free: 37.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002471/0.4322, allocations: 1.062 MB / 0.5118 GB, free: 37.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.4322, allocations: 1.375 kB / 0.5118 GB, free: 37.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.4335, allocations: 0.6346 MB / 0.5124 GB, free: 37.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.4346, allocations: 140.8 kB / 0.5125 GB, free: 37.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0129/0.4475, allocations: 7.486 MB / 0.5198 GB, free: 32.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006031/0.4481, allocations: 0.9283 MB / 0.5207 GB, free: 32.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004561/0.4486, allocations: 78.84 kB / 0.5208 GB, free: 32.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003809/0.449, allocations: 240.5 kB / 0.521 GB, free: 31.91 MB / 382.1 MB Notification: Performance of SimCode: time 1.372e-06/0.449, allocations: 1.156 kB / 0.521 GB, free: 31.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04861/0.4976, allocations: 21.67 MB / 0.5422 GB, free: 17.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.24, allocations: 6.25 kB / 0.5422 GB, free: 17.12 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_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_TestFriction.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches