Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008739/0.0008739, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003711/0.003711, allocations: 165.6 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8443/0.8443, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.778e-05/1.965e-05, allocations: 6.281 kB / 298.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002693/0.002713, allocations: 2.855 MB / 301.3 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.119/0.1217, allocations: 1.04 MB / 302.3 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.1219, allocations: 10.28 kB / 302.3 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002122/0.1221, allocations: 77.03 kB / 302.4 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001999/0.1223, allocations: 169.9 kB / 302.6 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005406/0.1229, allocations: 292.8 kB / 302.9 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000489/0.1234, allocations: 0.8149 MB / 303.7 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.1235, allocations: 91.95 kB / 303.8 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004087/0.1239, allocations: 494.6 kB / 304.3 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002987/0.1242, allocations: 323.8 kB / 304.6 MB, free: 12.79 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.817e-05/0.1243, allocations: 60.38 kB / 304.6 MB, free: 12.79 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.1245, allocations: 107.4 kB / 304.7 MB, free: 12.78 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.1246, allocations: 161.8 kB / 304.9 MB, free: 12.69 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.1247, allocations: 220.3 kB / 305.1 MB, free: 12.6 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006591/0.1254, allocations: 0.7885 MB / 305.9 MB, free: 12.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1254, allocations: 3.938 kB / 305.9 MB, free: 12.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1254, allocations: 0 / 305.9 MB, free: 12.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.1254, allocations: 1.312 kB / 305.9 MB, free: 12.34 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001064/0.1265, allocations: 0.8176 MB / 306.7 MB, free: 11.81 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1265, allocations: 15.53 kB / 306.7 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.868e-05/0.1266, allocations: 78.88 kB / 306.8 MB, free: 11.74 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.268e-05/0.1266, allocations: 61.94 kB / 306.9 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003878/0.127, allocations: 311.6 kB / 307.2 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.1271, allocations: 30.81 kB / 307.2 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.268e-05/0.1271, allocations: 45.58 kB / 307.3 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007628/0.1279, allocations: 0.616 MB / 307.9 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.1279, allocations: 9.25 kB / 307.9 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.611e-05/0.1279, allocations: 20.58 kB / 307.9 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.128, allocations: 9.969 kB / 307.9 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007932/0.1287, allocations: 0.5993 MB / 308.5 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.1302, allocations: 1.167 MB / 309.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006513/0.1308, allocations: 437.3 kB / 310.1 MB, free: 10.22 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003433/0.1312, allocations: 291 kB / 310.4 MB, free: 10.11 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.1312, allocations: 6.688 kB / 310.4 MB, free: 10.11 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.326e-05/0.1312, allocations: 38.62 kB / 310.4 MB, free: 10.07 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 2.535e-06/0.1312, allocations: 2.719 kB / 310.4 MB, free: 10.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=64): time 0.003614/0.1348, allocations: 2.495 MB / 312.9 MB, free: 9.051 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.67e-05/0.1348, allocations: 58.94 kB / 313 MB, free: 8.988 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00022/0.1351, allocations: 330 kB / 313.3 MB, free: 8.812 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.1351, allocations: 48.78 kB / 313.4 MB, free: 8.77 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.559e-05/0.1352, allocations: 203.1 kB / 313.6 MB, free: 8.602 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.1353, allocations: 230.6 kB / 313.8 MB, free: 8.43 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.1354, allocations: 133.1 kB / 313.9 MB, free: 8.363 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.35e-05/0.1355, allocations: 351.4 kB / 314.3 MB, free: 8.035 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003791/0.1359, allocations: 325.1 kB / 314.6 MB, free: 7.922 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004155/0.1363, allocations: 381.9 kB / 314.9 MB, free: 7.777 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006044/0.1369, allocations: 0.5024 MB / 315.4 MB, free: 7.574 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1369, allocations: 0 / 315.4 MB, free: 7.574 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001185/0.1381, allocations: 0.9232 MB / 316.4 MB, free: 7.219 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.1381, allocations: 6.078 kB / 316.4 MB, free: 7.219 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1381, allocations: 1.125 kB / 316.4 MB, free: 7.219 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009387/0.139, allocations: 0.735 MB / 317.1 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002204/0.1393, allocations: 107.7 kB / 317.2 MB, free: 7.004 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008592/0.1401, allocations: 1.09 MB / 318.3 MB, free: 6.273 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003944/0.1405, allocations: 105.4 kB / 318.4 MB, free: 6.262 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.651e-05/0.1405, allocations: 26.27 kB / 318.4 MB, free: 6.254 MB / 282.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 (64): * Single equations (assignments): 63 * 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,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0002046/0.1408, allocations: 177.2 kB / 318.6 MB, free: 6.098 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.893e-05/0.1408, allocations: 61.11 kB / 318.7 MB, free: 6.062 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.187e-05/0.1409, allocations: 69.81 kB / 318.7 MB, free: 5.996 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.351e-06/0.1409, allocations: 6.719 kB / 318.7 MB, free: 5.996 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.1409, allocations: 0 / 318.7 MB, free: 5.996 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1409, allocations: 4.641 kB / 318.7 MB, free: 5.996 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001838/0.1428, allocations: 1.438 MB / 320.2 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1428, allocations: 0 / 320.2 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002414/0.143, allocations: 89.64 kB / 320.3 MB, free: 5.312 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007191/0.1437, allocations: 0.7076 MB / 321 MB, free: 5.016 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.852e-05/0.1438, allocations: 26 kB / 321 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000787/0.1445, allocations: 1.055 MB / 322.1 MB, free: 4.219 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1445, allocations: 5.062 kB / 322.1 MB, free: 4.215 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.146, allocations: 1.3 MB / 323.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001966/0.1462, allocations: 111.3 kB / 323.5 MB, free: 3.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.504e-05/0.1463, allocations: 24.56 kB / 323.5 MB, free: 3.414 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002957/0.1466, allocations: 104.3 kB / 323.6 MB, free: 3.367 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.1467, allocations: 123 kB / 323.7 MB, free: 3.285 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.313e-05/0.1468, allocations: 37.17 kB / 323.8 MB, free: 3.262 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000147/0.1469, allocations: 238.3 kB / 324 MB, free: 3.109 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1469, allocations: 0 / 324 MB, free: 3.109 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004403/0.1473, allocations: 163.4 kB / 324.1 MB, free: 3.086 MB / 282.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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001608/0.149, allocations: 1.875 MB / 326 MB, free: 1.836 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.15, allocations: 0.7219 MB / 326.7 MB, free: 1.52 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.15, allocations: 1.312 kB / 326.7 MB, free: 1.52 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004394/0.1504, allocations: 413.9 kB / 327.2 MB, free: 1.27 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.1508, allocations: 99.72 kB / 327.2 MB, free: 1.176 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005162/0.156, allocations: 5.34 MB / 332.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001419/0.1561, allocations: 241.6 kB / 332.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001293/0.1563, allocations: 56.16 kB / 332.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.1564, allocations: 152.4 kB / 333 MB, free: 11.29 MB / 298.7 MB Notification: Performance of SimCode: time 9.11e-07/0.1564, allocations: 0 / 333 MB, free: 11.29 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03207/0.1885, allocations: 16.73 MB / 349.8 MB, free: 10.48 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.942/8.13, allocations: 3.953 kB / 349.8 MB, free: 10.47 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.752288846299052]