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.0008063/0.0008063, allocations: 76.06 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.000847/0.000847, allocations: 149.1 kB / 23.93 MB, free: 0.6328 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.881/0.881, allocations: 173.4 MB / 200.5 MB, free: 9.422 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.623e-06/1.623e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.553e-05/1.715e-05, allocations: 5.516 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002214/0.002231, allocations: 2.072 MB / 320.5 MB, free: 4.277 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009199/0.003151, allocations: 0.6738 MB / 321.2 MB, free: 3.598 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.003252, allocations: 4 kB / 321.2 MB, free: 3.594 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001832/0.003435, allocations: 31.66 kB / 321.2 MB, free: 3.562 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001508/0.003586, allocations: 83.28 kB / 321.3 MB, free: 3.48 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003629/0.003949, allocations: 115.7 kB / 321.4 MB, free: 3.367 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002365/0.004185, allocations: 279.4 kB / 321.7 MB, free: 3.094 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.004303, allocations: 40.56 kB / 321.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.004472, allocations: 163.6 kB / 321.9 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.004609, allocations: 103.7 kB / 322 MB, free: 2.789 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.495e-05/0.004644, allocations: 20 kB / 322 MB, free: 2.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.393e-05/0.004738, allocations: 71.94 kB / 322.1 MB, free: 2.699 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.972e-05/0.004808, allocations: 51.83 kB / 322.1 MB, free: 2.648 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.22e-05/0.00488, allocations: 83.8 kB / 322.2 MB, free: 2.566 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002939/0.005174, allocations: 299.1 kB / 322.5 MB, free: 2.273 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.005176, allocations: 0 / 322.5 MB, free: 2.273 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.005177, allocations: 0 / 322.5 MB, free: 2.273 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.005183, 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.000737/0.00592, allocations: 0.4941 MB / 323 MB, free: 1.746 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.00596, allocations: 16.92 kB / 323 MB, free: 1.73 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.173e-05/0.006002, allocations: 54.73 kB / 323 MB, free: 1.668 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.596e-05/0.006048, allocations: 24.8 kB / 323.1 MB, free: 1.645 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002083/0.006256, allocations: 181.4 kB / 323.2 MB, free: 1.441 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.006276, allocations: 20.33 kB / 323.3 MB, free: 1.422 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.141e-05/0.006307, allocations: 24.33 kB / 323.3 MB, free: 1.398 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003059/0.006613, allocations: 231.8 kB / 323.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.006626, allocations: 192 / 323.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.006644, allocations: 16.11 kB / 323.5 MB, free: 1.145 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.006649, allocations: 8 kB / 323.5 MB, free: 1.137 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002668/0.006916, allocations: 195.8 kB / 323.7 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006434/0.007559, allocations: 0.5776 MB / 324.3 MB, free: 328 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003445/0.007904, allocations: 190.4 kB / 324.5 MB, free: 128 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/0.008035, allocations: 102.6 kB / 324.6 MB, free: 24 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.008052, allocations: 4.344 kB / 324.6 MB, free: 20 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002428/0.008295, allocations: 163.1 kB / 324.8 MB, free: 15.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.412e-06/0.008296, allocations: 0 / 324.8 MB, free: 15.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001343/0.009639, allocations: 0.9315 MB / 325.7 MB, free: 14.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.009674, allocations: 55.41 kB / 325.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.0098, allocations: 200 kB / 325.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.00982, allocations: 29.7 kB / 326 MB, free: 14.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.557e-05/0.009885, allocations: 136.5 kB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.689e-05/0.009932, allocations: 87.28 kB / 326.2 MB, free: 14.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.444e-05/0.009997, allocations: 61.69 kB / 326.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.03e-05/0.01009, allocations: 338.8 kB / 326.6 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.01025, allocations: 130 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.01042, allocations: 170 kB / 326.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002775/0.0107, allocations: 247.8 kB / 327.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.0107, 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.0004835/0.01118, allocations: 434.5 kB / 327.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.01121, allocations: 33.77 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.01121, allocations: 4 kB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001616/0.01137, allocations: 68.81 kB / 327.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.01148, allocations: 59.78 kB / 327.7 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000464/0.01195, allocations: 0.6109 MB / 328.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/0.01217, allocations: 36.05 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/0.01219, allocations: 12 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 0.0001379/0.01233, allocations: 137.8 kB / 328.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.126e-05/0.01236, allocations: 19.84 kB / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.757e-05/0.01241, allocations: 29.95 kB / 328.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.01241, allocations: 4 kB / 328.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.01242, allocations: 0 / 328.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.01242, allocations: 0 / 328.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000796/0.01322, allocations: 0.6235 MB / 329.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.01322, allocations: 0 / 329.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.0134, allocations: 51.84 kB / 329.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001637/0.01356, allocations: 72.91 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.01358, allocations: 12 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004155/0.014, allocations: 0.607 MB / 329.9 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.014, allocations: 0 / 329.9 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007123/0.01471, allocations: 0.5054 MB / 330.4 MB, free: 9.879 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.156e-05/0.01477, allocations: 35.86 kB / 330.4 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.733e-05/0.0148, allocations: 8 kB / 330.5 MB, free: 9.836 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.01492, allocations: 32.03 kB / 330.5 MB, free: 9.805 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.224e-05/0.015, allocations: 31.88 kB / 330.5 MB, free: 9.773 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.01502, allocations: 15.98 kB / 330.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001129/0.01514, allocations: 139.4 kB / 330.7 MB, free: 9.621 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01514, allocations: 0 / 330.7 MB, free: 9.621 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003716/0.01551, allocations: 71.98 kB / 330.7 MB, free: 9.551 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.001067/0.01657, allocations: 1.073 MB / 331.8 MB, free: 8.445 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005943/0.01717, allocations: 336.8 kB / 332.1 MB, free: 8.098 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01717, allocations: 0 / 332.1 MB, free: 8.098 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002931/0.01746, allocations: 139.8 kB / 332.3 MB, free: 7.961 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003076/0.01777, allocations: 51.91 kB / 332.3 MB, free: 7.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00352/0.02129, allocations: 2.854 MB / 335.2 MB, free: 4.918 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001024/0.02139, allocations: 133.6 kB / 335.3 MB, free: 4.77 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.143e-05/0.02147, allocations: 21.94 kB / 335.3 MB, free: 4.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.047e-05/0.02155, allocations: 64.48 kB / 335.4 MB, free: 4.684 MB / 298.7 MB Notification: Performance of SimCode: time 8.72e-07/0.02155, allocations: 0 / 335.4 MB, free: 4.684 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0227/0.04425, allocations: 6.596 MB / 342 MB, free: 14.24 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.88/7.924, allocations: 14.77 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.csv","/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] "Error: Could not read variable inertiaIn.phi in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,inertiaIn.phi,inertiaIn.w,oneWayClutch.phi_rel,oneWayClutch.w_rel Variables in the result:time,inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel [Calling sys.exit(0), Time elapsed: 9.67609941214323]