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.0008269/0.0008269, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.0007623/0.0007623, allocations: 149.4 kB / 23.93 MB, free: 0.6289 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.8631/0.8631, allocations: 173.4 MB / 200.5 MB, free: 9.426 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.619e-05/2.817e-05, allocations: 2.281 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002531/0.002559, allocations: 2.069 MB / 320.5 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008843/0.003443, allocations: 0.6699 MB / 321.2 MB, free: 3.605 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.469e-05/0.003538, allocations: 4 kB / 321.2 MB, free: 3.602 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000158/0.003696, allocations: 35.59 kB / 321.2 MB, free: 3.566 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.003836, allocations: 83.28 kB / 321.3 MB, free: 3.484 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003309/0.004167, allocations: 111.7 kB / 321.4 MB, free: 3.375 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002415/0.004409, allocations: 283.4 kB / 321.7 MB, free: 3.098 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.00453, allocations: 36.56 kB / 321.7 MB, free: 3.059 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.004712, allocations: 167.6 kB / 321.9 MB, free: 2.895 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001375/0.004849, allocations: 107.7 kB / 322 MB, free: 2.789 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.97e-05/0.004879, allocations: 20 kB / 322 MB, free: 2.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.004988, allocations: 63.95 kB / 322.1 MB, free: 2.707 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.862e-05/0.005057, allocations: 51.83 kB / 322.1 MB, free: 2.656 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.847e-05/0.005125, allocations: 79.81 kB / 322.2 MB, free: 2.578 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000284/0.005409, allocations: 311 kB / 322.5 MB, free: 2.273 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.005413, allocations: 0 / 322.5 MB, free: 2.273 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.005414, allocations: 0 / 322.5 MB, free: 2.273 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.005419, allocations: 0 / 322.5 MB, free: 2.273 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.0007402/0.006159, allocations: 498.8 kB / 323 MB, free: 1.75 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.006211, allocations: 12.92 kB / 323 MB, free: 1.738 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.063e-05/0.006252, allocations: 54.73 kB / 323 MB, free: 1.676 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.513e-05/0.006297, allocations: 24.8 kB / 323.1 MB, free: 1.652 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/0.006539, allocations: 189.4 kB / 323.2 MB, free: 1.441 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.006559, allocations: 16.33 kB / 323.3 MB, free: 1.426 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/0.006592, allocations: 24.33 kB / 323.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.006915, allocations: 231.7 kB / 323.5 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.006929, allocations: 4.172 kB / 323.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.006945, allocations: 12.12 kB / 323.5 MB, free: 1.148 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.006951, allocations: 4 kB / 323.5 MB, free: 1.145 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002732/0.007224, allocations: 195.8 kB / 323.7 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006786/0.007903, allocations: 0.5854 MB / 324.3 MB, free: 328 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000351/0.008254, allocations: 186 kB / 324.5 MB, free: 136 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.008386, allocations: 100.8 kB / 324.6 MB, free: 32 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.008406, allocations: 8.344 kB / 324.6 MB, free: 24 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/0.008647, allocations: 163.1 kB / 324.8 MB, free: 15.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.008649, allocations: 0 / 324.8 MB, free: 15.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001379/0.01003, allocations: 0.9199 MB / 325.7 MB, free: 14.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.01007, allocations: 55.41 kB / 325.7 MB, free: 14.81 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.0102, allocations: 196 kB / 325.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.01022, allocations: 37.7 kB / 326 MB, free: 14.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.84e-05/0.01029, allocations: 144.4 kB / 326.1 MB, free: 14.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.725e-05/0.01033, allocations: 83.3 kB / 326.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.018e-05/0.0104, allocations: 61.69 kB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.709e-05/0.01049, allocations: 334.8 kB / 326.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001706/0.01066, allocations: 133.9 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.01083, allocations: 170 kB / 326.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002704/0.0111, allocations: 251.8 kB / 327.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.01111, allocations: 3.938 kB / 327.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004783/0.01158, allocations: 430.5 kB / 327.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.01162, allocations: 33.7 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.01162, allocations: 4.062 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001823/0.0118, allocations: 76.8 kB / 327.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.01191, allocations: 55.78 kB / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003379/0.01225, allocations: 0.607 MB / 328.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.01238, allocations: 35.98 kB / 328.3 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.597e-05/0.01239, allocations: 16.06 kB / 328.4 MB, free: 12.04 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.718e-05/0.01249, allocations: 137.8 kB / 328.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.048e-05/0.01251, allocations: 19.84 kB / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.108e-05/0.01255, allocations: 29.95 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.01255, allocations: 4 kB / 328.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.01256, allocations: 0 / 328.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.01256, allocations: 0 / 328.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006684/0.01323, allocations: 0.6274 MB / 329.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.01323, allocations: 0 / 329.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.01334, allocations: 39.91 kB / 329.2 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001118/0.01345, allocations: 72.86 kB / 329.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.01347, allocations: 12 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002978/0.01377, allocations: 0.6109 MB / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.01377, allocations: 64 / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005398/0.01431, allocations: 0.5053 MB / 330.4 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.914e-05/0.01437, allocations: 36 kB / 330.4 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.554e-05/0.01439, allocations: 8 kB / 330.5 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.0145, allocations: 27.97 kB / 330.5 MB, free: 9.816 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.336e-05/0.01458, allocations: 43.92 kB / 330.5 MB, free: 9.773 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.01459, allocations: 7.984 kB / 330.5 MB, free: 9.766 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.794e-05/0.01467, allocations: 143.4 kB / 330.7 MB, free: 9.625 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01467, allocations: 0 / 330.7 MB, free: 9.625 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002486/0.01492, allocations: 72 kB / 330.7 MB, free: 9.555 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.0008788/0.0158, allocations: 1.076 MB / 331.8 MB, free: 8.445 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004578/0.01625, allocations: 336.9 kB / 332.1 MB, free: 8.098 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.01626, allocations: 0 / 332.1 MB, free: 8.098 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001738/0.01643, allocations: 131.8 kB / 332.3 MB, free: 7.969 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002709/0.0167, allocations: 54.88 kB / 332.3 MB, free: 7.918 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00259/0.01929, allocations: 2.851 MB / 335.2 MB, free: 4.926 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.33e-05/0.01937, allocations: 133.6 kB / 335.3 MB, free: 4.777 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.932e-05/0.01944, allocations: 25.94 kB / 335.3 MB, free: 4.754 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.568e-05/0.01952, allocations: 60.48 kB / 335.4 MB, free: 4.691 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01952, allocations: 0 / 335.4 MB, free: 4.691 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02204/0.04156, allocations: 6.601 MB / 342 MB, free: 14.25 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.448/7.489, allocations: 11.8 kB / 342 MB, free: 14.23 MB / 314.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] 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: 9.123606437817216]