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.001418/0.001418, allocations: 107.1 kB / 20.44 MB, free: 1.324 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.002643/0.002643, allocations: 206 kB / 23.72 MB, free: 4.492 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.471/1.471, allocations: 230.5 MB / 257.4 MB, free: 7.785 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.002215/0.002215, allocations: 63.89 kB / 377.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3023, allocations: 53.4 MB / 431.1 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004249/0.3066, allocations: 2.19 MB / 433.3 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.3085, allocations: 0.8258 MB / 434.1 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002101/0.3087, allocations: 3.938 kB / 434.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003263/0.309, allocations: 59.5 kB / 434.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004333/0.3094, allocations: 107.3 kB / 434.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003304/0.3098, allocations: 87.77 kB / 434.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004932/0.3103, allocations: 287.4 kB / 434.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.3104, allocations: 40.56 kB / 434.7 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003524/0.3108, allocations: 139.5 kB / 434.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000267/0.3111, allocations: 123.4 kB / 435 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.345e-05/0.3111, allocations: 24 kB / 435 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000229/0.3113, allocations: 83.97 kB / 435.1 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.3115, allocations: 55.77 kB / 435.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001505/0.3116, allocations: 95.58 kB / 435.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005324/0.3121, allocations: 316.5 kB / 435.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3121, allocations: 0 / 435.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3121, allocations: 0 / 435.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.445e-05/0.3122, allocations: 0 / 435.5 MB, free: 2.02 MB / 334.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.001263/0.3134, allocations: 0.5258 MB / 436.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.3135, allocations: 11.98 kB / 436.1 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.08e-05/0.3135, allocations: 58.67 kB / 436.1 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001799/0.3137, allocations: 32.78 kB / 436.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.3141, allocations: 195.5 kB / 436.3 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.3142, allocations: 12.38 kB / 436.4 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.776e-05/0.3142, allocations: 24.3 kB / 436.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000495/0.3147, allocations: 235.2 kB / 436.6 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.3147, allocations: 0 / 436.6 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/0.3148, allocations: 8 kB / 436.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.3148, allocations: 8 kB / 436.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004887/0.3152, allocations: 175.8 kB / 436.8 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.3163, allocations: 0.5776 MB / 437.4 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006407/0.317, allocations: 211.3 kB / 437.6 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002494/0.3172, allocations: 92.8 kB / 437.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.3173, allocations: 4 kB / 437.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004026/0.3177, allocations: 156 kB / 437.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.874e-06/0.3177, allocations: 0 / 437.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002587/0.3202, allocations: 0.9457 MB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.937e-05/0.3203, allocations: 59.39 kB / 438.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.3206, allocations: 195.2 kB / 439 MB, free: 14.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.3206, allocations: 33.7 kB / 439.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.3207, allocations: 132.5 kB / 439.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.951e-05/0.3208, allocations: 99.2 kB / 439.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.3209, allocations: 61.69 kB / 439.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.3211, allocations: 334.8 kB / 439.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003032/0.3214, allocations: 125.7 kB / 439.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.3217, allocations: 168.8 kB / 440 MB, free: 13.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005092/0.3222, allocations: 242 kB / 440.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3222, allocations: 0 / 440.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008485/0.323, allocations: 415.4 kB / 440.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.939e-05/0.3231, allocations: 33.64 kB / 440.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3231, allocations: 4 kB / 440.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002157/0.3233, allocations: 56.77 kB / 440.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/0.3235, allocations: 51.91 kB / 440.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001962/0.3255, allocations: 1.695 MB / 442.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.3258, allocations: 31.95 kB / 442.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/0.3258, allocations: 12 kB / 442.5 MB, free: 10.63 MB / 350.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.0001637/0.326, allocations: 145.8 kB / 442.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.658e-05/0.326, allocations: 19.86 kB / 442.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.173e-05/0.3261, allocations: 30.64 kB / 442.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3261, allocations: 4 kB / 442.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3261, allocations: 3.938 kB / 442.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.3261, allocations: 0 / 442.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.3272, allocations: 0.6315 MB / 443.3 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3272, allocations: 7.938 kB / 443.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.3275, allocations: 43.97 kB / 443.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000142/0.3276, allocations: 48.83 kB / 443.4 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.3276, allocations: 11.92 kB / 443.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0016/0.3292, allocations: 1.53 MB / 445 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3292, allocations: 0 / 445 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.3303, allocations: 0.513 MB / 445.5 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.867e-05/0.3304, allocations: 31.88 kB / 445.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.926e-05/0.3304, allocations: 8 kB / 445.5 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.3307, allocations: 39.95 kB / 445.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.3308, allocations: 71.88 kB / 445.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.085e-05/0.3309, allocations: 12.02 kB / 445.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.331, allocations: 148.9 kB / 445.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.331, allocations: 0 / 445.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004193/0.3314, allocations: 75.94 kB / 445.8 MB, free: 7.062 MB / 350.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.002711/0.3341, allocations: 1.315 MB / 447.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009613/0.3351, allocations: 475.3 kB / 447.6 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3351, allocations: 0 / 447.6 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004771/0.3356, allocations: 258.5 kB / 447.9 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004499/0.336, allocations: 54.73 kB / 447.9 MB, free: 5.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004612/0.3406, allocations: 2.941 MB / 450.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001535/0.3408, allocations: 146.1 kB / 451 MB, free: 1.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001231/0.3409, allocations: 25.94 kB / 451 MB, free: 1.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.341, allocations: 71.41 kB / 451.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.341, allocations: 0 / 451.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04199/0.383, allocations: 7.638 MB / 458.7 MB, free: 10.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/13.3, allocations: 6.281 kB / 458.8 MB, free: 10.12 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaIn.phi in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 32.7526653050445]