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.001631/0.001631, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001954/0.001954, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.427/1.427, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001494/0.001494, allocations: 51.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.095/0.09649, allocations: 53.32 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004696/0.1012, allocations: 3.26 MB / 429.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.1033, allocations: 1.259 MB / 430.8 MB, free: 252 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.1035, allocations: 11.94 kB / 430.8 MB, free: 240 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003111/0.1038, allocations: 99.09 kB / 430.9 MB, free: 140 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1838/0.2875, allocations: 218.7 kB / 431.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007288/0.2883, allocations: 267.6 kB / 431.4 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009588/0.2892, allocations: 0.8449 MB / 432.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002058/0.2894, allocations: 98.62 kB / 432.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005364/0.29, allocations: 396.8 kB / 432.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004339/0.2904, allocations: 411 kB / 433.1 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.2905, allocations: 67.03 kB / 433.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002469/0.2908, allocations: 122.3 kB / 433.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001636/0.2909, allocations: 178.5 kB / 433.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002658/0.2912, allocations: 325.8 kB / 433.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008991/0.2921, allocations: 0.7991 MB / 434.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2921, allocations: 0 / 434.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2921, allocations: 0 / 434.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.2921, allocations: 3.625 kB / 434.6 MB, free: 7.215 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.00191/0.294, allocations: 0.961 MB / 435.6 MB, free: 6.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.2941, allocations: 9.438 kB / 435.6 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.2942, allocations: 88.7 kB / 435.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003455/0.2945, allocations: 79.75 kB / 435.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005885/0.2951, allocations: 399.9 kB / 436.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.2951, allocations: 41.38 kB / 436.2 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.2953, allocations: 49.02 kB / 436.2 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.2964, allocations: 0.6147 MB / 436.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.794e-05/0.2965, allocations: 3.016 kB / 436.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.102e-05/0.2965, allocations: 24.47 kB / 436.9 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.2965, allocations: 9.875 kB / 436.9 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.2979, allocations: 0.5884 MB / 437.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002474/0.3004, allocations: 1.356 MB / 438.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.3015, allocations: 487.8 kB / 439.3 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000619/0.3021, allocations: 289.8 kB / 439.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.598e-05/0.3022, allocations: 11.05 kB / 439.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.3022, allocations: 40.84 kB / 439.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.275e-06/0.3022, allocations: 0 / 439.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.007266/0.3095, allocations: 2.892 MB / 442.5 MB, free: 3.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.3095, allocations: 63.69 kB / 442.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005248/0.31, allocations: 363.5 kB / 442.9 MB, free: 3.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001213/0.3101, allocations: 52.19 kB / 443 MB, free: 3.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.3103, allocations: 198.1 kB / 443.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.3105, allocations: 267 kB / 443.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002531/0.3107, allocations: 131.7 kB / 443.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.53e-05/0.3108, allocations: 357.7 kB / 443.9 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006776/0.3115, allocations: 308.6 kB / 444.2 MB, free: 2.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006948/0.3122, allocations: 372.4 kB / 444.6 MB, free: 2.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.3132, allocations: 0.4905 MB / 445.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3132, allocations: 0 / 445.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002048/0.3153, allocations: 0.9281 MB / 446 MB, free: 1.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.3153, allocations: 5.156 kB / 446 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3153, allocations: 1.094 kB / 446 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/0.3167, allocations: 0.5827 MB / 446.6 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003964/0.3171, allocations: 94.94 kB / 446.7 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.3185, allocations: 1.095 MB / 447.8 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008448/0.3194, allocations: 112.5 kB / 447.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.179e-05/0.3194, allocations: 27.69 kB / 447.9 MB, free: 0.5859 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.0003317/0.3198, allocations: 191.5 kB / 448.1 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.3199, allocations: 53.86 kB / 448.2 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000188/0.3201, allocations: 79.41 kB / 448.2 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3201, allocations: 7 kB / 448.2 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.3201, allocations: 1.156 kB / 448.3 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.3201, allocations: 8.109 kB / 448.3 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00319/0.3233, allocations: 1.607 MB / 449.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.3233, allocations: 0.75 kB / 449.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004312/0.3238, allocations: 84.44 kB / 449.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001317/0.3251, allocations: 0.5436 MB / 450.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.3252, allocations: 28.58 kB / 450.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001629/0.3268, allocations: 1.075 MB / 451.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3268, allocations: 2.688 kB / 451.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002787/0.3296, allocations: 1.304 MB / 452.9 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003658/0.33, allocations: 203 kB / 453.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.3301, allocations: 25.31 kB / 453.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006993/0.3308, allocations: 102.5 kB / 453.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003117/0.3311, allocations: 127.9 kB / 453.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.556e-05/0.3312, allocations: 33.05 kB / 453.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003182/0.3315, allocations: 254.6 kB / 453.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3315, allocations: 0 / 453.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006512/0.3322, allocations: 163 kB / 453.8 MB, free: 13.63 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.004327/0.3365, allocations: 2.134 MB / 455.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.3383, allocations: 0.7179 MB / 456.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3383, allocations: 1 kB / 456.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.3393, allocations: 415.7 kB / 457 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009073/0.3402, allocations: 117.5 kB / 457.2 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01102/0.3512, allocations: 5.57 MB / 462.7 MB, free: 8.508 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005512/0.3518, allocations: 0.8609 MB / 463.6 MB, free: 7.738 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002914/0.3521, allocations: 57.95 kB / 463.7 MB, free: 7.707 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002912/0.3524, allocations: 168.6 kB / 463.8 MB, free: 7.57 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3524, allocations: 0 / 463.8 MB, free: 7.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05544/0.4078, allocations: 18.64 MB / 482.5 MB, free: 7.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.73, allocations: 2.812 kB / 482.5 MB, free: 7.57 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.484968323959038]