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.0007804/0.0007804, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008126/0.0008126, allocations: 170 kB / 23.95 MB, free: 0.6094 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.8391/0.8391, allocations: 177.1 MB / 204.3 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.045e-06/3.045e-06, allocations: 4 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.738e-05/2.043e-05, allocations: 13.25 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002355/0.002376, allocations: 2.183 MB / 326.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008986/0.003274, allocations: 0.8411 MB / 327.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.226e-05/0.003367, allocations: 3.938 kB / 327.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.003582, allocations: 39.64 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002167/0.003799, allocations: 115.1 kB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001725/0.003971, allocations: 95.75 kB / 327.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002307/0.004202, allocations: 303.3 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.004315, allocations: 48.16 kB / 328.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002266/0.004541, allocations: 179.6 kB / 328.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.004681, allocations: 107.7 kB / 328.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.945e-05/0.004711, allocations: 24 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.004815, allocations: 79.86 kB / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.962e-05/0.004875, allocations: 55.75 kB / 328.6 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.964e-05/0.004944, allocations: 87.8 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002833/0.005228, allocations: 327 kB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.00523, allocations: 4 kB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.005231, allocations: 0 / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.005236, allocations: 0 / 329 MB, free: 11.46 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.0006649/0.005901, allocations: 0.5173 MB / 329.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.005937, allocations: 12.03 kB / 329.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.837e-05/0.005975, allocations: 54.73 kB / 329.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.006082, allocations: 36.78 kB / 329.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/0.006323, allocations: 199 kB / 329.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.006343, allocations: 12.38 kB / 329.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.006373, allocations: 16.38 kB / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002921/0.006665, allocations: 227.5 kB / 330.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.006678, allocations: 192 / 330.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.006697, allocations: 20.11 kB / 330.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.006703, allocations: 4 kB / 330.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002576/0.00696, allocations: 179.8 kB / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006094/0.00757, allocations: 0.5698 MB / 330.9 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003445/0.007914, allocations: 195.3 kB / 331 MB, free: 9.301 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.008039, allocations: 92.81 kB / 331.1 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.008056, allocations: 4 kB / 331.1 MB, free: 9.203 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000226/0.008282, allocations: 175.1 kB / 331.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 2.044e-06/0.008284, allocations: 0 / 331.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.001358/0.009642, allocations: 0.9267 MB / 332.2 MB, free: 8.039 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.88e-05/0.009671, allocations: 59.34 kB / 332.3 MB, free: 7.969 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.009813, allocations: 211.1 kB / 332.5 MB, free: 7.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.009832, allocations: 29.7 kB / 332.5 MB, free: 7.715 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.108e-05/0.009893, allocations: 144.5 kB / 332.7 MB, free: 7.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.593e-05/0.009939, allocations: 87.28 kB / 332.8 MB, free: 7.484 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-05/0.01, allocations: 61.69 kB / 332.8 MB, free: 7.418 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.524e-05/0.01008, allocations: 330.8 kB / 333.1 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.01023, allocations: 129.6 kB / 333.3 MB, free: 6.953 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.01039, allocations: 162.3 kB / 333.4 MB, free: 6.777 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002738/0.01066, allocations: 250 kB / 333.7 MB, free: 6.516 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.01067, allocations: 0 / 333.7 MB, free: 6.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004473/0.01111, allocations: 411.3 kB / 334.1 MB, free: 6.094 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.01114, allocations: 33.7 kB / 334.1 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.01115, allocations: 3.984 kB / 334.1 MB, free: 6.051 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001455/0.01129, allocations: 60.89 kB / 334.2 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.0114, allocations: 43.91 kB / 334.2 MB, free: 5.945 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/0.01254, allocations: 1.699 MB / 335.9 MB, free: 4.133 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.01266, allocations: 36.06 kB / 335.9 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.01268, allocations: 11.94 kB / 336 MB, free: 4.086 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 9.574e-05/0.01277, allocations: 141.8 kB / 336.1 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.559e-05/0.0128, allocations: 23.86 kB / 336.1 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.01283, allocations: 30.66 kB / 336.1 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.01283, allocations: 0 / 336.1 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.01283, allocations: 0 / 336.1 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.01284, allocations: 11.98 kB / 336.2 MB, free: 3.871 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006477/0.01348, allocations: 0.6277 MB / 336.8 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.01349, allocations: 3.938 kB / 336.8 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.0136, allocations: 51.89 kB / 336.8 MB, free: 3.137 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.862e-05/0.01369, allocations: 44.84 kB / 336.9 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.01371, allocations: 15.98 kB / 336.9 MB, free: 3.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000886/0.01459, allocations: 1.534 MB / 338.4 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.01459, allocations: 0 / 338.4 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005501/0.01514, allocations: 0.5048 MB / 338.9 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.723e-05/0.0152, allocations: 36 kB / 339 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.01522, allocations: 8 kB / 339 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.01533, allocations: 31.95 kB / 339 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.01544, allocations: 71.86 kB / 339.1 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.01546, allocations: 11.94 kB / 339.1 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.734e-05/0.01554, allocations: 155.4 kB / 339.2 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01554, allocations: 4 kB / 339.3 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002516/0.0158, allocations: 72 kB / 339.3 MB, free: 0.5195 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 (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.001269/0.01706, allocations: 1.317 MB / 340.6 MB, free: 15.32 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000534/0.0176, allocations: 460.3 kB / 341.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.0176, allocations: 4.125 kB / 341.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002376/0.01784, allocations: 262.4 kB / 341.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.01811, allocations: 51.27 kB / 341.4 MB, free: 14.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.02056, allocations: 2.857 MB / 344.3 MB, free: 11.53 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.847e-05/0.02065, allocations: 142.2 kB / 344.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.91e-05/0.02073, allocations: 21.94 kB / 344.4 MB, free: 11.35 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.977e-05/0.02082, allocations: 72.47 kB / 344.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of SimCode: time 5.91e-07/0.02082, allocations: 0 / 344.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01949/0.04032, allocations: 7.8 MB / 352.3 MB, free: 3.559 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.448/7.488, allocations: 16.8 kB / 352.3 MB, free: 3.547 MB / 314.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] 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: 9.091816331259906]