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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008166/0.0008166, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008135/0.0008135, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8794/0.8794, allocations: 177 MB / 204.1 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.392e-05/2.53e-05, allocations: 2.984 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003463/0.003488, allocations: 3.005 MB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.005307, allocations: 1.212 MB / 328.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002141/0.005521, allocations: 15.88 kB / 328.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003435/0.005865, allocations: 95.03 kB / 328.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003579/0.006223, allocations: 230.4 kB / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004523/0.006675, allocations: 283.4 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007043/0.007379, allocations: 0.8656 MB / 330.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.007597, allocations: 101.9 kB / 330.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008423/0.008439, allocations: 0.5185 MB / 330.8 MB, free: 9.547 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003684/0.008808, allocations: 339.2 kB / 331.2 MB, free: 9.215 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.531e-05/0.008883, allocations: 64 kB / 331.2 MB, free: 9.152 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001744/0.009057, allocations: 119.9 kB / 331.3 MB, free: 9.035 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.009204, allocations: 179.4 kB / 331.5 MB, free: 8.859 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.00937, allocations: 235.4 kB / 331.7 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006356/0.01001, allocations: 0.8529 MB / 332.6 MB, free: 7.773 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.01001, allocations: 0 / 332.6 MB, free: 7.773 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.01001, allocations: 0 / 332.6 MB, free: 7.773 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.01002, allocations: 8 kB / 332.6 MB, free: 7.766 MB / 298.7 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.00117/0.01119, allocations: 0.8786 MB / 333.5 MB, free: 6.855 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.01123, allocations: 11.98 kB / 333.5 MB, free: 6.844 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.742e-05/0.0113, allocations: 90.64 kB / 333.6 MB, free: 6.746 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001953/0.0115, allocations: 76.55 kB / 333.7 MB, free: 6.672 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000414/0.01191, allocations: 339.6 kB / 334 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.01194, allocations: 37.38 kB / 334 MB, free: 6.273 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.359e-05/0.012, allocations: 52.33 kB / 334.1 MB, free: 6.223 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000705/0.01271, allocations: 0.6195 MB / 334.7 MB, free: 5.586 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.01273, allocations: 192 / 334.7 MB, free: 5.586 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.864e-05/0.01277, allocations: 27.92 kB / 334.7 MB, free: 5.559 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.01278, allocations: 12 kB / 334.7 MB, free: 5.547 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008303/0.01361, allocations: 0.5777 MB / 335.3 MB, free: 4.973 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.01506, allocations: 1.177 MB / 336.5 MB, free: 3.742 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006782/0.01574, allocations: 489.9 kB / 337 MB, free: 3.254 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003498/0.01609, allocations: 290.7 kB / 337.2 MB, free: 2.965 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.103e-05/0.01613, allocations: 8.656 kB / 337.3 MB, free: 2.957 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.035e-05/0.01615, allocations: 35.22 kB / 337.3 MB, free: 2.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 1.513e-06/0.01615, allocations: 0 / 337.3 MB, free: 2.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.003737/0.01989, allocations: 2.536 MB / 339.8 MB, free: 340 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.01992, allocations: 60 kB / 339.9 MB, free: 268 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/0.02019, allocations: 365.6 kB / 340.2 MB, free: 15.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.393e-05/0.02023, allocations: 49.7 kB / 340.3 MB, free: 15.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.84e-05/0.02033, allocations: 201.6 kB / 340.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.02047, allocations: 269.8 kB / 340.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.02061, allocations: 126.6 kB / 340.9 MB, free: 15.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.02071, allocations: 358.8 kB / 341.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003906/0.0211, allocations: 313.9 kB / 341.5 MB, free: 14.58 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004002/0.0215, allocations: 369.4 kB / 341.9 MB, free: 14.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000591/0.0221, allocations: 497 kB / 342.4 MB, free: 13.72 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.0221, allocations: 0 / 342.4 MB, free: 13.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001147/0.02324, allocations: 0.9352 MB / 343.3 MB, free: 12.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.02326, allocations: 8 kB / 343.3 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.02327, allocations: 0 / 343.3 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007918/0.02406, allocations: 0.5669 MB / 343.9 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.02424, allocations: 95.88 kB / 344 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009763/0.02522, allocations: 1.104 MB / 345.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003163/0.02554, allocations: 111.9 kB / 345.2 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.529e-05/0.02557, allocations: 27.98 kB / 345.2 MB, free: 10.84 MB / 314.7 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.0001728/0.02574, allocations: 188 kB / 345.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.922e-05/0.02581, allocations: 63.61 kB / 345.5 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.397e-05/0.0259, allocations: 81.09 kB / 345.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.0259, allocations: 4 kB / 345.6 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.02591, allocations: 0 / 345.6 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.381e-06/0.02591, allocations: 7.984 kB / 345.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001685/0.0276, allocations: 1.458 MB / 347 MB, free: 8.973 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.0276, allocations: 0 / 347 MB, free: 8.973 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.02781, allocations: 95.81 kB / 347.1 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006842/0.0285, allocations: 0.5434 MB / 347.7 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/0.02854, allocations: 27.95 kB / 347.7 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009022/0.02944, allocations: 1.066 MB / 348.7 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.02944, allocations: 4 kB / 348.8 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001513/0.03095, allocations: 1.3 MB / 350.1 MB, free: 5.891 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/0.03112, allocations: 127.5 kB / 350.2 MB, free: 5.766 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.824e-05/0.03119, allocations: 24 kB / 350.2 MB, free: 5.742 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002984/0.03149, allocations: 107.9 kB / 350.3 MB, free: 5.637 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/0.03167, allocations: 132.4 kB / 350.4 MB, free: 5.508 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.823e-05/0.0317, allocations: 27.95 kB / 350.5 MB, free: 5.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001692/0.03187, allocations: 259.2 kB / 350.7 MB, free: 5.227 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.03187, allocations: 3.938 kB / 350.7 MB, free: 5.223 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003329/0.03221, allocations: 163.9 kB / 350.9 MB, free: 5.062 MB / 314.7 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.002345/0.03455, allocations: 2.14 MB / 353 MB, free: 3.016 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009714/0.03552, allocations: 0.7231 MB / 353.7 MB, free: 2.297 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.03552, allocations: 0 / 353.7 MB, free: 2.297 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004997/0.03602, allocations: 424.5 kB / 354.2 MB, free: 1.883 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004528/0.03648, allocations: 116.7 kB / 354.3 MB, free: 1.773 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006289/0.04277, allocations: 5.413 MB / 359.7 MB, free: 12.27 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.04294, allocations: 263.8 kB / 359.9 MB, free: 11.98 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001737/0.04311, allocations: 56.41 kB / 360 MB, free: 11.92 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.0433, allocations: 168.4 kB / 360.2 MB, free: 11.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.223e-06/0.0433, allocations: 0 / 360.2 MB, free: 11.75 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03171/0.07501, allocations: 17.54 MB / 377.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.131/8.206, allocations: 7.922 kB / 377.7 MB, free: 10.34 MB / 346.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 9.909796693362296]