Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",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.00119/0.00119, allocations: 102.5 kB / 16.27 MB, free: 5.93 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.001123/0.001123, allocations: 192.5 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2151/0.2151, allocations: 43.52 MB / 313.9 MB, free: 0.5312 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001439, allocations: 64.17 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1061, allocations: 57.79 MB / 440.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004186/0.1103, allocations: 3.916 MB / 444.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.1122, allocations: 1.275 MB / 445.8 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002319/0.1124, allocations: 11.94 kB / 445.8 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003128/0.1128, allocations: 110.9 kB / 445.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003524/0.1131, allocations: 210.2 kB / 446.1 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006387/0.1138, allocations: 347.4 kB / 446.5 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008452/0.1146, allocations: 1.026 MB / 447.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000352/0.115, allocations: 182.6 kB / 447.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006152/0.1156, allocations: 442.6 kB / 448.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006731/0.1163, allocations: 482.2 kB / 448.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001432/0.1164, allocations: 80 kB / 448.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002876/0.1167, allocations: 124 kB / 448.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002695/0.117, allocations: 211.2 kB / 449 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004248/0.1175, allocations: 398.1 kB / 449.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.1186, allocations: 0.9227 MB / 450.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1186, allocations: 0 / 450.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1186, allocations: 0 / 450.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.218e-05/0.1186, allocations: 0 / 450.3 MB, free: 13.08 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002201/0.1208, allocations: 1.083 MB / 451.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.355e-05/0.1209, allocations: 19.89 kB / 451.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001418/0.1211, allocations: 98.7 kB / 451.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.1213, allocations: 80 kB / 451.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006624/0.1219, allocations: 441.5 kB / 452 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.092e-05/0.122, allocations: 45.69 kB / 452 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001399/0.1221, allocations: 71.83 kB / 452.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.1238, allocations: 0.8257 MB / 452.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.366e-05/0.1238, allocations: 4 kB / 452.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.31e-05/0.1239, allocations: 24 kB / 453 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.115e-05/0.1239, allocations: 16 kB / 453 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.1255, allocations: 0.7696 MB / 453.8 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004187/0.1297, allocations: 2.573 MB / 456.3 MB, free: 6.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.1311, allocations: 0.623 MB / 456.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006998/0.1318, allocations: 375.3 kB / 457.3 MB, free: 5.754 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.26e-05/0.1318, allocations: 15.98 kB / 457.3 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/0.1319, allocations: 46.5 kB / 457.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of pre-optimization done (n=72): time 2.154e-06/0.1319, allocations: 0 / 457.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=76): time 0.007454/0.1393, allocations: 3.542 MB / 460.9 MB, free: 1.879 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.534e-05/0.1394, allocations: 140.5 kB / 461.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004483/0.1399, allocations: 425.8 kB / 461.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.764e-05/0.14, allocations: 57.69 kB / 461.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.1402, allocations: 280.3 kB / 461.8 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002077/0.1404, allocations: 264.4 kB / 462.1 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002693/0.1407, allocations: 166.5 kB / 462.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1408, allocations: 374.8 kB / 462.6 MB, free: 140 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007978/0.1416, allocations: 389.8 kB / 463 MB, free: 15.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009366/0.1426, allocations: 0.5452 MB / 463.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.1439, allocations: 0.7449 MB / 464.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.1439, allocations: 0 / 464.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002708/0.1466, allocations: 1.278 MB / 465.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1467, allocations: 7.938 kB / 465.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1467, allocations: 7.938 kB / 465.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001286/0.148, allocations: 0.7647 MB / 466.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005543/0.1486, allocations: 143.8 kB / 466.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002305/0.1509, allocations: 2.698 MB / 469.2 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009465/0.1518, allocations: 135.7 kB / 469.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.471e-05/0.1519, allocations: 48.03 kB / 469.3 MB, free: 9.148 MB / 350.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 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,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 (91): * Single equations (assignments): 87 * 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,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003901/0.1523, allocations: 212.2 kB / 469.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.1525, allocations: 63.25 kB / 469.6 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00018/0.1527, allocations: 83.91 kB / 469.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.1527, allocations: 8 kB / 469.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.1527, allocations: 4 kB / 469.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.1527, allocations: 7.984 kB / 469.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004049/0.1568, allocations: 2.165 MB / 471.9 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.1568, allocations: 0 / 471.9 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005548/0.1574, allocations: 111.9 kB / 472 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/0.1586, allocations: 0.7254 MB / 472.7 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.551e-05/0.1587, allocations: 27.97 kB / 472.7 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002282/0.161, allocations: 2.643 MB / 475.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.161, allocations: 0 / 475.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003343/0.1643, allocations: 1.78 MB / 477.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003441/0.1647, allocations: 220.2 kB / 477.4 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.1648, allocations: 27.94 kB / 477.4 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008739/0.1657, allocations: 127.8 kB / 477.5 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000303/0.166, allocations: 139.8 kB / 477.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7e-05/0.1661, allocations: 40.09 kB / 477.7 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003091/0.1664, allocations: 295.1 kB / 478 MB, free: 256 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1664, allocations: 0 / 478 MB, free: 256 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000822/0.1672, allocations: 200 kB / 478.2 MB, free: 56 kB / 350.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 (53): * Single equations (assignments): 49 * 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,7), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004144/0.1714, allocations: 2.366 MB / 480.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.1738, allocations: 0.969 MB / 481.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.1738, allocations: 3.938 kB / 481.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.1751, allocations: 0.5115 MB / 482 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.1762, allocations: 110.4 kB / 482.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01422/0.1905, allocations: 7.489 MB / 489.6 MB, free: 4.332 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007749/0.1913, allocations: 0.9069 MB / 490.5 MB, free: 3.398 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000371/0.1917, allocations: 68.81 kB / 490.6 MB, free: 3.332 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003909/0.1921, allocations: 211.4 kB / 490.8 MB, free: 3.125 MB / 366.1 MB Notification: Performance of SimCode: time 1.713e-06/0.1921, allocations: 4 kB / 490.8 MB, free: 3.121 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05652/0.2486, allocations: 20.9 MB / 0.4997 GB, free: 14.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.05, allocations: 0 / 0.4997 GB, free: 14.21 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches