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.0009118/0.0009118, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.0009766/0.0009766, allocations: 163.9 kB / 25.61 MB, free: 8.582 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.9467/0.9467, allocations: 177.1 MB / 206.1 MB, free: 4.477 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.633e-06/1.633e-06, allocations: 0 / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.219e-05/2.382e-05, allocations: 3.188 kB / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002897/0.00292, allocations: 2.337 MB / 276.5 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00098/0.0039, allocations: 0.8268 MB / 277.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.673e-05/0.003997, allocations: 0.5 kB / 277.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.004226, allocations: 60.09 kB / 277.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002061/0.004432, allocations: 109.7 kB / 277.5 MB, free: 1.09 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001453/0.004577, allocations: 83.81 kB / 277.6 MB, free: 1.008 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002239/0.004801, allocations: 283.2 kB / 277.9 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.004925, allocations: 52.55 kB / 277.9 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002101/0.005135, allocations: 171.5 kB / 278.1 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.00529, allocations: 103.7 kB / 278.2 MB, free: 416 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.099e-05/0.005321, allocations: 24 kB / 278.2 MB, free: 392 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.005425, allocations: 79.91 kB / 278.3 MB, free: 312 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.85e-05/0.005484, allocations: 55.81 kB / 278.3 MB, free: 256 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.917e-05/0.005543, allocations: 79.77 kB / 278.4 MB, free: 176 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002706/0.005813, allocations: 235.2 kB / 278.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.005815, allocations: 0 / 278.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.005817, allocations: 0 / 278.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.005822, allocations: 3.938 kB / 278.7 MB, free: 15.94 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.0005579/0.006379, allocations: 0.5659 MB / 279.2 MB, free: 15.33 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.006411, allocations: 8.031 kB / 279.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.006533, allocations: 48.8 kB / 279.3 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.006759, allocations: 213.5 kB / 279.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.006781, allocations: 16.75 kB / 279.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.703e-05/0.006808, allocations: 20.38 kB / 279.5 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.006997, allocations: 168.6 kB / 279.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.007012, allocations: 12.14 kB / 279.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.007026, allocations: 4.375 kB / 279.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.007034, allocations: 7.938 kB / 279.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.857e-05/0.007132, allocations: 79.23 kB / 279.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006634/0.007796, allocations: 0.6697 MB / 280.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001971/0.007993, allocations: 115 kB / 280.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.883e-05/0.008041, allocations: 35.67 kB / 280.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.008058, allocations: 7.984 kB / 280.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.008079, allocations: 41.39 kB / 280.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 1.683e-06/0.008081, allocations: 0 / 280.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008871/0.008968, allocations: 0.5829 MB / 281.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/0.008993, allocations: 59.34 kB / 281.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.009116, allocations: 248 kB / 281.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.00913, allocations: 29.7 kB / 281.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.489e-05/0.009205, allocations: 187.2 kB / 281.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.00925, allocations: 83.31 kB / 281.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-05/0.009309, allocations: 59.27 kB / 281.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.009418, allocations: 0.5001 MB / 282.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.095e-05/0.009459, allocations: 31.97 kB / 282.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.009669, allocations: 74.7 kB / 282.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.009777, allocations: 111.3 kB / 282.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.009778, allocations: 0 / 282.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002086/0.009987, allocations: 203.2 kB / 282.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.01, allocations: 8 kB / 282.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.01001, allocations: 0 / 282.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001199/0.01013, allocations: 43.66 kB / 282.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.588e-05/0.01021, allocations: 35.92 kB / 282.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/0.01133, allocations: 2.123 MB / 285 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.975e-05/0.01141, allocations: 12 kB / 285 MB, free: 9.152 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.01142, allocations: 15.98 kB / 285 MB, free: 9.137 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.749e-05/0.01151, allocations: 170.9 kB / 285.2 MB, free: 8.961 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.809e-05/0.01155, allocations: 27.86 kB / 285.2 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.963e-05/0.01158, allocations: 21.97 kB / 285.2 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.01158, allocations: 7.938 kB / 285.3 MB, free: 8.902 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.01158, allocations: 4.031 kB / 285.3 MB, free: 8.898 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.01158, allocations: 3.984 kB / 285.3 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004559/0.01204, allocations: 484.2 kB / 285.7 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.01204, allocations: 0 / 285.7 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.31e-05/0.01214, allocations: 31.92 kB / 285.8 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-05/0.01222, allocations: 51.58 kB / 285.8 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.01223, allocations: 12.05 kB / 285.8 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.0134, allocations: 1.882 MB / 287.7 MB, free: 6.277 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.01341, allocations: 4 kB / 287.7 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003088/0.01372, allocations: 383.1 kB / 288.1 MB, free: 5.867 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.922e-05/0.01376, allocations: 35.83 kB / 288.1 MB, free: 5.832 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.01378, allocations: 12.03 kB / 288.1 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.93e-05/0.01386, allocations: 15.92 kB / 288.2 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.353e-05/0.01396, allocations: 59.83 kB / 288.2 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.01397, allocations: 7.984 kB / 288.2 MB, free: 5.738 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.587e-05/0.01404, allocations: 171.3 kB / 288.4 MB, free: 5.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01404, allocations: 0 / 288.4 MB, free: 5.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002588/0.0143, allocations: 79.86 kB / 288.5 MB, free: 5.492 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.0007499/0.01505, allocations: 352.2 kB / 288.8 MB, free: 5.258 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003289/0.01538, allocations: 309 kB / 289.1 MB, free: 4.938 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.01538, allocations: 0 / 289.1 MB, free: 4.938 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.01555, allocations: 264.3 kB / 289.4 MB, free: 4.66 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.01582, allocations: 48.16 kB / 289.4 MB, free: 4.613 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008915/0.01671, allocations: 0.5798 MB / 290 MB, free: 3.992 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.154e-05/0.01676, allocations: 80.33 kB / 290.1 MB, free: 3.895 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.477e-05/0.01683, allocations: 25.94 kB / 290.1 MB, free: 3.871 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.808e-05/0.01693, allocations: 106.2 kB / 290.2 MB, free: 3.766 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.01693, allocations: 0 / 290.2 MB, free: 3.766 MB / 266.7 MB Notification: Performance of Templates: time 0.006283/0.02321, allocations: 4.233 MB / 294.4 MB, free: 15.59 MB / 282.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: 3.0085825957357883]