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.0008649/0.0008649, allocations: 87.89 kB / 21.19 MB, free: 3.379 MB / 18.57 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.0008246/0.0008246, allocations: 145.1 kB / 24.54 MB, free: 24 kB / 18.57 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 0.8995/0.8995, allocations: 173.4 MB / 201.2 MB, free: 9.297 MB / 186.7 MB " [Timeout remaining time 179] 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 2.144e-06/2.144e-06, allocations: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.156e-05/2.371e-05, allocations: 2.312 kB / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002431/0.002454, allocations: 2.244 MB / 270.2 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009307/0.003385, allocations: 0.6777 MB / 270.9 MB, free: 3.473 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.233e-05/0.003477, allocations: 7.938 kB / 270.9 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001784/0.003656, allocations: 31.7 kB / 270.9 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001447/0.0038, allocations: 71.42 kB / 271 MB, free: 3.363 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003029/0.004103, allocations: 111.6 kB / 271.1 MB, free: 3.254 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002266/0.00433, allocations: 267.4 kB / 271.4 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.004445, allocations: 40.56 kB / 271.4 MB, free: 2.949 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000168/0.004613, allocations: 159.7 kB / 271.6 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000154/0.004767, allocations: 91.77 kB / 271.7 MB, free: 2.703 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.194e-05/0.004799, allocations: 20 kB / 271.7 MB, free: 2.684 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001129/0.004912, allocations: 75.88 kB / 271.8 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.322e-05/0.004975, allocations: 51.81 kB / 271.8 MB, free: 2.559 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.608e-05/0.005041, allocations: 75.83 kB / 271.9 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002503/0.005291, allocations: 219.2 kB / 272.1 MB, free: 2.27 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.005294, allocations: 0 / 272.1 MB, free: 2.27 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.005295, allocations: 0 / 272.1 MB, free: 2.27 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.005299, allocations: 0 / 272.1 MB, free: 2.27 MB / 250.7 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.0005898/0.005889, allocations: 0.5351 MB / 272.6 MB, free: 1.695 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.005923, allocations: 8.922 kB / 272.6 MB, free: 1.688 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.63e-05/0.005989, allocations: 40.8 kB / 272.7 MB, free: 1.648 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001922/0.006181, allocations: 188.2 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.006205, allocations: 12.88 kB / 272.9 MB, free: 1.426 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.006238, allocations: 20.38 kB / 272.9 MB, free: 1.406 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002704/0.006509, allocations: 201.5 kB / 273.1 MB, free: 1.188 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.006522, allocations: 192 / 273.1 MB, free: 1.188 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.006538, allocations: 16.31 kB / 273.1 MB, free: 1.172 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.006548, allocations: 7.938 kB / 273.1 MB, free: 1.164 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001519/0.006699, allocations: 104.8 kB / 273.2 MB, free: 1.062 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007203/0.00742, allocations: 0.7254 MB / 273.9 MB, free: 300 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.007649, allocations: 99.02 kB / 274 MB, free: 188 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.122e-05/0.00771, allocations: 47.66 kB / 274.1 MB, free: 136 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.007725, allocations: 4 kB / 274.1 MB, free: 132 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.007746, allocations: 41.33 kB / 274.1 MB, free: 80 kB / 250.7 MB Notification: Performance of pre-optimization done (n=18): time 1.283e-06/0.007747, allocations: 3.938 kB / 274.1 MB, free: 76 kB / 250.7 MB Notification: Performance of matching and sorting (n=20): time 0.0009816/0.008729, allocations: 0.6467 MB / 274.8 MB, free: 15.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.704e-05/0.008756, allocations: 55.36 kB / 274.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.008893, allocations: 237.8 kB / 275.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.008909, allocations: 37.69 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.179e-05/0.008981, allocations: 187.1 kB / 275.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.402e-05/0.009025, allocations: 75.41 kB / 275.4 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-05/0.009085, allocations: 59.31 kB / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.009201, allocations: 0.5001 MB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.885e-05/0.00927, allocations: 47.97 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.956e-05/0.00936, allocations: 94.94 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.009506, allocations: 132 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.009507, allocations: 0 / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002597/0.009766, allocations: 239.4 kB / 276.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.009777, allocations: 4 kB / 276.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.009782, allocations: 4 kB / 276.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001559/0.009938, allocations: 63.7 kB / 276.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.87e-05/0.01003, allocations: 35.92 kB / 276.5 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003575/0.01038, allocations: 0.8546 MB / 277.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.079e-05/0.01047, allocations: 15.98 kB / 277.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.01048, allocations: 15.94 kB / 277.4 MB, free: 12.59 MB / 266.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: 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 8.618e-05/0.01057, allocations: 171.2 kB / 277.6 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.058e-05/0.0106, allocations: 23.86 kB / 277.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.293e-05/0.01063, allocations: 33.83 kB / 277.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.01063, allocations: 0 / 277.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.01064, allocations: 4 kB / 277.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.01064, allocations: 4 kB / 277.6 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004724/0.01111, allocations: 0.5118 MB / 278.2 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.01112, allocations: 0 / 278.2 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.915e-05/0.01121, allocations: 31.97 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.977e-05/0.01131, allocations: 67.64 kB / 278.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.01132, allocations: 7.984 kB / 278.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003205/0.01164, allocations: 0.8508 MB / 279.1 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.01164, allocations: 0 / 279.1 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003086/0.01195, allocations: 405.6 kB / 279.5 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.497e-05/0.01199, allocations: 27.89 kB / 279.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.01202, allocations: 11.92 kB / 279.6 MB, free: 10.33 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.507e-05/0.01209, allocations: 16.03 kB / 279.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.096e-05/0.01214, allocations: 23.95 kB / 279.6 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.01215, allocations: 7.984 kB / 279.6 MB, free: 10.28 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.442e-05/0.01222, allocations: 176.7 kB / 279.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01222, allocations: 0 / 279.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002096/0.01243, allocations: 67.88 kB / 279.8 MB, free: 10.04 MB / 266.7 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.0001291/0.01256, allocations: 131.2 kB / 280 MB, free: 9.902 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002682/0.01283, allocations: 160.6 kB / 280.1 MB, free: 9.738 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.01283, allocations: 0 / 280.1 MB, free: 9.738 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.01293, allocations: 84.7 kB / 280.2 MB, free: 9.652 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.01317, allocations: 40.06 kB / 280.2 MB, free: 9.613 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000858/0.01403, allocations: 0.5708 MB / 280.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.348e-05/0.01407, allocations: 79.98 kB / 280.9 MB, free: 8.91 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.734e-05/0.01412, allocations: 13.95 kB / 280.9 MB, free: 8.898 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.498e-05/0.01415, allocations: 16.5 kB / 280.9 MB, free: 8.883 MB / 266.7 MB Notification: Performance of SimCode: time 6.62e-07/0.01415, allocations: 8 kB / 280.9 MB, free: 8.875 MB / 266.7 MB Notification: Performance of Templates: time 0.004739/0.01889, allocations: 3.097 MB / 284 MB, free: 5.82 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.685074847191572]