Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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) 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(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001252/0.001252, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2595, allocations: 50.54 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004372/0.264, allocations: 3.249 MB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00219/0.2662, allocations: 1.251 MB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002766/0.2665, allocations: 8 kB / 413.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003593/0.2669, allocations: 95.09 kB / 413.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004649/0.2674, allocations: 222.4 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005258/0.2679, allocations: 275.5 kB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007793/0.2687, allocations: 0.8466 MB / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002447/0.269, allocations: 141.1 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005066/0.2695, allocations: 390.8 kB / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000465/0.27, allocations: 402.6 kB / 415.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.2701, allocations: 60 kB / 415.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002483/0.2703, allocations: 124 kB / 415.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001955/0.2705, allocations: 183.4 kB / 416 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002784/0.2708, allocations: 322.5 kB / 416.3 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008347/0.2717, allocations: 0.7968 MB / 417.1 MB, free: 9.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2717, allocations: 3.938 kB / 417.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2717, allocations: 0 / 417.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.2717, allocations: 0 / 417.1 MB, free: 9.176 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001702/0.2734, allocations: 0.9578 MB / 418 MB, free: 8.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.2735, allocations: 11.97 kB / 418 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.2736, allocations: 86.7 kB / 418.1 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003065/0.2739, allocations: 76.55 kB / 418.2 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005888/0.2745, allocations: 410.2 kB / 418.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.555e-05/0.2745, allocations: 29.38 kB / 418.6 MB, free: 7.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.522e-05/0.2746, allocations: 52.33 kB / 418.7 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.2758, allocations: 0.6189 MB / 419.3 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.866e-05/0.2758, allocations: 4 kB / 419.3 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.131e-05/0.2759, allocations: 24 kB / 419.3 MB, free: 6.809 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.2759, allocations: 12 kB / 419.3 MB, free: 6.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.2771, allocations: 0.5855 MB / 419.9 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002529/0.2797, allocations: 1.352 MB / 421.3 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.2808, allocations: 0.509 MB / 421.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005806/0.2814, allocations: 314.4 kB / 422.1 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.582e-05/0.2814, allocations: 8.547 kB / 422.1 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.2815, allocations: 43.11 kB / 422.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.625e-06/0.2815, allocations: 0 / 422.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.006329/0.2878, allocations: 2.917 MB / 425.1 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.2879, allocations: 56.06 kB / 425.1 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004131/0.2883, allocations: 361.6 kB / 425.5 MB, free: 448 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.675e-05/0.2884, allocations: 49.69 kB / 425.5 MB, free: 392 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.2886, allocations: 205.6 kB / 425.7 MB, free: 180 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.2888, allocations: 254 kB / 426 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002209/0.289, allocations: 142.5 kB / 426.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.2891, allocations: 358.8 kB / 426.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006032/0.2898, allocations: 305.9 kB / 426.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006475/0.2904, allocations: 381.4 kB / 427.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009252/0.2914, allocations: 488.6 kB / 427.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.2914, allocations: 4 kB / 427.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00191/0.2933, allocations: 0.947 MB / 428.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.2933, allocations: 4 kB / 428.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.2933, allocations: 4 kB / 428.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.2946, allocations: 0.5784 MB / 429.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000379/0.295, allocations: 95.81 kB / 429.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001487/0.2965, allocations: 1.096 MB / 430.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007097/0.2973, allocations: 111.9 kB / 430.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.838e-05/0.2974, allocations: 23.98 kB / 430.5 MB, free: 11.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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 {(3,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0003435/0.2977, allocations: 195.9 kB / 430.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.2979, allocations: 55.67 kB / 430.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001995/0.2981, allocations: 73.09 kB / 430.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.2981, allocations: 8 kB / 430.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.2981, allocations: 0 / 430.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.2981, allocations: 8.062 kB / 430.8 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003015/0.3011, allocations: 1.63 MB / 432.4 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.3012, allocations: 0 / 432.4 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004216/0.3016, allocations: 87.89 kB / 432.5 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001262/0.3029, allocations: 0.5317 MB / 433 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.249e-05/0.303, allocations: 27.95 kB / 433.1 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.3045, allocations: 1.082 MB / 434.1 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3045, allocations: 0 / 434.1 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/0.3071, allocations: 1.32 MB / 435.5 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003201/0.3074, allocations: 200.6 kB / 435.7 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/0.3076, allocations: 24 kB / 435.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006528/0.3082, allocations: 107.9 kB / 435.8 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003072/0.3086, allocations: 136.4 kB / 435.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.113e-05/0.3087, allocations: 31.91 kB / 436 MB, free: 5.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003213/0.309, allocations: 255.2 kB / 436.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.309, allocations: 0 / 436.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006099/0.3096, allocations: 160 kB / 436.4 MB, free: 5.301 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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 {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003779/0.3134, allocations: 2.129 MB / 438.5 MB, free: 3.258 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.3153, allocations: 0.7777 MB / 439.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3153, allocations: 3.938 kB / 439.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009507/0.3163, allocations: 448.6 kB / 439.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000857/0.3172, allocations: 113.2 kB / 439.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01012/0.3273, allocations: 5.589 MB / 445.4 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.3278, allocations: 0.8597 MB / 446.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002492/0.328, allocations: 56.41 kB / 446.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002771/0.3283, allocations: 171.4 kB / 446.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3283, allocations: 0 / 446.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04786/0.3762, allocations: 18.51 MB / 465 MB, free: 8.855 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.66, allocations: 12.06 kB / 465 MB, free: 8.844 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches