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.001016/0.001016, allocations: 87.67 kB / 21.19 MB, free: 3.371 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.001009/0.001009, allocations: 156.5 kB / 24.55 MB, free: 16 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 1.003/1.003, allocations: 177 MB / 204.8 MB, free: 5.605 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 2.595e-06/2.595e-06, allocations: 0 / 272.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.474e-05/4.734e-05, allocations: 9.203 kB / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00518/0.005228, allocations: 2.368 MB / 275.3 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.00703, allocations: 0.8334 MB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001792/0.007209, allocations: 4 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003164/0.007526, allocations: 63.44 kB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004038/0.007929, allocations: 111.2 kB / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002976/0.008227, allocations: 79.77 kB / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003802/0.008607, allocations: 287.3 kB / 276.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.008785, allocations: 47.38 kB / 276.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003886/0.009173, allocations: 179.5 kB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002477/0.009421, allocations: 99.75 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.796e-05/0.009469, allocations: 24 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001854/0.009654, allocations: 83.89 kB / 277.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.826e-05/0.009733, allocations: 55.77 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.096e-05/0.009824, allocations: 75.83 kB / 277.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004291/0.01025, allocations: 243.1 kB / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.01026, allocations: 0 / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01026, allocations: 0 / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.01027, 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.0008616/0.01113, allocations: 0.5582 MB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.01118, allocations: 15.98 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000229/0.01141, allocations: 48.78 kB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.01177, allocations: 216.8 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.01181, allocations: 12.75 kB / 278.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.722e-05/0.01186, allocations: 24.33 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003699/0.01223, allocations: 180.6 kB / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.01225, allocations: 192 / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.418e-05/0.01228, allocations: 12.38 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.01229, allocations: 11.94 kB / 278.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002462/0.01254, allocations: 95.22 kB / 278.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.01371, allocations: 0.7042 MB / 279.3 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003683/0.01408, allocations: 116 kB / 279.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.01419, allocations: 47.66 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.01421, allocations: 4 kB / 279.4 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.01424, allocations: 33.39 kB / 279.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 2.064e-06/0.01424, allocations: 3.938 kB / 279.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001825/0.01607, allocations: 0.6502 MB / 280.1 MB, free: 10 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.01611, allocations: 59.34 kB / 280.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/0.01634, allocations: 247.1 kB / 280.4 MB, free: 9.676 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.01637, allocations: 33.7 kB / 280.5 MB, free: 9.637 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.01648, allocations: 187.2 kB / 280.7 MB, free: 9.449 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.078e-05/0.01655, allocations: 75.38 kB / 280.7 MB, free: 9.375 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.487e-05/0.01664, allocations: 67.3 kB / 280.8 MB, free: 9.301 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.01679, allocations: 0.4962 MB / 281.3 MB, free: 8.793 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.01691, allocations: 39.97 kB / 281.3 MB, free: 8.754 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.01704, allocations: 86.7 kB / 281.4 MB, free: 8.652 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.01726, allocations: 126.6 kB / 281.5 MB, free: 8.512 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.01726, allocations: 0 / 281.5 MB, free: 8.512 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004141/0.01768, allocations: 217 kB / 281.7 MB, free: 8.289 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.0177, allocations: 4 kB / 281.8 MB, free: 8.285 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.0177, allocations: 4.062 kB / 281.8 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002167/0.01792, allocations: 51.59 kB / 281.8 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.01806, allocations: 35.98 kB / 281.8 MB, free: 8.191 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001825/0.01989, allocations: 2.157 MB / 284 MB, free: 5.918 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.02004, allocations: 23.95 kB / 284 MB, free: 5.895 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.02006, allocations: 8 kB / 284 MB, free: 5.887 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 0.0001285/0.02019, allocations: 164.6 kB / 284.2 MB, free: 5.715 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.676e-05/0.02026, allocations: 23.91 kB / 284.2 MB, free: 5.691 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.801e-05/0.0203, allocations: 25.95 kB / 284.2 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.02031, allocations: 4 kB / 284.2 MB, free: 5.656 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.02031, allocations: 3.938 kB / 284.2 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.02032, allocations: 0 / 284.2 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008002/0.02112, allocations: 0.5239 MB / 284.8 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.02112, allocations: 0 / 284.8 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.02128, allocations: 39.91 kB / 284.8 MB, free: 5.031 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001518/0.02144, allocations: 47.66 kB / 284.9 MB, free: 4.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.02146, allocations: 7.984 kB / 284.9 MB, free: 4.973 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001508/0.02297, allocations: 1.928 MB / 286.8 MB, free: 2.922 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.02297, allocations: 7.922 kB / 286.8 MB, free: 2.914 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008003/0.02377, allocations: 398.6 kB / 287.2 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.626e-05/0.02386, allocations: 43.78 kB / 287.2 MB, free: 2.453 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/0.02389, allocations: 8 kB / 287.2 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.02403, allocations: 8 kB / 287.2 MB, free: 2.438 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/0.02419, allocations: 71.88 kB / 287.3 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.0242, allocations: 4 kB / 287.3 MB, free: 2.363 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001325/0.02433, allocations: 179 kB / 287.5 MB, free: 2.188 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-07/0.02433, allocations: 0 / 287.5 MB, free: 2.188 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004415/0.02478, allocations: 71.94 kB / 287.6 MB, free: 2.117 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.001059/0.02584, allocations: 341.6 kB / 287.9 MB, free: 1.875 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005614/0.0264, allocations: 344.4 kB / 288.2 MB, free: 1.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.0264, allocations: 0 / 288.2 MB, free: 1.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002939/0.02669, allocations: 261.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.0004331/0.02713, allocations: 39.97 kB / 288.5 MB, free: 1.203 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001519/0.02864, allocations: 0.58 MB / 289.1 MB, free: 0.582 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.341e-05/0.02874, allocations: 88.22 kB / 289.2 MB, free: 488 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.68e-05/0.02884, allocations: 25.94 kB / 289.2 MB, free: 464 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.313e-05/0.02891, allocations: 28.48 kB / 289.2 MB, free: 436 kB / 266.7 MB Notification: Performance of SimCode: time 8.81e-07/0.02891, allocations: 0 / 289.2 MB, free: 436 kB / 266.7 MB Notification: Performance of Templates: time 0.00917/0.03808, allocations: 3.822 MB / 293.1 MB, free: 12.65 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: 3.2095190812833607]