Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 87.94 kB / 20.96 MB, free: 3.316 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002127/0.002127, allocations: 145.1 kB / 24.26 MB, free: 24 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 173.4 MB / 200.8 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.551e-05/2.682e-05, allocations: 6.25 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004729/0.004756, allocations: 3.049 MB / 270.4 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.006997, allocations: 1.036 MB / 271.4 MB, free: 2.641 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001724/0.007169, allocations: 11.94 kB / 271.4 MB, free: 2.629 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000253/0.007422, allocations: 67.3 kB / 271.5 MB, free: 2.562 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003217/0.007744, allocations: 174.5 kB / 271.6 MB, free: 2.391 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006601/0.008404, allocations: 287.5 kB / 271.9 MB, free: 2.109 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009071/0.009311, allocations: 0.8265 MB / 272.8 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.00951, allocations: 89.56 kB / 272.8 MB, free: 1.184 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006825/0.01019, allocations: 495 kB / 273.3 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004877/0.01068, allocations: 327.2 kB / 273.6 MB, free: 388 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.0108, allocations: 60 kB / 273.7 MB, free: 328 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002308/0.01103, allocations: 104 kB / 273.8 MB, free: 224 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002117/0.01124, allocations: 155.5 kB / 274 MB, free: 68 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003011/0.01154, allocations: 223.5 kB / 274.2 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.01255, allocations: 0.7944 MB / 275 MB, free: 15.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.01256, allocations: 0 / 275 MB, free: 15.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.01256, allocations: 0 / 275 MB, free: 15.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.617e-06/0.01256, allocations: 0 / 275 MB, free: 15.05 MB / 266.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.001794/0.01436, allocations: 0.9122 MB / 275.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.0144, allocations: 12.03 kB / 275.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002101/0.01461, allocations: 100.6 kB / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005541/0.01516, allocations: 308.2 kB / 276.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.764e-05/0.01521, allocations: 37.38 kB / 276.3 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.01531, allocations: 44.33 kB / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.01656, allocations: 0.6251 MB / 277 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.781e-05/0.01659, allocations: 12.06 kB / 277 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.852e-05/0.01666, allocations: 24.12 kB / 277 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.01667, allocations: 12 kB / 277 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.01822, allocations: 0.5621 MB / 277.6 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002469/0.02069, allocations: 1.246 MB / 278.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.02173, allocations: 437.8 kB / 279.3 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005911/0.02232, allocations: 269.1 kB / 279.5 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.563e-05/0.02239, allocations: 12.5 kB / 279.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.02243, allocations: 45.89 kB / 279.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 2.054e-06/0.02243, allocations: 0 / 279.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=64): time 0.006266/0.0287, allocations: 2.4 MB / 282 MB, free: 7.809 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.02876, allocations: 56.06 kB / 282.1 MB, free: 7.738 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004896/0.02925, allocations: 410.2 kB / 282.5 MB, free: 7.324 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.771e-05/0.02933, allocations: 45.7 kB / 282.5 MB, free: 7.273 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.02955, allocations: 268.1 kB / 282.8 MB, free: 7.008 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002553/0.0298, allocations: 246.1 kB / 283 MB, free: 6.766 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/0.03008, allocations: 148.3 kB / 283.1 MB, free: 6.613 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003347/0.03042, allocations: 0.5469 MB / 283.7 MB, free: 6.055 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006619/0.03108, allocations: 305.9 kB / 284 MB, free: 5.758 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007231/0.0318, allocations: 393.5 kB / 284.4 MB, free: 5.363 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.03314, allocations: 0.5267 MB / 284.9 MB, free: 4.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.03314, allocations: 4 kB / 284.9 MB, free: 4.816 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00197/0.03511, allocations: 0.934 MB / 285.8 MB, free: 3.871 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.03513, allocations: 4 kB / 285.8 MB, free: 3.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.03514, allocations: 4 kB / 285.8 MB, free: 3.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001417/0.03655, allocations: 0.713 MB / 286.6 MB, free: 3.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00041/0.03696, allocations: 103.8 kB / 286.7 MB, free: 3.047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.03876, allocations: 1.343 MB / 288 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005514/0.03931, allocations: 79.91 kB / 288.1 MB, free: 1.594 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.245e-05/0.03938, allocations: 20 kB / 288.1 MB, free: 1.574 MB / 266.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.0003093/0.03968, allocations: 226.4 kB / 288.3 MB, free: 1.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.03985, allocations: 67.66 kB / 288.4 MB, free: 1.273 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001998/0.04005, allocations: 68.75 kB / 288.5 MB, free: 1.199 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.04006, allocations: 12 kB / 288.5 MB, free: 1.188 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.04006, allocations: 0 / 288.5 MB, free: 1.188 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.04007, allocations: 3.984 kB / 288.5 MB, free: 1.184 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1141/0.1541, allocations: 1.467 MB / 289.9 MB, free: 32.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.1541, allocations: 0 / 289.9 MB, free: 32.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004407/0.1546, allocations: 86.64 kB / 290 MB, free: 32.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001133/0.1557, allocations: 0.6916 MB / 290.7 MB, free: 32.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-05/0.1558, allocations: 30.08 kB / 290.7 MB, free: 32.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001289/0.1571, allocations: 1.318 MB / 292.1 MB, free: 31.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.1571, allocations: 1.031 kB / 292.1 MB, free: 31.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002358/0.1594, allocations: 1.351 MB / 293.4 MB, free: 31.4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003025/0.1597, allocations: 117.4 kB / 293.5 MB, free: 31.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/0.1598, allocations: 20.62 kB / 293.5 MB, free: 31.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005006/0.1603, allocations: 69.55 kB / 293.6 MB, free: 31.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003157/0.1606, allocations: 142.3 kB / 293.8 MB, free: 31.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-05/0.1607, allocations: 37.55 kB / 293.8 MB, free: 31.31 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002218/0.1609, allocations: 267.3 kB / 294.1 MB, free: 31.15 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1609, allocations: 0 / 294.1 MB, free: 31.15 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005199/0.1614, allocations: 158.6 kB / 294.2 MB, free: 31.13 MB / 266.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.0002366/0.1617, allocations: 150.6 kB / 294.4 MB, free: 31.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.1632, allocations: 0.7569 MB / 295.1 MB, free: 30.83 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1632, allocations: 0 / 295.1 MB, free: 30.83 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008142/0.164, allocations: 431.5 kB / 295.5 MB, free: 30.72 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007017/0.1647, allocations: 135.2 kB / 295.7 MB, free: 30.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/0.1668, allocations: 1.223 MB / 296.9 MB, free: 29.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002332/0.1671, allocations: 242.5 kB / 297.1 MB, free: 29.89 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001886/0.1672, allocations: 49.52 kB / 297.2 MB, free: 29.88 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.1674, allocations: 48.34 kB / 297.2 MB, free: 29.86 MB / 266.7 MB Notification: Performance of SimCode: time 1.713e-06/0.1674, allocations: 4 kB / 297.2 MB, free: 29.85 MB / 266.7 MB Notification: Performance of Templates: time 0.01559/0.183, allocations: 11.49 MB / 308.7 MB, free: 22.06 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.847230058046989]