Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.005916/0.005921, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.674/3.674, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001907/0.001907, allocations: 98.78 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006452/0.0006458, allocations: 8 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.1753, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.007287/0.1826, allocations: 2.482 MB / 377 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004801/0.1875, allocations: 1.077 MB / 378.1 MB, free: 11.86 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006548/0.1883, allocations: 11.94 kB / 378.1 MB, free: 11.85 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003713/0.1887, allocations: 47.61 kB / 378.2 MB, free: 11.8 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001327/0.19, allocations: 175.5 kB / 378.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001642/0.1917, allocations: 207.6 kB / 378.5 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001977/0.1938, allocations: 492.7 kB / 379 MB, free: 10.95 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005679/0.1944, allocations: 119 kB / 379.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003958/0.1984, allocations: 307 kB / 379.4 MB, free: 10.52 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.1998, allocations: 338.8 kB / 379.8 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003048/0.2002, allocations: 32 kB / 379.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005028/0.2007, allocations: 67.97 kB / 379.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003441/0.2011, allocations: 127.5 kB / 380 MB, free: 9.969 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.2015, allocations: 109.5 kB / 380.1 MB, free: 9.855 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001501/0.203, allocations: 499 kB / 380.6 MB, free: 9.367 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2031, allocations: 0 / 380.6 MB, free: 9.367 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.087e-06/0.2031, allocations: 0 / 380.6 MB, free: 9.367 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.655e-05/0.2032, allocations: 4 kB / 380.6 MB, free: 9.363 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.00438/0.2076, allocations: 0.8299 MB / 381.4 MB, free: 8.484 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.736e-05/0.2077, allocations: 11.97 kB / 381.4 MB, free: 8.473 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004367/0.2081, allocations: 55.34 kB / 381.5 MB, free: 8.418 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.2094, allocations: 350.6 kB / 381.8 MB, free: 8.039 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.98e-05/0.2096, allocations: 41 kB / 381.9 MB, free: 7.996 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002675/0.2099, allocations: 44 kB / 381.9 MB, free: 7.953 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003419/0.2133, allocations: 0.6151 MB / 382.5 MB, free: 7.328 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.179e-05/0.2135, allocations: 7.906 kB / 382.5 MB, free: 7.32 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001395/0.2136, allocations: 16 kB / 382.5 MB, free: 7.305 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.588e-05/0.2137, allocations: 12 kB / 382.6 MB, free: 7.293 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004111/0.2178, allocations: 0.6128 MB / 383.2 MB, free: 6.68 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007327/0.2252, allocations: 1.367 MB / 384.5 MB, free: 5.254 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003063/0.2284, allocations: 473.3 kB / 385 MB, free: 4.785 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001745/0.2286, allocations: 12.45 kB / 385 MB, free: 4.773 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.166e-05/0.2287, allocations: 39.12 kB / 385 MB, free: 4.727 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 4.949e-06/0.2287, allocations: 0 / 385 MB, free: 4.727 MB / 282.7 MB Notification: Performance of matching and sorting (n=64): time 0.02003/0.2488, allocations: 3.014 MB / 388.1 MB, free: 1.57 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.948e-05/0.2489, allocations: 59.97 kB / 388.1 MB, free: 1.496 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009151/0.2499, allocations: 329.6 kB / 388.4 MB, free: 1.16 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003315/0.2502, allocations: 49.69 kB / 388.5 MB, free: 1.105 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003066/0.2506, allocations: 251.6 kB / 388.7 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005613/0.2512, allocations: 217 kB / 388.9 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.2513, allocations: 19.98 kB / 389 MB, free: 0.625 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002561/0.2516, allocations: 346.8 kB / 389.3 MB, free: 284 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3953/0.6469, allocations: 315.5 kB / 389.6 MB, free: 20.58 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002353/0.6493, allocations: 386.5 kB / 390 MB, free: 20.55 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001759/0.6512, allocations: 258.3 kB / 390.2 MB, free: 20.54 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-06/0.6512, allocations: 0 / 390.2 MB, free: 20.54 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.005412/0.6567, allocations: 0.9199 MB / 391.2 MB, free: 20.48 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.6568, allocations: 8.938 kB / 391.2 MB, free: 20.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.6568, allocations: 1.375 kB / 391.2 MB, free: 20.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003645/0.6605, allocations: 0.7256 MB / 391.9 MB, free: 20.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/0.6618, allocations: 108.5 kB / 392 MB, free: 20.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003727/0.6656, allocations: 1.098 MB / 393.1 MB, free: 19.62 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00224/0.6679, allocations: 146.1 kB / 393.2 MB, free: 19.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002623/0.6683, allocations: 26.75 kB / 393.3 MB, free: 19.59 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 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0006865/0.669, allocations: 189 kB / 393.5 MB, free: 19.43 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002925/0.6693, allocations: 46.48 kB / 393.5 MB, free: 19.43 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003011/0.6696, allocations: 66.47 kB / 393.6 MB, free: 19.38 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-05/0.6697, allocations: 7.047 kB / 393.6 MB, free: 19.38 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.6697, allocations: 5.078 kB / 393.6 MB, free: 19.38 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-05/0.6697, allocations: 5.203 kB / 393.6 MB, free: 19.38 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008051/0.6778, allocations: 1.588 MB / 395.2 MB, free: 18.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.646e-05/0.6779, allocations: 0 / 395.2 MB, free: 18.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/0.6793, allocations: 89.48 kB / 395.3 MB, free: 18.64 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003587/0.6829, allocations: 0.7082 MB / 396 MB, free: 18.45 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002668/0.6833, allocations: 23 kB / 396 MB, free: 18.44 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003582/0.6869, allocations: 1.069 MB / 397.1 MB, free: 17.73 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.687, allocations: 0 / 397.1 MB, free: 17.73 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00784/0.6948, allocations: 1.322 MB / 398.4 MB, free: 17.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008285/0.6957, allocations: 192.2 kB / 398.6 MB, free: 17.06 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003182/0.6961, allocations: 20.53 kB / 398.6 MB, free: 17.05 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002178/0.6983, allocations: 142.9 kB / 398.7 MB, free: 17.04 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00113/0.6995, allocations: 154.1 kB / 398.9 MB, free: 17.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002607/0.6998, allocations: 25.92 kB / 398.9 MB, free: 17.01 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006524/0.7005, allocations: 229.1 kB / 399.1 MB, free: 16.89 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.7005, allocations: 1.281 kB / 399.1 MB, free: 16.89 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001633/0.7022, allocations: 160.9 kB / 399.3 MB, free: 16.87 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005436/0.7028, allocations: 147.6 kB / 399.4 MB, free: 16.76 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.005083/0.7079, allocations: 0.7823 MB / 400.2 MB, free: 16.51 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.708, allocations: 0 / 400.2 MB, free: 16.51 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002852/0.7108, allocations: 439.1 kB / 400.6 MB, free: 16.37 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00164/0.7126, allocations: 75.42 kB / 400.7 MB, free: 16.34 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00758/0.7202, allocations: 1.698 MB / 402.4 MB, free: 15.28 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007557/0.721, allocations: 0.8519 MB / 403.3 MB, free: 14.58 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004513/0.7216, allocations: 46.22 kB / 403.3 MB, free: 14.57 MB / 282.7 MB Notification: Performance of SimCode: time 1.463e-06/0.7216, allocations: 0.9688 kB / 403.3 MB, free: 14.57 MB / 282.7 MB Notification: Performance of Templates: time 0.03194/0.7535, allocations: 8.252 MB / 411.6 MB, free: 10.29 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches