Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 169.1 kB / 24.91 MB, free: 9.199 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9461/0.9461, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.123e-06/1.123e-06, allocations: 0 / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.349e-05/1.461e-05, allocations: 2.312 kB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002413/0.002427, allocations: 2.352 MB / 275.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.003517, allocations: 0.8526 MB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.003622, allocations: 7.938 kB / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002405/0.003862, allocations: 51.56 kB / 276.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002518/0.004114, allocations: 115.1 kB / 276.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001982/0.004312, allocations: 83.81 kB / 276.9 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002553/0.004568, allocations: 287.3 kB / 277.2 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.004682, allocations: 50.45 kB / 277.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000211/0.004893, allocations: 171.6 kB / 277.4 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001546/0.005047, allocations: 99.75 kB / 277.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.733e-05/0.005075, allocations: 20 kB / 277.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.005183, allocations: 75.91 kB / 277.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.783e-05/0.00524, allocations: 63.75 kB / 277.6 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.741e-05/0.005298, allocations: 71.83 kB / 277.7 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002483/0.005546, allocations: 251.1 kB / 277.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.553e-06/0.005548, allocations: 4 kB / 278 MB, free: 12.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.005549, allocations: 0 / 278 MB, free: 12.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.005552, allocations: 0 / 278 MB, free: 12.77 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0004748/0.006027, allocations: 443.9 kB / 278.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.006059, allocations: 15.97 kB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.006177, allocations: 40.91 kB / 278.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.006382, allocations: 186.1 kB / 278.6 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/0.006405, allocations: 20.75 kB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.145e-05/0.006437, allocations: 20.38 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001816/0.006619, allocations: 162.9 kB / 278.8 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.006633, allocations: 16.12 kB / 278.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.006647, allocations: 4.375 kB / 278.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.006654, allocations: 7.938 kB / 278.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.152e-05/0.006746, allocations: 71.27 kB / 278.9 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005453/0.007291, allocations: 491 kB / 279.4 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.007467, allocations: 86.5 kB / 279.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.35e-05/0.00751, allocations: 40.78 kB / 279.5 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.007526, allocations: 4 kB / 279.5 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.007545, allocations: 42.5 kB / 279.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 1.282e-06/0.007547, allocations: 0 / 279.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007583/0.008305, allocations: 0.5555 MB / 280.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.008329, allocations: 55.41 kB / 280.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.008447, allocations: 198.4 kB / 280.4 MB, free: 10.17 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.008463, allocations: 29.7 kB / 280.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.758e-05/0.00852, allocations: 136.4 kB / 280.5 MB, free: 9.996 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.096e-05/0.008561, allocations: 75.36 kB / 280.6 MB, free: 9.922 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.426e-05/0.008616, allocations: 57.66 kB / 280.7 MB, free: 9.859 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.174e-05/0.008697, allocations: 326.8 kB / 281 MB, free: 9.531 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.718e-05/0.008735, allocations: 35.98 kB / 281 MB, free: 9.496 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.52e-05/0.00879, allocations: 63.38 kB / 281.1 MB, free: 9.422 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.81e-05/0.008888, allocations: 101.7 kB / 281.2 MB, free: 9.312 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.008889, allocations: 0 / 281.2 MB, free: 9.312 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0001626/0.009052, allocations: 155 kB / 281.3 MB, free: 9.152 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.009063, allocations: 8 kB / 281.3 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.009068, allocations: 0 / 281.3 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001072/0.009175, allocations: 40.89 kB / 281.4 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.489e-05/0.00925, allocations: 35.98 kB / 281.4 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008753/0.01013, allocations: 1.473 MB / 282.9 MB, free: 7.508 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.597e-05/0.0102, allocations: 15.98 kB / 282.9 MB, free: 7.492 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.01021, allocations: 8.031 kB / 282.9 MB, free: 7.484 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 (25): * Single equations (assignments): 24 * 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.32e-05/0.01029, allocations: 134.2 kB / 283 MB, free: 7.344 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.694e-05/0.01032, allocations: 15.98 kB / 283.1 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.604e-05/0.01035, allocations: 29.95 kB / 283.1 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.01035, allocations: 0 / 283.1 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-06/0.01035, allocations: 3.938 kB / 283.1 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.01035, allocations: 0 / 283.1 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003562/0.01071, allocations: 357.4 kB / 283.4 MB, free: 6.902 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.01071, allocations: 4.062 kB / 283.4 MB, free: 6.898 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.704e-05/0.0108, allocations: 35.91 kB / 283.5 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.187e-05/0.01087, allocations: 36.84 kB / 283.5 MB, free: 6.824 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.01088, allocations: 15.92 kB / 283.5 MB, free: 6.809 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006848/0.01157, allocations: 1.311 MB / 284.8 MB, free: 5.414 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01157, allocations: 0 / 284.8 MB, free: 5.414 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002522/0.01182, allocations: 298.5 kB / 285.1 MB, free: 5.098 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.997e-05/0.01186, allocations: 23.86 kB / 285.2 MB, free: 5.074 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.01188, allocations: 7.984 kB / 285.2 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.06e-05/0.01195, allocations: 16 kB / 285.2 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.927e-05/0.01204, allocations: 59.81 kB / 285.2 MB, free: 4.992 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.01205, allocations: 8 kB / 285.2 MB, free: 4.984 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.003e-05/0.0121, allocations: 55.66 kB / 285.3 MB, free: 4.926 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0121, allocations: 4.031 kB / 285.3 MB, free: 4.922 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002212/0.01232, allocations: 79.86 kB / 285.4 MB, free: 4.844 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 (15): * Single equations (assignments): 14 * 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.0008608/0.01318, allocations: 453.9 kB / 285.8 MB, free: 4.586 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002729/0.01345, allocations: 238.3 kB / 286.1 MB, free: 4.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.01345, allocations: 4 kB / 286.1 MB, free: 4.336 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.01359, allocations: 203.2 kB / 286.3 MB, free: 4.121 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002115/0.0138, allocations: 58.19 kB / 286.3 MB, free: 4.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00075/0.01455, allocations: 0.5183 MB / 286.8 MB, free: 3.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.137e-05/0.0146, allocations: 84.31 kB / 286.9 MB, free: 3.418 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.957e-05/0.01466, allocations: 22.03 kB / 286.9 MB, free: 3.398 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.886e-05/0.01475, allocations: 83.36 kB / 287 MB, free: 3.316 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01475, allocations: 0 / 287 MB, free: 3.316 MB / 266.7 MB Notification: Performance of Templates: time 0.1003/0.115, allocations: 4.114 MB / 291.1 MB, free: 25.41 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.7793858060613275]