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.0008097/0.0008097, allocations: 84 kB / 21.43 MB, free: 3.129 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.004018/0.004018, allocations: 149.4 kB / 24.68 MB, free: 9.422 MB / 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 0.8606/0.8606, allocations: 173.4 MB / 201.2 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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.863e-06/1.863e-06, allocations: 3.938 kB / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.817e-05/3.004e-05, allocations: 9.516 kB / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00318/0.00321, allocations: 2.065 MB / 321.7 MB, free: 3.777 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.004472, allocations: 0.6815 MB / 322.4 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.765e-05/0.00457, allocations: 11.94 kB / 322.4 MB, free: 3.078 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.004731, allocations: 23.73 kB / 322.5 MB, free: 3.055 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.004871, allocations: 79.28 kB / 322.5 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003129/0.005184, allocations: 115.7 kB / 322.6 MB, free: 2.863 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000259/0.005443, allocations: 279.4 kB / 322.9 MB, free: 2.59 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.005563, allocations: 40.56 kB / 323 MB, free: 2.547 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001935/0.005757, allocations: 171.6 kB / 323.1 MB, free: 2.379 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.005891, allocations: 99.75 kB / 323.2 MB, free: 2.281 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.732e-05/0.005918, allocations: 20 kB / 323.2 MB, free: 2.262 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.808e-05/0.006016, allocations: 71.89 kB / 323.3 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.426e-05/0.00608, allocations: 55.8 kB / 323.4 MB, free: 2.137 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.759e-05/0.006148, allocations: 75.83 kB / 323.4 MB, free: 2.062 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002958/0.006444, allocations: 303.1 kB / 323.7 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.006448, allocations: 0 / 323.7 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.006449, allocations: 0 / 323.7 MB, free: 1.766 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.006454, allocations: 0 / 323.7 MB, free: 1.766 MB / 282.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.0006787/0.007132, allocations: 0.491 MB / 324.2 MB, free: 1.238 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.007165, allocations: 12.03 kB / 324.2 MB, free: 1.227 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.467e-05/0.007219, allocations: 28.78 kB / 324.3 MB, free: 1.199 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.00748, allocations: 185.4 kB / 324.4 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.885e-05/0.007499, allocations: 16.33 kB / 324.5 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.572e-05/0.007534, allocations: 24.33 kB / 324.5 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.007852, allocations: 235.8 kB / 324.7 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.007864, allocations: 8.125 kB / 324.7 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.00788, allocations: 4.375 kB / 324.7 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.007886, allocations: 7.938 kB / 324.7 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002632/0.00815, allocations: 199.7 kB / 324.9 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006617/0.008811, allocations: 0.5509 MB / 325.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.009169, allocations: 194.4 kB / 325.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000129/0.009298, allocations: 92.81 kB / 325.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.009316, allocations: 416 / 325.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000218/0.009534, allocations: 168.9 kB / 325.9 MB, free: 15.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.223e-06/0.009535, allocations: 0 / 325.9 MB, free: 15.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001381/0.01092, allocations: 0.9277 MB / 326.9 MB, free: 14.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.01095, allocations: 59.39 kB / 326.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.01108, allocations: 192 kB / 327.1 MB, free: 14.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.0111, allocations: 29.7 kB / 327.1 MB, free: 14.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.023e-05/0.01117, allocations: 140.5 kB / 327.3 MB, free: 14.01 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.039e-05/0.01122, allocations: 91.2 kB / 327.4 MB, free: 13.92 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.991e-05/0.01129, allocations: 61.7 kB / 327.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.7e-05/0.01136, allocations: 330.8 kB / 327.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.01153, allocations: 137.9 kB / 327.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.01169, allocations: 174 kB / 328 MB, free: 13.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002719/0.01197, allocations: 247.8 kB / 328.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.01197, allocations: 0 / 328.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004936/0.01246, allocations: 434.5 kB / 328.7 MB, free: 12.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.01249, allocations: 29.7 kB / 328.7 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.0125, allocations: 0 / 328.7 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001756/0.01267, allocations: 68.81 kB / 328.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.01279, allocations: 55.91 kB / 328.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000343/0.01314, allocations: 0.6225 MB / 329.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.01326, allocations: 32.06 kB / 329.5 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.01328, allocations: 8 kB / 329.5 MB, free: 11.64 MB / 298.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 9.907e-05/0.01338, allocations: 141.9 kB / 329.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.179e-05/0.0134, allocations: 27.77 kB / 329.7 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.677e-05/0.01344, allocations: 25.97 kB / 329.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.01344, allocations: 4 kB / 329.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.01345, allocations: 3.938 kB / 329.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.01345, allocations: 3.984 kB / 329.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006427/0.01409, allocations: 0.5851 MB / 330.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.0141, allocations: 0 / 330.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.01421, allocations: 39.97 kB / 330.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000115/0.01433, allocations: 64.77 kB / 330.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.01434, allocations: 19.98 kB / 330.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000296/0.01464, allocations: 0.6069 MB / 331 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01464, allocations: 0 / 331 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005468/0.01519, allocations: 0.5093 MB / 331.5 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.915e-05/0.01524, allocations: 31.92 kB / 331.6 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.01527, allocations: 12.06 kB / 331.6 MB, free: 9.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.01538, allocations: 27.91 kB / 331.6 MB, free: 9.453 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.082e-05/0.01545, allocations: 35.92 kB / 331.7 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.01546, allocations: 8 kB / 331.7 MB, free: 9.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.711e-05/0.01554, allocations: 147.4 kB / 331.8 MB, free: 9.266 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01554, allocations: 0 / 331.8 MB, free: 9.266 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002207/0.01576, allocations: 67.94 kB / 331.9 MB, free: 9.199 MB / 298.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.0001793/0.01594, allocations: 135.4 kB / 332 MB, free: 9.055 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004684/0.01641, allocations: 333.1 kB / 332.3 MB, free: 8.711 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.01641, allocations: 0 / 332.3 MB, free: 8.711 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001813/0.01659, allocations: 135.8 kB / 332.5 MB, free: 8.578 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.01686, allocations: 46.5 kB / 332.5 MB, free: 8.535 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008547/0.01772, allocations: 0.5859 MB / 333.1 MB, free: 7.914 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.512e-05/0.0178, allocations: 125.6 kB / 333.2 MB, free: 7.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.867e-05/0.01785, allocations: 28.44 kB / 333.2 MB, free: 7.742 MB / 298.7 MB Notification: Performance of SimCode: time 8.32e-07/0.01785, allocations: 0 / 333.2 MB, free: 7.742 MB / 298.7 MB Notification: Performance of Templates: time 0.004369/0.02222, allocations: 3.925 MB / 337.2 MB, free: 3.828 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] 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.8514224691316485]