Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.001045/0.001045, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.00102/0.00102, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.9133/0.9133, allocations: 177 MB / 204.8 MB, free: 5.602 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.OneWayClutchDisengaged,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.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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.569e-05/2.717e-05, allocations: 6.25 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003765/0.003792, allocations: 2.363 MB / 275.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.004803, allocations: 0.8373 MB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.004903, allocations: 7.938 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002245/0.005128, allocations: 55.5 kB / 276.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.005367, allocations: 107.2 kB / 276.3 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001792/0.005546, allocations: 83.77 kB / 276.3 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002362/0.005782, allocations: 283.3 kB / 276.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.005904, allocations: 59.36 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002097/0.006114, allocations: 171.5 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.006272, allocations: 103.7 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.077e-05/0.006302, allocations: 20 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.006409, allocations: 75.92 kB / 277 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.856e-05/0.006468, allocations: 67.73 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.02e-05/0.006528, allocations: 75.83 kB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.006797, allocations: 239.1 kB / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.0068, allocations: 0 / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.006801, allocations: 0 / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.006806, allocations: 0 / 277.4 MB, free: 12.93 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.0005937/0.007399, allocations: 0.566 MB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.007434, allocations: 11.98 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.007561, allocations: 44.8 kB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.007781, allocations: 216.8 kB / 278.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/0.007805, allocations: 20.75 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.086e-05/0.007836, allocations: 20.33 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002366/0.008073, allocations: 180.6 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.008086, allocations: 8.188 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.008102, allocations: 8.375 kB / 278.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.008111, allocations: 7.938 kB / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.008254, allocations: 91.23 kB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006923/0.008946, allocations: 0.7042 MB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002338/0.00918, allocations: 112 kB / 279.4 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.253e-05/0.009242, allocations: 43.67 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.009258, allocations: 4 kB / 279.4 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.00928, allocations: 49.31 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 2.054e-06/0.009282, allocations: 4 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009779/0.01026, allocations: 0.6424 MB / 280.1 MB, free: 9.996 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.696e-05/0.01029, allocations: 59.34 kB / 280.2 MB, free: 9.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.01044, allocations: 247.1 kB / 280.4 MB, free: 9.668 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.01046, allocations: 33.7 kB / 280.5 MB, free: 9.629 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.749e-05/0.01053, allocations: 187.2 kB / 280.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.499e-05/0.01058, allocations: 79.36 kB / 280.7 MB, free: 9.363 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.028e-05/0.01064, allocations: 55.31 kB / 280.8 MB, free: 9.301 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.01075, allocations: 0.504 MB / 281.3 MB, free: 8.785 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.302e-05/0.01081, allocations: 31.98 kB / 281.3 MB, free: 8.754 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.616e-05/0.0109, allocations: 94.69 kB / 281.4 MB, free: 8.645 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001425/0.01104, allocations: 126.6 kB / 281.5 MB, free: 8.504 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.01104, allocations: 0 / 281.5 MB, free: 8.504 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002567/0.0113, allocations: 217 kB / 281.7 MB, free: 8.281 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.01131, allocations: 4 kB / 281.7 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.01132, allocations: 4 kB / 281.8 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001394/0.01145, allocations: 47.59 kB / 281.8 MB, free: 8.223 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.915e-05/0.01154, allocations: 43.92 kB / 281.8 MB, free: 8.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.01271, allocations: 2.157 MB / 284 MB, free: 5.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.628e-05/0.0128, allocations: 19.92 kB / 284 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.01281, allocations: 12 kB / 284 MB, free: 5.879 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.797e-05/0.0129, allocations: 164.6 kB / 284.2 MB, free: 5.707 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.554e-05/0.01294, allocations: 23.84 kB / 284.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.059e-05/0.01297, allocations: 29.95 kB / 284.2 MB, free: 5.648 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.01297, allocations: 4 kB / 284.2 MB, free: 5.645 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.01297, allocations: 4.031 kB / 284.3 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.01297, allocations: 0 / 284.3 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004988/0.01347, allocations: 0.52 MB / 284.8 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.01347, allocations: 0 / 284.8 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.621e-05/0.01357, allocations: 35.97 kB / 284.8 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.224e-05/0.01366, allocations: 51.62 kB / 284.9 MB, free: 4.973 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.01368, allocations: 8.062 kB / 284.9 MB, free: 4.965 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009777/0.01465, allocations: 1.932 MB / 286.8 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.01466, allocations: 3.938 kB / 286.8 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003429/0.015, allocations: 398.5 kB / 287.2 MB, free: 2.488 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.093e-05/0.01507, allocations: 31.88 kB / 287.2 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.01509, allocations: 15.97 kB / 287.2 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.2e-05/0.01517, allocations: 15.98 kB / 287.3 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.01528, allocations: 63.81 kB / 287.3 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.01529, allocations: 8 kB / 287.3 MB, free: 2.355 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.476e-05/0.01539, allocations: 175 kB / 287.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01539, allocations: 0 / 287.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002732/0.01566, allocations: 71.94 kB / 287.6 MB, free: 2.113 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.0007545/0.01642, allocations: 342.9 kB / 287.9 MB, free: 1.867 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000419/0.01684, allocations: 336.4 kB / 288.2 MB, free: 1.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.01684, allocations: 4 kB / 288.2 MB, free: 1.516 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.01703, allocations: 257.4 kB / 288.5 MB, free: 1.242 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.01731, allocations: 52.16 kB / 288.5 MB, free: 1.191 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.01833, allocations: 0.5758 MB / 289.1 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.935e-05/0.01839, allocations: 92.22 kB / 289.2 MB, free: 476 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.737e-05/0.01845, allocations: 29.92 kB / 289.2 MB, free: 448 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.622e-05/0.0185, allocations: 20.5 kB / 289.2 MB, free: 428 kB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.0185, allocations: 0 / 289.2 MB, free: 428 kB / 266.7 MB Notification: Performance of Templates: time 0.006188/0.02469, allocations: 4.064 MB / 293.3 MB, free: 12.4 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.7864361349493265]