Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.001584/0.001584, allocations: 81.66 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001631/0.001631, allocations: 147.1 kB / 23.94 MB, free: 4.164 MB / 14.72 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.431/1.431, allocations: 173.3 MB / 200.4 MB, free: 12.86 MB / 190.1 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.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.475e-05/2.649e-05, allocations: 2.281 kB / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002802/0.002828, allocations: 2.112 MB / 321 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.003873, allocations: 0.6662 MB / 321.7 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.003977, allocations: 3.031 kB / 321.7 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.004151, allocations: 37.06 kB / 321.7 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000168/0.004319, allocations: 75.09 kB / 321.8 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003263/0.004645, allocations: 102.9 kB / 321.9 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000274/0.004919, allocations: 275 kB / 322.2 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.005048, allocations: 33.62 kB / 322.2 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.005261, allocations: 161.3 kB / 322.4 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.005442, allocations: 95.03 kB / 322.5 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.027e-05/0.005482, allocations: 19.41 kB / 322.5 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.005622, allocations: 66.84 kB / 322.5 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.04e-05/0.005692, allocations: 49.75 kB / 322.6 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.997e-05/0.005782, allocations: 78.11 kB / 322.7 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003719/0.006154, allocations: 292.2 kB / 322.9 MB, free: 1.109 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.006157, allocations: 3.938 kB / 323 MB, free: 1.105 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.006158, allocations: 1.094 kB / 323 MB, free: 1.105 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.006164, allocations: 0.75 kB / 323 MB, free: 1.105 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0007277/0.006892, allocations: 462 kB / 323.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.006925, allocations: 11.58 kB / 323.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.479e-05/0.00699, allocations: 24.8 kB / 323.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002686/0.007258, allocations: 176.1 kB / 323.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.00728, allocations: 17.06 kB / 323.6 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.557e-05/0.007326, allocations: 21.53 kB / 323.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003908/0.007717, allocations: 219.9 kB / 323.9 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.007735, allocations: 2.828 kB / 323.9 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.00776, allocations: 13.91 kB / 323.9 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.007768, allocations: 8.188 kB / 323.9 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003269/0.008095, allocations: 161.6 kB / 324 MB, free: 376 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.009156, allocations: 0.6377 MB / 324.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003803/0.009536, allocations: 127.2 kB / 324.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.009683, allocations: 64.5 kB / 324.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.009703, allocations: 1.375 kB / 324.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.009742, allocations: 37.25 kB / 324.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.493e-06/0.009743, allocations: 0 / 324.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.002005/0.01175, allocations: 0.7637 MB / 325.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.0118, allocations: 54.52 kB / 325.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000236/0.01204, allocations: 186.3 kB / 325.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.01208, allocations: 31.83 kB / 325.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.01219, allocations: 145.5 kB / 326.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.414e-05/0.01227, allocations: 74.16 kB / 326.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.01238, allocations: 58.61 kB / 326.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.01254, allocations: 329 kB / 326.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/0.01274, allocations: 75.64 kB / 326.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.01294, allocations: 116.8 kB / 326.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003232/0.01326, allocations: 167.4 kB / 326.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.01327, allocations: 0 / 326.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000533/0.0138, allocations: 288.6 kB / 327.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.01381, allocations: 5.469 kB / 327.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.01382, allocations: 6.234 kB / 327.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002616/0.01408, allocations: 75.64 kB / 327.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.01425, allocations: 38.83 kB / 327.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006048/0.01485, allocations: 0.6183 MB / 327.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002079/0.01506, allocations: 30.84 kB / 327.9 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.054e-05/0.01509, allocations: 14.88 kB / 328 MB, free: 13.59 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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 {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001568/0.01525, allocations: 136.6 kB / 328.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.246e-05/0.0153, allocations: 17.42 kB / 328.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.131e-05/0.01536, allocations: 23.36 kB / 328.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.01536, allocations: 2.188 kB / 328.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.01537, allocations: 1.125 kB / 328.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.01538, allocations: 5.391 kB / 328.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009193/0.0163, allocations: 0.5153 MB / 328.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.0163, allocations: 1.156 kB / 328.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/0.01649, allocations: 32.17 kB / 328.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001944/0.01669, allocations: 66.14 kB / 328.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.01671, allocations: 3.531 kB / 328.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006566/0.01736, allocations: 0.622 MB / 329.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.01737, allocations: 5.156 kB / 329.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000705/0.01807, allocations: 409 kB / 329.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.847e-05/0.01815, allocations: 30.89 kB / 329.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.452e-05/0.01819, allocations: 11.83 kB / 329.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.01839, allocations: 21.09 kB / 329.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.999e-05/0.01847, allocations: 23.56 kB / 329.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.01849, allocations: 6.234 kB / 329.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001382/0.01863, allocations: 144 kB / 330 MB, free: 12.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01863, allocations: 0 / 330 MB, free: 12.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003712/0.019, allocations: 67.55 kB / 330.1 MB, free: 12.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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 {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002154/0.01921, allocations: 120.3 kB / 330.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005364/0.01975, allocations: 181.4 kB / 330.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.01975, allocations: 0 / 330.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002582/0.02001, allocations: 102 kB / 330.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/0.02044, allocations: 44.86 kB / 330.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.02174, allocations: 0.569 MB / 331.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001461/0.02188, allocations: 129.3 kB / 331.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.536e-05/0.02196, allocations: 19.44 kB / 331.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.079e-05/0.02201, allocations: 22.55 kB / 331.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.02201, allocations: 4 kB / 331.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Templates: time 0.00761/0.02962, allocations: 2.87 MB / 334.1 MB, free: 10.4 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.290274351835251]