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.0008223/0.0008223, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.003456/0.003456, allocations: 158.6 kB / 24.7 MB, free: 8.891 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.8279/0.8279, allocations: 177.1 MB / 205 MB, free: 5.723 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.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.383e-06/1.383e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.658e-05/2.796e-05, allocations: 4.672 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00256/0.002588, allocations: 2.198 MB / 328 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.003599, allocations: 0.8412 MB / 328.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.00371, allocations: 7.938 kB / 328.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002376/0.003948, allocations: 39.59 kB / 328.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000233/0.004181, allocations: 115.1 kB / 329 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.004377, allocations: 95.73 kB / 329.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000258/0.004635, allocations: 303.2 kB / 329.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.004761, allocations: 44.22 kB / 329.4 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002477/0.005009, allocations: 179.6 kB / 329.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.005158, allocations: 115.7 kB / 329.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/0.005188, allocations: 23.98 kB / 329.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.005302, allocations: 75.92 kB / 329.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.15e-05/0.005373, allocations: 51.83 kB / 329.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.966e-05/0.005443, allocations: 83.8 kB / 330 MB, free: 11.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003247/0.005768, allocations: 338.9 kB / 330.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.005771, allocations: 0 / 330.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.005773, allocations: 0 / 330.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.005778, allocations: 0 / 330.3 MB, free: 10.93 MB / 298.7 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.0007634/0.006541, allocations: 0.5093 MB / 330.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.006575, allocations: 11.97 kB / 330.8 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001241/0.006699, allocations: 40.73 kB / 330.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.006998, allocations: 202.7 kB / 331.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.007019, allocations: 12.38 kB / 331.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.361e-05/0.007052, allocations: 24.36 kB / 331.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003414/0.007394, allocations: 223.5 kB / 331.3 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.007412, allocations: 4.188 kB / 331.3 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/0.00743, allocations: 8.375 kB / 331.3 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.007439, allocations: 7.938 kB / 331.3 MB, free: 9.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002729/0.007712, allocations: 183.8 kB / 331.5 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006442/0.008356, allocations: 0.5275 MB / 332 MB, free: 9.078 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003805/0.008737, allocations: 190.3 kB / 332.2 MB, free: 8.883 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.009008, allocations: 95.25 kB / 332.3 MB, free: 8.789 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.009028, allocations: 11.94 kB / 332.3 MB, free: 8.777 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002368/0.009265, allocations: 159.3 kB / 332.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 2.494e-06/0.009267, allocations: 0 / 332.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.001455/0.01072, allocations: 0.9383 MB / 333.4 MB, free: 7.617 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.01076, allocations: 59.34 kB / 333.5 MB, free: 7.547 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.0109, allocations: 202.8 kB / 333.7 MB, free: 7.336 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.01092, allocations: 33.7 kB / 333.7 MB, free: 7.297 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.205e-05/0.01099, allocations: 136.5 kB / 333.8 MB, free: 7.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.01103, allocations: 91.22 kB / 333.9 MB, free: 7.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.499e-05/0.0111, allocations: 57.7 kB / 334 MB, free: 7.008 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.79e-05/0.01119, allocations: 334.8 kB / 334.3 MB, free: 6.672 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.01135, allocations: 125.6 kB / 334.4 MB, free: 6.543 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.01152, allocations: 170.1 kB / 334.6 MB, free: 6.359 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002685/0.01179, allocations: 246 kB / 334.8 MB, free: 6.102 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.01179, allocations: 0 / 334.8 MB, free: 6.102 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004796/0.01227, allocations: 423.3 kB / 335.3 MB, free: 5.668 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.212e-05/0.0123, allocations: 33.7 kB / 335.3 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.01231, allocations: 0 / 335.3 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001634/0.01247, allocations: 64.83 kB / 335.4 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.01258, allocations: 47.91 kB / 335.4 MB, free: 5.516 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001227/0.01381, allocations: 1.667 MB / 337.1 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.01395, allocations: 40.06 kB / 337.1 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.01397, allocations: 8 kB / 337.1 MB, free: 3.699 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 (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.0001119/0.01408, allocations: 145.7 kB / 337.3 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.533e-05/0.0141, allocations: 23.86 kB / 337.3 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.357e-05/0.01414, allocations: 26.66 kB / 337.3 MB, free: 3.496 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.01414, allocations: 0 / 337.3 MB, free: 3.496 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.01414, allocations: 7.984 kB / 337.3 MB, free: 3.488 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.01415, allocations: 4 kB / 337.3 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006545/0.0148, allocations: 0.5893 MB / 337.9 MB, free: 2.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.0148, allocations: 3.938 kB / 337.9 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.01492, allocations: 43.91 kB / 338 MB, free: 2.809 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001011/0.01502, allocations: 60.84 kB / 338 MB, free: 2.746 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.01503, allocations: 12 kB / 338 MB, free: 2.734 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.01618, allocations: 1.496 MB / 339.5 MB, free: 1.137 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.01618, allocations: 8.016 kB / 339.5 MB, free: 1.129 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005527/0.01674, allocations: 0.5088 MB / 340 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.157e-05/0.0168, allocations: 35.88 kB / 340.1 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.01682, allocations: 8 kB / 340.1 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.01693, allocations: 35.95 kB / 340.1 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.01705, allocations: 75.8 kB / 340.2 MB, free: 460 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.01706, allocations: 8 kB / 340.2 MB, free: 452 kB / 298.7 MB Notification: Performance of sorting global known variables: time 9.582e-05/0.01716, allocations: 151 kB / 340.3 MB, free: 300 kB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01716, allocations: 4 kB / 340.3 MB, free: 296 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002812/0.01744, allocations: 72 kB / 340.4 MB, free: 224 kB / 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 (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.0006928/0.01813, allocations: 393.1 kB / 340.8 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006248/0.01876, allocations: 455.5 kB / 341.2 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.01876, allocations: 0 / 341.2 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002444/0.019, allocations: 254.5 kB / 341.5 MB, free: 15.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.01929, allocations: 52.11 kB / 341.5 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008213/0.02011, allocations: 0.5952 MB / 342.1 MB, free: 14.56 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.851e-05/0.0202, allocations: 138.1 kB / 342.3 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.042e-05/0.02026, allocations: 32.48 kB / 342.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of SimCode: time 6.61e-07/0.02026, allocations: 0 / 342.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of Templates: time 0.004956/0.02522, allocations: 4.485 MB / 346.8 MB, free: 9.914 MB / 314.7 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.587705012410879]