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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=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_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_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 98.3 kB / 18.4 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 188.3 kB / 19.34 MB, free: 3.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 51.92 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07275/0.07397, allocations: 46.62 MB / 375.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004072/0.07808, allocations: 3.083 MB / 378.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001968/0.08007, allocations: 1.076 MB / 380 MB, free: 368 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002604/0.08035, allocations: 12 kB / 380 MB, free: 356 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002767/0.08065, allocations: 79.23 kB / 380.1 MB, free: 276 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003421/0.08101, allocations: 146.7 kB / 380.2 MB, free: 128 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1488/0.2298, allocations: 281.8 kB / 380.5 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009847/0.2308, allocations: 0.8011 MB / 381.3 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000277/0.2311, allocations: 138 kB / 381.4 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006068/0.2317, allocations: 352.8 kB / 381.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006023/0.2323, allocations: 382.5 kB / 382.2 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002011/0.2326, allocations: 60.44 kB / 382.2 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003313/0.2329, allocations: 110 kB / 382.3 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001836/0.2331, allocations: 159.5 kB / 382.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004695/0.2336, allocations: 298.1 kB / 382.8 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008949/0.2345, allocations: 0.7146 MB / 383.5 MB, free: 9.453 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.2345, allocations: 3.688 kB / 383.5 MB, free: 9.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2345, allocations: 1.031 kB / 383.5 MB, free: 9.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.992e-05/0.2345, allocations: 0 / 383.5 MB, free: 9.453 MB / 318.1 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.002005/0.2365, allocations: 0.8908 MB / 384.4 MB, free: 8.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.2366, allocations: 8.828 kB / 384.4 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.2368, allocations: 63.66 kB / 384.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000542/0.2373, allocations: 363.5 kB / 384.8 MB, free: 8.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.231e-05/0.2373, allocations: 32.19 kB / 384.8 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.2375, allocations: 51.88 kB / 384.9 MB, free: 8.641 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.2386, allocations: 0.6203 MB / 385.5 MB, free: 8.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/0.2387, allocations: 3.531 kB / 385.5 MB, free: 8.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.829e-05/0.2387, allocations: 19.44 kB / 385.5 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.2388, allocations: 10.78 kB / 385.5 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.24, allocations: 0.5992 MB / 386.1 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002254/0.2422, allocations: 1.317 MB / 387.5 MB, free: 7.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000943/0.2432, allocations: 463 kB / 387.9 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005638/0.2438, allocations: 304.5 kB / 388.2 MB, free: 7.395 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.669e-05/0.2438, allocations: 10.67 kB / 388.2 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.466e-05/0.2439, allocations: 43.66 kB / 388.3 MB, free: 7.344 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.475e-06/0.2439, allocations: 3.703 kB / 388.3 MB, free: 7.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.005958/0.2498, allocations: 2.867 MB / 391.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.886e-05/0.2499, allocations: 62.94 kB / 391.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003047/0.2502, allocations: 326.5 kB / 391.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.137e-05/0.2502, allocations: 50.56 kB / 391.6 MB, free: 5.598 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.832e-05/0.2503, allocations: 197.6 kB / 391.8 MB, free: 5.434 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.2505, allocations: 226.3 kB / 392 MB, free: 5.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/0.2507, allocations: 131.3 kB / 392.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.53e-05/0.2508, allocations: 354.4 kB / 392.4 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006027/0.2514, allocations: 322.5 kB / 392.8 MB, free: 4.762 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006256/0.252, allocations: 384.7 kB / 393.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009133/0.2529, allocations: 0.5003 MB / 393.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.253, allocations: 7.938 kB / 393.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001672/0.2546, allocations: 0.9272 MB / 394.6 MB, free: 4.047 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.2547, allocations: 5.656 kB / 394.6 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.2547, allocations: 1.922 kB / 394.6 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00119/0.2559, allocations: 0.7272 MB / 395.3 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003924/0.2563, allocations: 100.8 kB / 395.4 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.2575, allocations: 1.091 MB / 396.5 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006882/0.2582, allocations: 106.3 kB / 396.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.986e-05/0.2583, allocations: 31.11 kB / 396.6 MB, free: 3.098 MB / 318.1 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.0001993/0.2585, allocations: 186.7 kB / 396.8 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.894e-05/0.2586, allocations: 47.7 kB / 396.9 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001229/0.2587, allocations: 70.19 kB / 396.9 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.2587, allocations: 5.375 kB / 396.9 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2587, allocations: 0.9375 kB / 396.9 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/0.2589, allocations: 194.8 kB / 397.1 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.259, allocations: 23.59 kB / 397.1 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006722/0.2597, allocations: 97.44 kB / 397.2 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002845/0.26, allocations: 128.7 kB / 397.4 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00237/0.2624, allocations: 0.948 MB / 398.3 MB, free: 2.316 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001795/0.2642, allocations: 1.16 MB / 399.5 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005425/0.2648, allocations: 306.2 kB / 399.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001889/0.265, allocations: 235.3 kB / 400 MB, free: 1.543 MB / 318.1 MB Notification: Performance of Backend: time 4.81e-07/0.265, allocations: 0 / 400 MB, free: 1.543 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.2664, allocations: 0.6109 MB / 400.6 MB, free: 1.301 MB / 318.1 MB Notification: Performance of SimCode: time 0.001711/0.2681, allocations: 1.742 MB / 402.4 MB, free: 8 kB / 318.1 MB Notification: Performance of Templates: time 0.01796/0.2861, allocations: 12.69 MB / 415.1 MB, free: 7.043 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches