Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001279/0.001279, allocations: 117.3 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001398/0.001398, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 230.2 MB / 254.5 MB, free: 15.41 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 55.91 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09753/0.09932, allocations: 53.32 MB / 426.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004254/0.1036, allocations: 2.288 MB / 428.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.1052, allocations: 0.8685 MB / 429.8 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.1053, allocations: 7.875 kB / 429.8 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002899/0.1056, allocations: 47.64 kB / 429.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002879/0.1059, allocations: 115.2 kB / 430 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002485/0.1062, allocations: 83.83 kB / 430.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003859/0.1066, allocations: 295.3 kB / 430.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.1067, allocations: 36.39 kB / 430.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002654/0.107, allocations: 135.5 kB / 430.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002293/0.1072, allocations: 139.4 kB / 430.7 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.345e-05/0.1072, allocations: 24 kB / 430.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001596/0.1074, allocations: 79.97 kB / 430.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.857e-05/0.1075, allocations: 51.83 kB / 430.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000127/0.1076, allocations: 127.3 kB / 430.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004378/0.1081, allocations: 310.8 kB / 431.2 MB, free: 412 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1081, allocations: 3.938 kB / 431.2 MB, free: 408 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1081, allocations: 0 / 431.2 MB, free: 408 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1081, allocations: 0 / 431.2 MB, free: 408 kB / 350.1 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.001148/0.1092, allocations: 0.5856 MB / 431.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.1093, allocations: 12.03 kB / 431.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.747e-05/0.1093, allocations: 50.73 kB / 431.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001688/0.1095, allocations: 40.73 kB / 431.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004043/0.1099, allocations: 252.8 kB / 432.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.1099, allocations: 12.38 kB / 432.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.11, allocations: 28.3 kB / 432.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00047/0.1105, allocations: 231.1 kB / 432.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.1105, allocations: 0 / 432.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.1105, allocations: 15.98 kB / 432.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.1105, allocations: 4 kB / 432.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004746/0.111, allocations: 171.9 kB / 432.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.112, allocations: 0.6526 MB / 433.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005719/0.1126, allocations: 190.4 kB / 433.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002428/0.1128, allocations: 92.81 kB / 433.6 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.1128, allocations: 3.984 kB / 433.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000381/0.1132, allocations: 171.2 kB / 433.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.483e-06/0.1132, allocations: 0 / 433.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.002561/0.1158, allocations: 1.163 MB / 434.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.1158, allocations: 63.34 kB / 435 MB, free: 12.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/0.1161, allocations: 202.8 kB / 435.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.1161, allocations: 29.7 kB / 435.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.1162, allocations: 136.5 kB / 435.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.155e-05/0.1163, allocations: 95.2 kB / 435.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.1164, allocations: 61.69 kB / 435.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1165, allocations: 330.8 kB / 435.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.1168, allocations: 103.9 kB / 435.9 MB, free: 11.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002941/0.1171, allocations: 149 kB / 436 MB, free: 11.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004861/0.1176, allocations: 246.1 kB / 436.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1176, allocations: 0 / 436.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.00078/0.1184, allocations: 373.8 kB / 436.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.371e-05/0.1184, allocations: 35.72 kB / 436.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.1184, allocations: 0 / 436.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002168/0.1186, allocations: 64.88 kB / 436.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002061/0.1189, allocations: 51.89 kB / 436.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002074/0.1209, allocations: 1.803 MB / 438.6 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.1212, allocations: 32.03 kB / 438.6 MB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.461e-05/0.1212, allocations: 12 kB / 438.6 MB, free: 8.453 MB / 366.1 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.0001726/0.1214, allocations: 141.7 kB / 438.8 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.771e-05/0.1214, allocations: 27.86 kB / 438.8 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.068e-05/0.1215, allocations: 26.56 kB / 438.8 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1215, allocations: 4 kB / 438.8 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.1215, allocations: 3.938 kB / 438.8 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.1215, allocations: 3.984 kB / 438.8 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.1227, allocations: 0.6869 MB / 439.5 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.1227, allocations: 0 / 439.5 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002166/0.1229, allocations: 43.91 kB / 439.6 MB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001476/0.123, allocations: 56.83 kB / 439.6 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.1231, allocations: 4 kB / 439.6 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001929/0.125, allocations: 1.653 MB / 441.3 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.125, allocations: 3.984 kB / 441.3 MB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.1261, allocations: 0.5016 MB / 441.8 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001358/0.1262, allocations: 113 kB / 441.9 MB, free: 4.941 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.662e-05/0.1263, allocations: 11.94 kB / 441.9 MB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002409/0.1265, allocations: 35.89 kB / 441.9 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.1267, allocations: 71.89 kB / 442 MB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.1267, allocations: 4 kB / 442 MB, free: 4.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001576/0.1268, allocations: 155.6 kB / 442.2 MB, free: 4.668 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1268, allocations: 0 / 442.2 MB, free: 4.668 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00042/0.1273, allocations: 79.92 kB / 442.2 MB, free: 4.59 MB / 366.1 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.002503/0.1298, allocations: 1.295 MB / 443.5 MB, free: 3.395 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.1308, allocations: 429.8 kB / 444 MB, free: 2.949 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1308, allocations: 0 / 444 MB, free: 2.949 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004664/0.1313, allocations: 262.4 kB / 444.2 MB, free: 2.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004365/0.1317, allocations: 59.61 kB / 444.3 MB, free: 2.625 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1953/0.327, allocations: 2.824 MB / 447.1 MB, free: 23.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000203/0.3272, allocations: 0.7442 MB / 447.8 MB, free: 22.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001686/0.3274, allocations: 23.73 kB / 447.9 MB, free: 22.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.3275, allocations: 74.36 kB / 447.9 MB, free: 22.78 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3275, allocations: 0 / 447.9 MB, free: 22.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03687/0.3644, allocations: 7.172 MB / 455.1 MB, free: 22.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.39, allocations: 5.5 kB / 455.1 MB, free: 22.04 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 15.049916624091566]