Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002487/0.002487, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002718/0.002718, allocations: 149.1 kB / 24.26 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.572/1.572, allocations: 173.4 MB / 200.8 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.223e-06/1.223e-06, allocations: 0 / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.184e-05/2.306e-05, allocations: 2.312 kB / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003935/0.003958, allocations: 2.162 MB / 269.5 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.005369, allocations: 0.6817 MB / 270.1 MB, free: 3.902 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.005469, allocations: 11.88 kB / 270.2 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.005643, allocations: 27.72 kB / 270.2 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001912/0.005834, allocations: 71.41 kB / 270.3 MB, free: 3.793 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000387/0.006221, allocations: 123.6 kB / 270.4 MB, free: 3.672 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003712/0.006592, allocations: 283.4 kB / 270.6 MB, free: 3.395 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.006725, allocations: 36.56 kB / 270.7 MB, free: 3.355 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002773/0.007002, allocations: 163.6 kB / 270.8 MB, free: 3.195 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002176/0.00722, allocations: 103.7 kB / 270.9 MB, free: 3.094 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.001e-05/0.00727, allocations: 20 kB / 271 MB, free: 3.074 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.007418, allocations: 67.95 kB / 271 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.999e-05/0.007508, allocations: 51.83 kB / 271.1 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.007632, allocations: 83.8 kB / 271.2 MB, free: 2.875 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004525/0.008085, allocations: 307 kB / 271.5 MB, free: 2.574 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.008088, allocations: 4 kB / 271.5 MB, free: 2.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.008089, allocations: 0 / 271.5 MB, free: 2.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.008095, allocations: 0 / 271.5 MB, free: 2.57 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001097/0.009192, allocations: 0.5905 MB / 272.1 MB, free: 1.938 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.009228, allocations: 12.03 kB / 272.1 MB, free: 1.926 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.009333, allocations: 40.8 kB / 272.1 MB, free: 1.887 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.009639, allocations: 176.3 kB / 272.3 MB, free: 1.688 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.009667, allocations: 16.36 kB / 272.3 MB, free: 1.672 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.317e-05/0.00972, allocations: 32.33 kB / 272.3 MB, free: 1.641 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005042/0.01022, allocations: 233.4 kB / 272.6 MB, free: 1.398 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.01024, allocations: 192 / 272.6 MB, free: 1.398 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.371e-05/0.01026, allocations: 4.375 kB / 272.6 MB, free: 1.395 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.01028, allocations: 11.94 kB / 272.6 MB, free: 1.383 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004575/0.01074, allocations: 175.8 kB / 272.7 MB, free: 1.211 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.01189, allocations: 0.6816 MB / 273.4 MB, free: 500 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005548/0.01245, allocations: 187 kB / 273.6 MB, free: 300 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002142/0.01266, allocations: 83.66 kB / 273.7 MB, free: 212 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.01269, allocations: 4 kB / 273.7 MB, free: 208 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000359/0.01305, allocations: 169.1 kB / 273.9 MB, free: 24 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.432e-06/0.01305, allocations: 0 / 273.9 MB, free: 24 kB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.00227/0.01532, allocations: 0.885 MB / 274.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/0.01537, allocations: 63.33 kB / 274.8 MB, free: 15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002733/0.01565, allocations: 263.5 kB / 275.1 MB, free: 14.72 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.797e-05/0.01569, allocations: 33.7 kB / 275.1 MB, free: 14.68 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.01583, allocations: 195.1 kB / 275.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.01594, allocations: 99.12 kB / 275.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/0.01607, allocations: 75.34 kB / 275.5 MB, free: 14.31 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002813/0.01635, allocations: 0.504 MB / 276 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.01663, allocations: 134 kB / 276.1 MB, free: 13.65 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003284/0.01696, allocations: 188.8 kB / 276.3 MB, free: 13.45 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007175/0.01768, allocations: 251.1 kB / 276.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.01768, allocations: 0 / 276.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009137/0.0186, allocations: 437.4 kB / 276.9 MB, free: 12.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.513e-05/0.01864, allocations: 29.7 kB / 277 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.01865, allocations: 4 kB / 277 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002669/0.01892, allocations: 75.64 kB / 277.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002086/0.01912, allocations: 43.92 kB / 277.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007776/0.0199, allocations: 0.8936 MB / 278 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.02011, allocations: 20.05 kB / 278 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.874e-05/0.02014, allocations: 16 kB / 278 MB, free: 11.61 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: 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 (32): * Single equations (assignments): 30 * 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.0001774/0.02032, allocations: 180.5 kB / 278.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.059e-05/0.02038, allocations: 35.83 kB / 278.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.022e-05/0.02045, allocations: 25.97 kB / 278.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.02046, allocations: 4 kB / 278.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.02046, allocations: 0 / 278.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.02047, allocations: 3.984 kB / 278.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001186/0.02165, allocations: 0.6538 MB / 278.9 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.02165, allocations: 0 / 278.9 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002074/0.02186, allocations: 31.98 kB / 279 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001837/0.02205, allocations: 67.64 kB / 279 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.02207, allocations: 11.94 kB / 279 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007471/0.02282, allocations: 0.8858 MB / 279.9 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.02282, allocations: 4 kB / 279.9 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.02393, allocations: 0.547 MB / 280.5 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.02403, allocations: 35.88 kB / 280.5 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.628e-05/0.02408, allocations: 8.094 kB / 280.5 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.0243, allocations: 19.92 kB / 280.5 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.02442, allocations: 43.91 kB / 280.6 MB, free: 8.941 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.083e-05/0.02444, allocations: 7.938 kB / 280.6 MB, free: 8.934 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001848/0.02462, allocations: 191.3 kB / 280.8 MB, free: 8.746 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02462, allocations: 4 kB / 280.8 MB, free: 8.742 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003638/0.02499, allocations: 68 kB / 280.8 MB, free: 8.676 MB / 266.7 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 (20): * Single equations (assignments): 17 * 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.0002735/0.02526, allocations: 131.1 kB / 281 MB, free: 8.535 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008304/0.02609, allocations: 336.6 kB / 281.3 MB, free: 8.184 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.02609, allocations: 0 / 281.3 MB, free: 8.184 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003637/0.02646, allocations: 143.5 kB / 281.4 MB, free: 8.039 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004271/0.02689, allocations: 59.5 kB / 281.5 MB, free: 7.984 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.02817, allocations: 0.5773 MB / 282.1 MB, free: 7.375 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001488/0.02832, allocations: 129.6 kB / 282.2 MB, free: 7.227 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.015e-05/0.02841, allocations: 21.94 kB / 282.2 MB, free: 7.207 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.359e-05/0.02848, allocations: 20.5 kB / 282.2 MB, free: 7.188 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.02848, allocations: 0 / 282.2 MB, free: 7.188 MB / 266.7 MB Notification: Performance of Templates: time 0.008977/0.03745, allocations: 3.622 MB / 285.9 MB, free: 3.609 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.57977873692289]