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.001631/0.001632, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001845/0.001845, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 59.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2782, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004643/0.2829, allocations: 3.246 MB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00231/0.2852, allocations: 1.247 MB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003194/0.2856, allocations: 11.94 kB / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000412/0.286, allocations: 91.16 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005498/0.2866, allocations: 230.4 kB / 413.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006774/0.2873, allocations: 271.5 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00102/0.2883, allocations: 0.8427 MB / 414.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002844/0.2886, allocations: 141.1 kB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000657/0.2893, allocations: 390.8 kB / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005325/0.2898, allocations: 406.5 kB / 415.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.2899, allocations: 60 kB / 415.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002708/0.2902, allocations: 128 kB / 415.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002294/0.2905, allocations: 179.4 kB / 415.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003129/0.2908, allocations: 322.5 kB / 416.3 MB, free: 10 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009332/0.2917, allocations: 0.7967 MB / 417.1 MB, free: 9.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2917, allocations: 0 / 417.1 MB, free: 9.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2918, allocations: 3.938 kB / 417.1 MB, free: 9.199 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.2918, allocations: 0 / 417.1 MB, free: 9.199 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.001999/0.2938, allocations: 0.9655 MB / 418 MB, free: 8.184 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.2938, allocations: 11.97 kB / 418 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/0.294, allocations: 86.7 kB / 418.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003507/0.2943, allocations: 80.55 kB / 418.2 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006962/0.295, allocations: 406.2 kB / 418.6 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.913e-05/0.2951, allocations: 29.38 kB / 418.6 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.2952, allocations: 52.33 kB / 418.7 MB, free: 7.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.2964, allocations: 0.6189 MB / 419.3 MB, free: 6.852 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.934e-05/0.2964, allocations: 8 kB / 419.3 MB, free: 6.844 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.958e-05/0.2965, allocations: 16 kB / 419.3 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.2965, allocations: 8 kB / 419.3 MB, free: 6.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.2977, allocations: 0.5894 MB / 419.9 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002702/0.3005, allocations: 1.348 MB / 421.3 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.3018, allocations: 0.509 MB / 421.8 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006131/0.3024, allocations: 314.4 kB / 422.1 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.709e-05/0.3025, allocations: 8.5 kB / 422.1 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.662e-05/0.3025, allocations: 47.11 kB / 422.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.856e-06/0.3025, allocations: 0 / 422.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.00714/0.3097, allocations: 2.91 MB / 425 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.3098, allocations: 56.06 kB / 425.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004362/0.3102, allocations: 365.6 kB / 425.5 MB, free: 472 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.575e-05/0.3103, allocations: 49.69 kB / 425.5 MB, free: 416 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.3104, allocations: 201.6 kB / 425.7 MB, free: 208 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/0.3107, allocations: 257.9 kB / 426 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002421/0.3109, allocations: 138.6 kB / 426.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.3111, allocations: 358.8 kB / 426.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006288/0.3118, allocations: 309.8 kB / 426.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006673/0.3124, allocations: 373.4 kB / 427.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009915/0.3134, allocations: 488.7 kB / 427.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3135, allocations: 4 kB / 427.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001967/0.3154, allocations: 0.9509 MB / 428.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.3155, allocations: 4 kB / 428.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.3155, allocations: 4 kB / 428.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/0.3168, allocations: 0.5784 MB / 429.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003818/0.3172, allocations: 99.81 kB / 429.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.3188, allocations: 1.092 MB / 430.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007588/0.3196, allocations: 115.9 kB / 430.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.762e-05/0.3196, allocations: 31.91 kB / 430.5 MB, free: 11.37 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.0003007/0.3199, allocations: 191.9 kB / 430.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.3201, allocations: 55.67 kB / 430.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001372/0.3202, allocations: 77.03 kB / 430.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.3202, allocations: 8 kB / 430.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.3203, allocations: 0 / 430.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.3203, allocations: 7.984 kB / 430.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002833/0.3231, allocations: 1.63 MB / 432.4 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3231, allocations: 4 kB / 432.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004333/0.3236, allocations: 91.88 kB / 432.5 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001193/0.3248, allocations: 0.5318 MB / 433.1 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.229e-05/0.3249, allocations: 27.95 kB / 433.1 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.3264, allocations: 1.078 MB / 434.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3264, allocations: 0 / 434.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/0.329, allocations: 1.316 MB / 435.5 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003265/0.3293, allocations: 200.6 kB / 435.7 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.3295, allocations: 24 kB / 435.7 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006554/0.3301, allocations: 103.9 kB / 435.8 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002737/0.3304, allocations: 132.4 kB / 435.9 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.732e-05/0.3305, allocations: 31.91 kB / 436 MB, free: 5.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000289/0.3308, allocations: 263.2 kB / 436.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3308, allocations: 0 / 436.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005832/0.3314, allocations: 156 kB / 436.4 MB, free: 5.324 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.00364/0.335, allocations: 2.134 MB / 438.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.3368, allocations: 0.774 MB / 439.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3369, allocations: 3.938 kB / 439.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009207/0.3378, allocations: 448.6 kB / 439.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000834/0.3386, allocations: 108.9 kB / 439.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009449/0.3481, allocations: 5.599 MB / 445.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004672/0.3486, allocations: 0.8636 MB / 446.3 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002549/0.3489, allocations: 40.44 kB / 446.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000278/0.3492, allocations: 171.4 kB / 446.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3492, allocations: 0 / 446.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0471/0.3963, allocations: 18.53 MB / 465 MB, free: 8.867 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.77, allocations: 4.062 kB / 465 MB, free: 8.863 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