Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009235/0.0009235, allocations: 80.8 kB / 22.29 MB, free: 2.199 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.002016/0.002016, allocations: 163.9 kB / 25.7 MB, free: 8.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9347/0.9347, allocations: 158.6 MB / 187.6 MB, free: 2.797 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 251.5 MB, free: 7.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.908e-05/2.062e-05, allocations: 6.25 kB / 251.5 MB, free: 7.277 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003644/0.003665, allocations: 2.225 MB / 253.7 MB, free: 5.039 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.005257, allocations: 0.7369 MB / 254.5 MB, free: 4.293 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.005396, allocations: 3.938 kB / 254.5 MB, free: 4.289 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000215/0.005611, allocations: 39.66 kB / 254.5 MB, free: 4.25 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002236/0.005835, allocations: 63.41 kB / 254.6 MB, free: 4.188 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004151/0.00625, allocations: 107.7 kB / 254.7 MB, free: 4.082 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003353/0.006585, allocations: 279.2 kB / 255 MB, free: 3.805 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.006722, allocations: 46.52 kB / 255 MB, free: 3.762 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002688/0.006991, allocations: 155.6 kB / 255.2 MB, free: 3.609 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002058/0.007197, allocations: 91.75 kB / 255.2 MB, free: 3.52 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.891e-05/0.007236, allocations: 20 kB / 255.3 MB, free: 3.5 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001519/0.007387, allocations: 63.95 kB / 255.3 MB, free: 3.438 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.402e-05/0.007471, allocations: 55.81 kB / 255.4 MB, free: 3.383 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.883e-05/0.00756, allocations: 75.81 kB / 255.5 MB, free: 3.309 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003407/0.007901, allocations: 219.2 kB / 255.7 MB, free: 3.094 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.007905, allocations: 8 kB / 255.7 MB, free: 3.086 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.007906, allocations: 0 / 255.7 MB, free: 3.086 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.007911, allocations: 0 / 255.7 MB, free: 3.086 MB / 234.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.0006715/0.008582, allocations: 424.2 kB / 256.1 MB, free: 2.648 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.008619, allocations: 11.98 kB / 256.1 MB, free: 2.637 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.443e-05/0.008693, allocations: 36.84 kB / 256.1 MB, free: 2.602 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/0.008923, allocations: 161.4 kB / 256.3 MB, free: 2.418 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/0.008953, allocations: 16.88 kB / 256.3 MB, free: 2.398 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.313e-05/0.008996, allocations: 24.38 kB / 256.3 MB, free: 2.375 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002865/0.009282, allocations: 187.7 kB / 256.5 MB, free: 2.176 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.0093, allocations: 8.141 kB / 256.5 MB, free: 2.168 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.009317, allocations: 4.375 kB / 256.5 MB, free: 2.164 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.009327, allocations: 7.938 kB / 256.5 MB, free: 2.156 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001467/0.009474, allocations: 69.02 kB / 256.6 MB, free: 2.09 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008257/0.0103, allocations: 0.493 MB / 257.1 MB, free: 1.57 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002332/0.01053, allocations: 93.31 kB / 257.2 MB, free: 1.473 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.075e-05/0.01059, allocations: 36.84 kB / 257.2 MB, free: 1.434 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.01061, allocations: 4 kB / 257.2 MB, free: 1.43 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.01064, allocations: 38.56 kB / 257.3 MB, free: 1.383 MB / 234.7 MB Notification: Performance of pre-optimization done (n=18): time 1.764e-06/0.01064, allocations: 0 / 257.3 MB, free: 1.383 MB / 234.7 MB Notification: Performance of matching and sorting (n=20): time 0.001183/0.01182, allocations: 0.5538 MB / 257.8 MB, free: 0.7734 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.01186, allocations: 55.41 kB / 257.9 MB, free: 0.707 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.012, allocations: 182.5 kB / 258.1 MB, free: 0.5156 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.01202, allocations: 29.7 kB / 258.1 MB, free: 492 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.373e-05/0.01209, allocations: 140.3 kB / 258.2 MB, free: 348 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.691e-05/0.01215, allocations: 71.41 kB / 258.3 MB, free: 276 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.405e-05/0.01224, allocations: 57.56 kB / 258.3 MB, free: 212 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.01235, allocations: 334.8 kB / 258.7 MB, free: 15.87 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.268e-05/0.01241, allocations: 27.98 kB / 258.7 MB, free: 15.84 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.973e-05/0.0125, allocations: 72.67 kB / 258.8 MB, free: 15.76 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002899/0.01279, allocations: 100.7 kB / 258.9 MB, free: 15.65 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.01279, allocations: 0 / 258.9 MB, free: 15.65 MB / 250.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002892/0.01308, allocations: 175.9 kB / 259 MB, free: 15.47 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.0131, allocations: 11.94 kB / 259.1 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.01311, allocations: 0 / 259.1 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001678/0.01328, allocations: 52.88 kB / 259.1 MB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.0134, allocations: 35.98 kB / 259.1 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003769/0.01378, allocations: 0.5679 MB / 259.7 MB, free: 14.78 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.0139, allocations: 15.98 kB / 259.7 MB, free: 14.76 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.01392, allocations: 8 kB / 259.7 MB, free: 14.75 MB / 250.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 9.87e-05/0.01402, allocations: 128.5 kB / 259.9 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.458e-05/0.01406, allocations: 15.98 kB / 259.9 MB, free: 14.6 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.349e-05/0.0141, allocations: 29.8 kB / 259.9 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.01411, allocations: 4.031 kB / 259.9 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.01411, allocations: 0 / 259.9 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.01411, allocations: 4 kB / 259.9 MB, free: 14.56 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005304/0.01464, allocations: 353 kB / 260.3 MB, free: 14.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.01464, allocations: 0 / 260.3 MB, free: 14.18 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001374/0.01478, allocations: 27.98 kB / 260.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00013/0.01491, allocations: 60.8 kB / 260.3 MB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.01493, allocations: 8.047 kB / 260.3 MB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003351/0.01526, allocations: 0.564 MB / 260.9 MB, free: 13.5 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.01526, allocations: 3.984 kB / 260.9 MB, free: 13.49 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003434/0.01561, allocations: 289.8 kB / 261.2 MB, free: 13.18 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.134e-05/0.01567, allocations: 19.89 kB / 261.2 MB, free: 13.16 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.292e-05/0.0157, allocations: 8 kB / 261.2 MB, free: 13.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.01583, allocations: 15.98 kB / 261.2 MB, free: 13.14 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.25e-05/0.01589, allocations: 31.92 kB / 261.3 MB, free: 13.11 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.0159, allocations: 4 kB / 261.3 MB, free: 13.11 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.973e-05/0.01596, allocations: 49.33 kB / 261.3 MB, free: 13.05 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01596, allocations: 3.938 kB / 261.3 MB, free: 13.05 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003289/0.01629, allocations: 63.94 kB / 261.4 MB, free: 12.99 MB / 250.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.0002031/0.0165, allocations: 108.3 kB / 261.5 MB, free: 12.87 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004086/0.0169, allocations: 124.7 kB / 261.6 MB, free: 12.75 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.01691, allocations: 4.125 kB / 261.6 MB, free: 12.75 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.01703, allocations: 77.86 kB / 261.7 MB, free: 12.67 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001931/0.01723, allocations: 40.53 kB / 261.7 MB, free: 12.63 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007877/0.01801, allocations: 0.4983 MB / 262.2 MB, free: 12.1 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.544e-05/0.01806, allocations: 83.97 kB / 262.3 MB, free: 12 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.263e-05/0.01811, allocations: 17.95 kB / 262.3 MB, free: 11.98 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.824e-05/0.01819, allocations: 75.36 kB / 262.4 MB, free: 11.9 MB / 250.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01819, allocations: 0 / 262.4 MB, free: 11.9 MB / 250.7 MB Notification: Performance of Templates: time 0.00471/0.0229, allocations: 3.126 MB / 265.5 MB, free: 8.793 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.7187231830321252]