Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.001646/0.001646, allocations: 84.55 kB / 20.68 MB, free: 1.027 MB / 14.72 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.00181/0.00181, allocations: 165 kB / 23.95 MB, free: 4.156 MB / 14.72 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 1.432/1.432, allocations: 177.1 MB / 204.3 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] 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.OneWayClutch,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.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,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.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 325 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.212e-05/2.354e-05, allocations: 3.656 kB / 325 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003462/0.003485, allocations: 2.205 MB / 327.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.005034, allocations: 0.8311 MB / 328.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.005145, allocations: 2.344 kB / 328.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002612/0.005407, allocations: 57.64 kB / 328.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003039/0.005711, allocations: 114.2 kB / 328.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.00596, allocations: 90.92 kB / 328.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003754/0.006335, allocations: 299.5 kB / 328.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.006472, allocations: 40.08 kB / 328.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000345/0.006817, allocations: 181 kB / 328.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000218/0.007035, allocations: 113 kB / 329 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.866e-05/0.007084, allocations: 21.03 kB / 329 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001846/0.007268, allocations: 81.88 kB / 329.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.341e-05/0.007362, allocations: 54.84 kB / 329.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.007483, allocations: 84.84 kB / 329.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004817/0.007964, allocations: 329.3 kB / 329.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.007969, allocations: 0 / 329.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.00797, allocations: 1.156 kB / 329.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.007975, allocations: 0 / 329.5 MB, free: 13.84 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001119/0.009094, allocations: 0.5228 MB / 330 MB, free: 13.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.009128, allocations: 10.5 kB / 330.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.009311, allocations: 36.89 kB / 330.1 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.009655, allocations: 188.2 kB / 330.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.009681, allocations: 13.25 kB / 330.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.578e-05/0.009727, allocations: 21.16 kB / 330.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005251/0.01025, allocations: 237.6 kB / 330.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.01027, allocations: 1.312 kB / 330.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/0.01029, allocations: 6.625 kB / 330.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.01031, allocations: 8.438 kB / 330.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005066/0.01081, allocations: 178.9 kB / 330.7 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009738/0.01179, allocations: 0.5306 MB / 331.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005951/0.01238, allocations: 194 kB / 331.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.01264, allocations: 94.95 kB / 331.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.01266, allocations: 6.219 kB / 331.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003865/0.01305, allocations: 164 kB / 331.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.663e-06/0.01305, allocations: 0 / 331.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002583/0.01563, allocations: 0.9496 MB / 332.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.01569, allocations: 54.78 kB / 332.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002388/0.01593, allocations: 204 kB / 332.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.01597, allocations: 36.25 kB / 332.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.01607, allocations: 130.2 kB / 333.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.979e-05/0.01617, allocations: 98.27 kB / 333.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.01628, allocations: 59.88 kB / 333.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.01645, allocations: 332.5 kB / 333.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003054/0.01675, allocations: 126.7 kB / 333.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003145/0.01707, allocations: 165.4 kB / 333.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005471/0.01761, allocations: 242.8 kB / 334.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.01761, allocations: 0 / 334.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008853/0.0185, allocations: 420.9 kB / 334.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.15e-05/0.01854, allocations: 35.73 kB / 334.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.01855, allocations: 1.219 kB / 334.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002102/0.01876, allocations: 55.55 kB / 334.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/0.01898, allocations: 55.34 kB / 334.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.02104, allocations: 1.666 MB / 336.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.02131, allocations: 34.08 kB / 336.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.02134, allocations: 7.875 kB / 336.3 MB, free: 8.539 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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.0001801/0.02152, allocations: 150.4 kB / 336.5 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.106e-05/0.02157, allocations: 22.64 kB / 336.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.78e-05/0.02164, allocations: 35.45 kB / 336.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.02164, allocations: 2.5 kB / 336.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.02165, allocations: 1.125 kB / 336.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.02165, allocations: 0 / 336.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001237/0.02289, allocations: 0.5951 MB / 337.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.0229, allocations: 5.156 kB / 337.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002365/0.02313, allocations: 38.88 kB / 337.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001553/0.02329, allocations: 53.52 kB / 337.2 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/0.02332, allocations: 6.062 kB / 337.2 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001739/0.02505, allocations: 1.518 MB / 338.8 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.02505, allocations: 0 / 338.8 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.02617, allocations: 0.5027 MB / 339.3 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.02627, allocations: 36.69 kB / 339.3 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.785e-05/0.02632, allocations: 10.86 kB / 339.3 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002705/0.02659, allocations: 32.25 kB / 339.3 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000199/0.02679, allocations: 75.33 kB / 339.4 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.02681, allocations: 5.375 kB / 339.4 MB, free: 6.012 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001655/0.02697, allocations: 156.8 kB / 339.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.02697, allocations: 0 / 339.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004504/0.02742, allocations: 75.61 kB / 339.6 MB, free: 5.883 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001467/0.02889, allocations: 403.1 kB / 340 MB, free: 5.684 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.02992, allocations: 460.8 kB / 340.5 MB, free: 5.266 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.02992, allocations: 0 / 340.5 MB, free: 5.266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005182/0.03044, allocations: 250.5 kB / 340.7 MB, free: 5.008 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004833/0.03092, allocations: 51.84 kB / 340.8 MB, free: 4.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.03228, allocations: 0.562 MB / 341.3 MB, free: 4.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001659/0.03244, allocations: 142.1 kB / 341.5 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001413/0.03258, allocations: 37.91 kB / 341.5 MB, free: 4.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.353e-05/0.03267, allocations: 24.5 kB / 341.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.03267, allocations: 0 / 341.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of Templates: time 0.01068/0.04335, allocations: 4.516 MB / 346.1 MB, free: 15.69 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.3750489838421345]