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.001407/0.001407, allocations: 109.4 kB / 18.4 MB, free: 4.703 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.001451/0.001451, allocations: 193.3 kB / 19.33 MB, free: 3.781 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.351/1.351, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.00129/0.00129, allocations: 47.94 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08915/0.09045, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004759/0.09526, allocations: 3.085 MB / 378.9 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002348/0.09764, allocations: 1.08 MB / 380 MB, free: 396 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000443/0.09811, allocations: 7.938 kB / 380 MB, free: 388 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003567/0.0985, allocations: 75.23 kB / 380.1 MB, free: 312 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004959/0.09901, allocations: 154.7 kB / 380.2 MB, free: 156 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1874/0.2864, allocations: 284.1 kB / 380.5 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001097/0.2876, allocations: 0.7895 MB / 381.3 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002722/0.2878, allocations: 141.3 kB / 381.4 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004501/0.2883, allocations: 363.2 kB / 381.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000463/0.2888, allocations: 381.4 kB / 382.2 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001342/0.2889, allocations: 58.84 kB / 382.2 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002819/0.2892, allocations: 114.9 kB / 382.3 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001865/0.2894, allocations: 155 kB / 382.5 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003494/0.2898, allocations: 297.4 kB / 382.8 MB, free: 9.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009291/0.2907, allocations: 0.7205 MB / 383.5 MB, free: 9.465 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.2907, allocations: 0.7969 kB / 383.5 MB, free: 9.465 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.2907, allocations: 3.188 kB / 383.5 MB, free: 9.465 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.2907, allocations: 0.5 kB / 383.5 MB, free: 9.465 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.001608/0.2923, allocations: 0.8833 MB / 384.4 MB, free: 8.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.2924, allocations: 9.438 kB / 384.4 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.2925, allocations: 61.19 kB / 384.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005044/0.2931, allocations: 374.6 kB / 384.8 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.811e-05/0.2931, allocations: 31.72 kB / 384.8 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.2932, allocations: 50.52 kB / 384.9 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/0.2943, allocations: 0.6135 MB / 385.5 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.085e-05/0.2944, allocations: 12.03 kB / 385.5 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.025e-05/0.2944, allocations: 16.31 kB / 385.5 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.2945, allocations: 9.906 kB / 385.5 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.2957, allocations: 0.6015 MB / 386.1 MB, free: 8.387 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002345/0.298, allocations: 1.31 MB / 387.4 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009595/0.299, allocations: 468.6 kB / 387.9 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005468/0.2996, allocations: 308 kB / 388.2 MB, free: 7.414 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.382e-05/0.2996, allocations: 13.42 kB / 388.2 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.866e-05/0.2996, allocations: 42.03 kB / 388.3 MB, free: 7.363 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 1.854e-06/0.2997, allocations: 4 kB / 388.3 MB, free: 7.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.005798/0.3055, allocations: 2.864 MB / 391.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.3055, allocations: 58.67 kB / 391.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003377/0.3059, allocations: 325.8 kB / 391.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.223e-05/0.3059, allocations: 52.09 kB / 391.6 MB, free: 5.621 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.306, allocations: 197.4 kB / 391.7 MB, free: 5.453 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.3062, allocations: 227.2 kB / 392 MB, free: 5.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002174/0.3064, allocations: 133.5 kB / 392.1 MB, free: 5.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.733e-05/0.3065, allocations: 350.7 kB / 392.4 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005742/0.3071, allocations: 321.7 kB / 392.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006131/0.3077, allocations: 387.6 kB / 393.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008772/0.3086, allocations: 0.5067 MB / 393.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3086, allocations: 0.875 kB / 393.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001647/0.3103, allocations: 0.9316 MB / 394.6 MB, free: 4.066 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.3103, allocations: 6.562 kB / 394.6 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3103, allocations: 1 kB / 394.6 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001206/0.3115, allocations: 0.7264 MB / 395.3 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003718/0.3119, allocations: 100.6 kB / 395.4 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.3131, allocations: 1.084 MB / 396.5 MB, free: 3.152 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006646/0.3138, allocations: 107.8 kB / 396.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.857e-05/0.3139, allocations: 26.62 kB / 396.6 MB, free: 3.133 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.0002536/0.3142, allocations: 186.4 kB / 396.8 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.3143, allocations: 51.94 kB / 396.9 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001436/0.3144, allocations: 70.03 kB / 396.9 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3144, allocations: 6.875 kB / 396.9 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.3144, allocations: 1.078 kB / 396.9 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.3145, allocations: 8.078 kB / 396.9 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002634/0.3171, allocations: 1.572 MB / 398.5 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.3171, allocations: 2.812 kB / 398.5 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004086/0.3175, allocations: 88.59 kB / 398.6 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.3187, allocations: 0.7047 MB / 399.3 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.944e-05/0.3188, allocations: 28.88 kB / 399.3 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.32, allocations: 1.068 MB / 400.4 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.32, allocations: 3.188 kB / 400.4 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002166/0.3221, allocations: 1.293 MB / 401.7 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002533/0.3224, allocations: 190.5 kB / 401.9 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.3225, allocations: 24.41 kB / 401.9 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005727/0.3231, allocations: 106.5 kB / 402 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002803/0.3234, allocations: 123.7 kB / 402.1 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-05/0.3234, allocations: 30.67 kB / 402.2 MB, free: 484 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002392/0.3237, allocations: 231.4 kB / 402.4 MB, free: 360 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3237, allocations: 1.062 kB / 402.4 MB, free: 360 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006046/0.3243, allocations: 162.6 kB / 402.5 MB, free: 336 kB / 318.1 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.0002419/0.3246, allocations: 148.7 kB / 402.7 MB, free: 220 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.3261, allocations: 0.7755 MB / 403.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3261, allocations: 0 / 403.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008785/0.327, allocations: 429.2 kB / 403.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006701/0.3277, allocations: 95.95 kB / 404 MB, free: 15.67 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.3302, allocations: 1.422 MB / 405.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.3306, allocations: 0.8501 MB / 406.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.3308, allocations: 44.73 kB / 406.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3308, allocations: 0 / 406.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of Templates: time 0.01148/0.3423, allocations: 8.691 MB / 415 MB, free: 7.039 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