Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.000855/0.000855, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001219/0.001219, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8751/0.8751, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.319e-05/2.545e-05, allocations: 2.844 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003608/0.003634, allocations: 2.25 MB / 326.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.004643, allocations: 0.8139 MB / 327.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002619/0.004905, allocations: 4 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002221/0.005127, allocations: 47.58 kB / 327.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002475/0.005374, allocations: 115.1 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001949/0.005569, allocations: 91.75 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002185/0.005788, allocations: 283.2 kB / 328.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.005903, allocations: 48.5 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.006104, allocations: 167.6 kB / 328.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.00624, allocations: 99.75 kB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.712e-05/0.006267, allocations: 20 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.006372, allocations: 87.78 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.529e-05/0.006427, allocations: 55.83 kB / 328.6 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.517e-05/0.006483, allocations: 83.8 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.006759, allocations: 319 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.205e-06/0.006761, allocations: 0 / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.006762, allocations: 0 / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.006766, allocations: 0 / 329 MB, free: 11.41 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005802/0.007347, allocations: 481.2 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.00739, allocations: 11.98 kB / 329.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.777e-05/0.007438, allocations: 54.73 kB / 329.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.007554, allocations: 36.78 kB / 329.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000267/0.007821, allocations: 185.4 kB / 329.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.007839, allocations: 20.75 kB / 329.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.077e-05/0.00787, allocations: 20.33 kB / 329.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002649/0.008135, allocations: 211 kB / 329.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.00815, allocations: 192 / 329.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.008167, allocations: 20.06 kB / 330 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.008174, allocations: 4 kB / 330 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001951/0.008369, allocations: 159.2 kB / 330.1 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007013/0.00907, allocations: 0.6665 MB / 330.8 MB, free: 9.441 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002452/0.009316, allocations: 138.7 kB / 330.9 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.626e-05/0.009402, allocations: 72.77 kB / 331 MB, free: 9.223 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.00942, allocations: 8.328 kB / 331 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.843e-05/0.009438, allocations: 30.56 kB / 331 MB, free: 9.176 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.774e-06/0.00944, allocations: 0 / 331 MB, free: 9.176 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001165/0.0106, allocations: 0.7677 MB / 331.8 MB, free: 8.352 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.301e-05/0.01064, allocations: 55.41 kB / 331.9 MB, free: 8.285 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.01079, allocations: 218.8 kB / 332.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.01081, allocations: 29.7 kB / 332.1 MB, free: 8.027 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.435e-05/0.01087, allocations: 144.5 kB / 332.2 MB, free: 7.883 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.914e-05/0.01091, allocations: 75.38 kB / 332.3 MB, free: 7.809 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.449e-05/0.01097, allocations: 53.69 kB / 332.4 MB, free: 7.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.82e-05/0.01104, allocations: 326.8 kB / 332.7 MB, free: 7.422 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.322e-05/0.01114, allocations: 71.95 kB / 332.8 MB, free: 7.352 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.01124, allocations: 103.4 kB / 332.9 MB, free: 7.238 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.01141, allocations: 163.3 kB / 333 MB, free: 7.066 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.01141, allocations: 4 kB / 333 MB, free: 7.062 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002965/0.01171, allocations: 270.1 kB / 333.3 MB, free: 6.789 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.01172, allocations: 7.938 kB / 333.3 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.01173, allocations: 4 kB / 333.3 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001488/0.01188, allocations: 52.83 kB / 333.4 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.934e-05/0.01196, allocations: 43.92 kB / 333.4 MB, free: 6.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001148/0.01311, allocations: 1.703 MB / 335.1 MB, free: 4.859 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.261e-05/0.0132, allocations: 20.02 kB / 335.1 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.01321, allocations: 8 kB / 335.1 MB, free: 4.832 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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.062e-05/0.0133, allocations: 148.9 kB / 335.3 MB, free: 4.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.725e-05/0.01333, allocations: 19.86 kB / 335.3 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.88e-05/0.01336, allocations: 25.97 kB / 335.3 MB, free: 4.641 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.01336, allocations: 3.938 kB / 335.3 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.01336, allocations: 3.938 kB / 335.3 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.01337, allocations: 3.984 kB / 335.3 MB, free: 4.629 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005313/0.0139, allocations: 0.5502 MB / 335.9 MB, free: 4.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.0139, allocations: 8.062 kB / 335.9 MB, free: 4.012 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.851e-05/0.01399, allocations: 35.91 kB / 335.9 MB, free: 3.977 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.91e-05/0.01408, allocations: 56.81 kB / 336 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.01409, allocations: 8 kB / 336 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000965/0.01506, allocations: 1.546 MB / 337.5 MB, free: 2.246 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01506, allocations: 0 / 337.5 MB, free: 2.246 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003881/0.01544, allocations: 425.2 kB / 337.9 MB, free: 1.809 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.144e-05/0.0155, allocations: 35.92 kB / 338 MB, free: 1.773 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.01551, allocations: 0 / 338 MB, free: 1.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.799e-05/0.0156, allocations: 27.91 kB / 338 MB, free: 1.746 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.0157, allocations: 71.91 kB / 338.1 MB, free: 1.676 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.595e-06/0.01571, allocations: 8.062 kB / 338.1 MB, free: 1.668 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.495e-05/0.0158, allocations: 160.6 kB / 338.2 MB, free: 1.512 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0158, allocations: 3.938 kB / 338.2 MB, free: 1.508 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002441/0.01605, allocations: 68 kB / 338.3 MB, free: 1.441 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001038/0.01709, allocations: 1.213 MB / 339.5 MB, free: 324 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000399/0.01748, allocations: 318.4 kB / 339.8 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.01749, allocations: 0 / 339.8 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001736/0.01766, allocations: 222.8 kB / 340.1 MB, free: 15.76 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002472/0.01791, allocations: 47.28 kB / 340.1 MB, free: 15.72 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/0.02004, allocations: 2.581 MB / 342.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.81e-05/0.02013, allocations: 134.2 kB / 342.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.885e-05/0.0202, allocations: 29.92 kB / 342.8 MB, free: 12.83 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.383e-05/0.02028, allocations: 68.47 kB / 342.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.02028, allocations: 0 / 342.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02497/0.04524, allocations: 7.116 MB / 350 MB, free: 5.703 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.686/7.731, allocations: 7.328 kB / 350 MB, free: 5.699 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_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_OneWayClutchDisengaged.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_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.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi [Calling sys.exit(0), Time elapsed: 9.517438647337258]