Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 214.4 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 43.92 kB / 377.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2397, allocations: 53.37 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004842/0.2445, allocations: 3.283 MB / 434.4 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002322/0.2468, allocations: 1.259 MB / 435.7 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002981/0.2471, allocations: 15.88 kB / 435.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004205/0.2476, allocations: 103 kB / 435.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006102/0.2482, allocations: 226.4 kB / 436 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006753/0.2489, allocations: 267.5 kB / 436.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001149/0.25, allocations: 0.8543 MB / 437.1 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002919/0.2503, allocations: 98.19 kB / 437.2 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007659/0.2511, allocations: 390.9 kB / 437.6 MB, free: 380 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006293/0.2517, allocations: 418.5 kB / 438 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.2518, allocations: 64 kB / 438.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002591/0.2521, allocations: 124 kB / 438.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002207/0.2523, allocations: 175.5 kB / 438.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003342/0.2526, allocations: 326.5 kB / 438.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000934/0.2535, allocations: 0.802 MB / 439.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2536, allocations: 8 kB / 439.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2536, allocations: 0 / 439.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.2536, allocations: 0 / 439.5 MB, free: 14.48 MB / 350.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.001845/0.2554, allocations: 0.8824 MB / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.2555, allocations: 12.03 kB / 440.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001081/0.2556, allocations: 82.7 kB / 440.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003256/0.2559, allocations: 84.53 kB / 440.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00065/0.2565, allocations: 340.4 kB / 440.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.771e-05/0.2566, allocations: 37.38 kB / 440.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.2567, allocations: 52.31 kB / 441 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.2579, allocations: 0.6072 MB / 441.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.737e-05/0.2579, allocations: 8 kB / 441.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-05/0.258, allocations: 16 kB / 441.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.019e-05/0.258, allocations: 15.98 kB / 441.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/0.2592, allocations: 0.5894 MB / 442.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002373/0.2616, allocations: 1.313 MB / 443.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.2627, allocations: 486.2 kB / 444 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005912/0.2633, allocations: 294.7 kB / 444.3 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.941e-05/0.2634, allocations: 16.58 kB / 444.3 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.2634, allocations: 35.22 kB / 444.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.004e-06/0.2634, allocations: 4 kB / 444.3 MB, free: 9.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006381/0.2698, allocations: 2.516 MB / 446.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/0.2698, allocations: 60.06 kB / 446.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004145/0.2703, allocations: 361.6 kB / 447.3 MB, free: 6.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.602e-05/0.2703, allocations: 53.69 kB / 447.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.2705, allocations: 201.6 kB / 447.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.2707, allocations: 265.9 kB / 447.8 MB, free: 5.969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002273/0.271, allocations: 130.6 kB / 447.9 MB, free: 5.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.2711, allocations: 370.6 kB / 448.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006328/0.2718, allocations: 309.9 kB / 448.6 MB, free: 5.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006696/0.2724, allocations: 365.4 kB / 448.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009903/0.2734, allocations: 493.1 kB / 449.4 MB, free: 4.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2734, allocations: 0 / 449.4 MB, free: 4.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002012/0.2754, allocations: 0.9353 MB / 450.3 MB, free: 3.363 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.2755, allocations: 4 kB / 450.3 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.2755, allocations: 0 / 450.3 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001363/0.2768, allocations: 0.5785 MB / 450.9 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003643/0.2772, allocations: 95.83 kB / 451 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.2788, allocations: 1.101 MB / 452.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006754/0.2795, allocations: 119.7 kB / 452.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.832e-05/0.2796, allocations: 20 kB / 452.3 MB, free: 1.418 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.0003072/0.2799, allocations: 199.8 kB / 452.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/0.28, allocations: 55.62 kB / 452.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001795/0.2802, allocations: 77.09 kB / 452.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.2802, allocations: 8 kB / 452.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.2802, allocations: 0 / 452.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.2802, allocations: 3.984 kB / 452.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003098/0.2833, allocations: 1.575 MB / 454.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.2833, allocations: 0 / 454.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004123/0.2837, allocations: 87.89 kB / 454.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.2849, allocations: 0.5356 MB / 454.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.566e-05/0.285, allocations: 27.97 kB / 454.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001574/0.2866, allocations: 1.081 MB / 455.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2866, allocations: 3.938 kB / 455.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002677/0.2893, allocations: 1.296 MB / 457.2 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003407/0.2896, allocations: 127.5 kB / 457.3 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.2897, allocations: 24 kB / 457.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006444/0.2904, allocations: 103.9 kB / 457.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002883/0.2907, allocations: 132.4 kB / 457.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-05/0.2907, allocations: 35.89 kB / 457.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003228/0.2911, allocations: 255.2 kB / 457.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2911, allocations: 0 / 457.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005755/0.2916, allocations: 163.9 kB / 458 MB, free: 11.54 MB / 366.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.00431/0.2959, allocations: 2.12 MB / 460.1 MB, free: 9.523 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001782/0.2977, allocations: 0.7269 MB / 460.9 MB, free: 8.801 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2977, allocations: 0 / 460.9 MB, free: 8.801 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009158/0.2986, allocations: 416.6 kB / 461.3 MB, free: 8.395 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007674/0.2994, allocations: 119.1 kB / 461.4 MB, free: 8.285 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009494/0.3089, allocations: 5.568 MB / 467 MB, free: 2.617 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005059/0.3094, allocations: 0.8557 MB / 467.8 MB, free: 1.734 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002275/0.3096, allocations: 56.39 kB / 467.9 MB, free: 1.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002774/0.3099, allocations: 175.4 kB / 468 MB, free: 1.508 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3099, allocations: 0 / 468 MB, free: 1.508 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05789/0.3678, allocations: 19.4 MB / 487.4 MB, free: 14.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/13.67, allocations: 7.797 kB / 487.4 MB, free: 14.25 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.17975214519538]