Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007903/0.0007903, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00369/0.00369, allocations: 159 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.846/0.846, allocations: 177 MB / 204.9 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.019e-05/2.15e-05, allocations: 3.547 kB / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002568/0.00259, allocations: 2.201 MB / 328 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000992/0.003582, allocations: 0.8257 MB / 328.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.00369, allocations: 4 kB / 328.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002234/0.003914, allocations: 51.47 kB / 328.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000247/0.004161, allocations: 115.2 kB / 329 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002057/0.004367, allocations: 95.67 kB / 329 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002664/0.004633, allocations: 295.4 kB / 329.3 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.004752, allocations: 44.78 kB / 329.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002599/0.005012, allocations: 187.5 kB / 329.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001481/0.00516, allocations: 99.75 kB / 329.7 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.00519, allocations: 20 kB / 329.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.005304, allocations: 87.89 kB / 329.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.11e-05/0.005365, allocations: 55.83 kB / 329.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.823e-05/0.005433, allocations: 87.73 kB / 329.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003206/0.005754, allocations: 326.9 kB / 330.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.005756, allocations: 0 / 330.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.005758, allocations: 0 / 330.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.005763, allocations: 0 / 330.2 MB, free: 10.91 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0007303/0.006493, allocations: 0.5181 MB / 330.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.006528, allocations: 19.98 kB / 330.8 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.00665, allocations: 36.73 kB / 330.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.006923, allocations: 194.7 kB / 331 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.006946, allocations: 12.38 kB / 331 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.496e-05/0.006981, allocations: 20.38 kB / 331 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002931/0.007274, allocations: 235.5 kB / 331.3 MB, free: 9.805 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.007288, allocations: 4.188 kB / 331.3 MB, free: 9.801 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.007304, allocations: 4.375 kB / 331.3 MB, free: 9.797 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.007312, allocations: 11.94 kB / 331.3 MB, free: 9.785 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002611/0.007573, allocations: 175.9 kB / 331.4 MB, free: 9.613 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006227/0.008195, allocations: 0.5352 MB / 332 MB, free: 9.043 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003511/0.008546, allocations: 190.3 kB / 332.2 MB, free: 8.848 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.008674, allocations: 92.81 kB / 332.3 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.008691, allocations: 4 kB / 332.3 MB, free: 8.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002274/0.008918, allocations: 159.3 kB / 332.4 MB, free: 8.582 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 2.375e-06/0.008921, allocations: 0 / 332.4 MB, free: 8.582 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.001385/0.01031, allocations: 0.9413 MB / 333.4 MB, free: 7.586 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.01034, allocations: 59.41 kB / 333.4 MB, free: 7.516 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.0105, allocations: 206.5 kB / 333.6 MB, free: 7.301 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.01052, allocations: 33.7 kB / 333.6 MB, free: 7.262 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.599e-05/0.01058, allocations: 136.5 kB / 333.8 MB, free: 7.125 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.131e-05/0.01063, allocations: 99.16 kB / 333.9 MB, free: 7.027 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.455e-05/0.0107, allocations: 57.7 kB / 333.9 MB, free: 6.965 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.644e-05/0.01077, allocations: 330.8 kB / 334.3 MB, free: 6.633 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.01094, allocations: 125.6 kB / 334.4 MB, free: 6.504 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.01111, allocations: 166.3 kB / 334.5 MB, free: 6.324 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002717/0.01138, allocations: 246 kB / 334.8 MB, free: 6.066 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.01138, allocations: 0 / 334.8 MB, free: 6.066 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004642/0.01184, allocations: 415.4 kB / 335.2 MB, free: 5.641 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.01187, allocations: 33.69 kB / 335.2 MB, free: 5.602 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.01188, allocations: 0 / 335.2 MB, free: 5.602 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001524/0.01203, allocations: 64.84 kB / 335.3 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.01214, allocations: 51.91 kB / 335.3 MB, free: 5.484 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/0.01329, allocations: 1.671 MB / 337 MB, free: 3.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.01343, allocations: 27.97 kB / 337 MB, free: 3.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.01344, allocations: 8 kB / 337 MB, free: 3.676 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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.0001045/0.01355, allocations: 145.7 kB / 337.2 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.575e-05/0.01357, allocations: 23.86 kB / 337.2 MB, free: 3.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.245e-05/0.0136, allocations: 34.72 kB / 337.2 MB, free: 3.465 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.01361, allocations: 4 kB / 337.2 MB, free: 3.461 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.01361, allocations: 0 / 337.2 MB, free: 3.461 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.01361, allocations: 3.984 kB / 337.3 MB, free: 3.457 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006362/0.01425, allocations: 0.5932 MB / 337.8 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.01425, allocations: 3.938 kB / 337.8 MB, free: 2.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.01437, allocations: 47.95 kB / 337.9 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.426e-05/0.01446, allocations: 52.83 kB / 337.9 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.01448, allocations: 7.984 kB / 338 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000896/0.01537, allocations: 1.503 MB / 339.5 MB, free: 1.105 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01538, allocations: 0 / 339.5 MB, free: 1.105 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005605/0.01594, allocations: 0.5087 MB / 340 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.091e-05/0.016, allocations: 39.88 kB / 340 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.01602, allocations: 4 kB / 340 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.01613, allocations: 31.95 kB / 340 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.01624, allocations: 75.88 kB / 340.1 MB, free: 440 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.01625, allocations: 7.984 kB / 340.1 MB, free: 432 kB / 298.7 MB Notification: Performance of sorting global known variables: time 9.165e-05/0.01635, allocations: 159.3 kB / 340.3 MB, free: 272 kB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01635, allocations: 0 / 340.3 MB, free: 272 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002676/0.01661, allocations: 72 kB / 340.3 MB, free: 200 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006266/0.01724, allocations: 386.8 kB / 340.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005751/0.01782, allocations: 459.4 kB / 341.2 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.01782, allocations: 0 / 341.2 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002393/0.01806, allocations: 254.7 kB / 341.4 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002673/0.01832, allocations: 56.73 kB / 341.5 MB, free: 15.13 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008048/0.01913, allocations: 0.5952 MB / 342.1 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.87e-05/0.01922, allocations: 142.1 kB / 342.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.24e-05/0.01928, allocations: 36.42 kB / 342.2 MB, free: 14.32 MB / 314.7 MB Notification: Performance of SimCode: time 3.41e-07/0.01928, allocations: 0 / 342.2 MB, free: 14.32 MB / 314.7 MB Notification: Performance of Templates: time 0.004508/0.02379, allocations: 4.481 MB / 346.7 MB, free: 9.855 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.65087706129998]