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.001278/0.001278, allocations: 179.3 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.528/1.528, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0008218/0.0008217, allocations: 85.34 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003062/0.0003061, allocations: 8 kB / 327 MB, free: 180 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2282, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002623/0.2309, allocations: 2.634 MB / 377.2 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.2327, allocations: 1.037 MB / 378.2 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003972/0.2331, allocations: 12.81 kB / 378.2 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002779/0.2334, allocations: 47.03 kB / 378.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004124/0.2338, allocations: 136.9 kB / 378.4 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006229/0.2345, allocations: 217.6 kB / 378.6 MB, free: 42.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000751/0.2352, allocations: 0.6968 MB / 379.3 MB, free: 41.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.2355, allocations: 107.5 kB / 379.4 MB, free: 41.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005026/0.236, allocations: 308.8 kB / 379.7 MB, free: 41.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004776/0.2365, allocations: 340 kB / 380.1 MB, free: 41.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.2366, allocations: 31.62 kB / 380.1 MB, free: 41.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000236/0.2368, allocations: 75.78 kB / 380.2 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.2369, allocations: 127.1 kB / 380.3 MB, free: 41.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.2371, allocations: 110.2 kB / 380.4 MB, free: 41.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004324/0.2375, allocations: 0.4982 MB / 380.9 MB, free: 40.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2376, allocations: 1.188 kB / 380.9 MB, free: 40.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.2376, allocations: 0 / 380.9 MB, free: 40.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.903e-05/0.2376, allocations: 0 / 380.9 MB, free: 40.75 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001479/0.2391, allocations: 0.8197 MB / 381.7 MB, free: 40.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.2391, allocations: 9.625 kB / 381.7 MB, free: 40.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.2392, allocations: 55.97 kB / 381.8 MB, free: 40.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003679/0.2396, allocations: 352.4 kB / 382.1 MB, free: 39.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.395e-05/0.2396, allocations: 35.19 kB / 382.2 MB, free: 39.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.621e-05/0.2397, allocations: 55.36 kB / 382.2 MB, free: 39.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009776/0.2407, allocations: 0.6197 MB / 382.8 MB, free: 39.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.2408, allocations: 5.156 kB / 382.8 MB, free: 39.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.208e-05/0.2408, allocations: 15.72 kB / 382.9 MB, free: 39.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.2408, allocations: 10.97 kB / 382.9 MB, free: 39.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.242, allocations: 0.6136 MB / 383.5 MB, free: 39.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.244, allocations: 1.367 MB / 384.8 MB, free: 38.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008857/0.2449, allocations: 471.1 kB / 385.3 MB, free: 37.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005086/0.2454, allocations: 325.9 kB / 385.6 MB, free: 37.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.058e-05/0.2455, allocations: 4.562 kB / 385.6 MB, free: 37.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.423e-05/0.2455, allocations: 39.12 kB / 385.7 MB, free: 37.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 1.623e-06/0.2455, allocations: 0 / 385.7 MB, free: 37.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.005377/0.2509, allocations: 3.024 MB / 388.7 MB, free: 34.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.219e-05/0.2509, allocations: 59.97 kB / 388.7 MB, free: 34.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002323/0.2511, allocations: 333.6 kB / 389.1 MB, free: 33.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.561e-05/0.2512, allocations: 41.7 kB / 389.1 MB, free: 33.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.344e-05/0.2513, allocations: 193.3 kB / 389.3 MB, free: 33.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.2514, allocations: 221 kB / 389.5 MB, free: 33.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.2514, allocations: 12 kB / 389.5 MB, free: 33.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.05e-05/0.2515, allocations: 362.7 kB / 389.9 MB, free: 33.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005302/0.2521, allocations: 329.8 kB / 390.2 MB, free: 32.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/0.2526, allocations: 389 kB / 390.6 MB, free: 32.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004388/0.2531, allocations: 259.1 kB / 390.8 MB, free: 32.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2531, allocations: 0 / 390.8 MB, free: 32.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001442/0.2545, allocations: 0.9432 MB / 391.8 MB, free: 31.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.2545, allocations: 7.984 kB / 391.8 MB, free: 31.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.2546, allocations: 4.031 kB / 391.8 MB, free: 31.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.2556, allocations: 0.7292 MB / 392.5 MB, free: 30.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003647/0.256, allocations: 103.9 kB / 392.6 MB, free: 30.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001079/0.2571, allocations: 1.107 MB / 393.7 MB, free: 29.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006709/0.2577, allocations: 151.9 kB / 393.9 MB, free: 29.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.039e-05/0.2578, allocations: 27.98 kB / 393.9 MB, free: 29.05 MB / 298.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.0001982/0.258, allocations: 184 kB / 394.1 MB, free: 28.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.128e-05/0.2581, allocations: 47.44 kB / 394.1 MB, free: 28.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.2582, allocations: 72.7 kB / 394.2 MB, free: 28.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2582, allocations: 11.94 kB / 394.2 MB, free: 28.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.2582, allocations: 0 / 394.2 MB, free: 28.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.2582, allocations: 3.984 kB / 394.2 MB, free: 28.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00216/0.2604, allocations: 1.583 MB / 395.8 MB, free: 27.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2604, allocations: 0 / 395.8 MB, free: 27.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003875/0.2608, allocations: 95.83 kB / 395.9 MB, free: 26.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008768/0.2617, allocations: 0.6996 MB / 396.6 MB, free: 26.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.866e-05/0.2618, allocations: 27.95 kB / 396.6 MB, free: 26.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009863/0.2627, allocations: 1.057 MB / 397.7 MB, free: 25.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2628, allocations: 3.953 kB / 397.7 MB, free: 25.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/0.2648, allocations: 1.335 MB / 399 MB, free: 23.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/0.265, allocations: 192.4 kB / 399.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.647e-05/0.2651, allocations: 23.94 kB / 399.2 MB, free: 23.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006208/0.2657, allocations: 143.9 kB / 399.4 MB, free: 23.44 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/0.266, allocations: 148.2 kB / 399.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.872e-05/0.266, allocations: 27.97 kB / 399.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001679/0.2662, allocations: 227.2 kB / 399.8 MB, free: 23.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2662, allocations: 0 / 399.8 MB, free: 23.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004944/0.2667, allocations: 160 kB / 399.9 MB, free: 22.89 MB / 298.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.0002496/0.267, allocations: 155.2 kB / 400.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001367/0.2683, allocations: 0.784 MB / 400.9 MB, free: 21.95 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2683, allocations: 0 / 400.9 MB, free: 21.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007164/0.2691, allocations: 437.8 kB / 401.3 MB, free: 21.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006509/0.2697, allocations: 81.39 kB / 401.4 MB, free: 21.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002522/0.2723, allocations: 1.7 MB / 403.1 MB, free: 19.72 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.2725, allocations: 0.8442 MB / 403.9 MB, free: 18.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.2726, allocations: 43.36 kB / 403.9 MB, free: 18.8 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2727, allocations: 0 / 403.9 MB, free: 18.8 MB / 298.7 MB Notification: Performance of Templates: time 0.008881/0.2815, allocations: 8.526 MB / 412.5 MB, free: 10.29 MB / 298.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/jenkins/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