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.001144/0.001144, allocations: 76.36 kB / 20.67 MB, free: 3.895 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.001174/0.001174, 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.8864/0.8864, allocations: 177 MB / 204.1 MB, free: 5.707 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.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 1.462e-06/1.462e-06, allocations: 0 / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.667e-05/1.813e-05, allocations: 3.125 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002589/0.002607, allocations: 2.197 MB / 326.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008996/0.003507, allocations: 0.8334 MB / 327.5 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.925e-05/0.003596, allocations: 7.938 kB / 327.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002106/0.003807, allocations: 47.62 kB / 327.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002123/0.004019, allocations: 115.1 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001703/0.004189, allocations: 91.75 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002313/0.00442, allocations: 299.3 kB / 328.1 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.004531, allocations: 48.22 kB / 328.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002148/0.004745, allocations: 179.5 kB / 328.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.00488, allocations: 111.7 kB / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.771e-05/0.004908, allocations: 20 kB / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.005008, allocations: 79.89 kB / 328.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.873e-05/0.005067, allocations: 59.77 kB / 328.6 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.493e-05/0.005132, allocations: 79.81 kB / 328.6 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002814/0.005413, allocations: 334.9 kB / 329 MB, free: 11.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.005415, allocations: 4 kB / 329 MB, free: 11.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.005416, allocations: 0 / 329 MB, free: 11.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.00542, allocations: 0 / 329 MB, free: 11.36 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0006497/0.00607, allocations: 0.518 MB / 329.5 MB, free: 10.81 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.006102, allocations: 11.98 kB / 329.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.796e-05/0.00614, allocations: 54.73 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.932e-05/0.00624, allocations: 32.78 kB / 329.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.006476, allocations: 187.4 kB / 329.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.006495, allocations: 16.38 kB / 329.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.006524, allocations: 20.38 kB / 329.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002842/0.006808, allocations: 231.5 kB / 330 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.00682, allocations: 192 / 330 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.006836, allocations: 8.125 kB / 330 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.006841, allocations: 4 kB / 330 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002671/0.007108, allocations: 179.9 kB / 330.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006053/0.007713, allocations: 0.5776 MB / 330.8 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003351/0.008049, allocations: 194.3 kB / 331 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.008177, allocations: 92.75 kB / 331.1 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.008194, allocations: 8 kB / 331.1 MB, free: 9.105 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002222/0.008416, allocations: 167.2 kB / 331.2 MB, free: 8.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.283e-06/0.008417, allocations: 0 / 331.2 MB, free: 8.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.001351/0.009768, allocations: 0.929 MB / 332.2 MB, free: 7.945 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.009796, allocations: 55.41 kB / 332.2 MB, free: 7.879 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.009929, allocations: 203.1 kB / 332.4 MB, free: 7.668 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.009948, allocations: 33.7 kB / 332.5 MB, free: 7.629 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.256e-05/0.01001, allocations: 144.5 kB / 332.6 MB, free: 7.484 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.769e-05/0.01006, allocations: 91.27 kB / 332.7 MB, free: 7.395 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.273e-05/0.01012, allocations: 57.7 kB / 332.7 MB, free: 7.332 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.54e-05/0.0102, allocations: 334.8 kB / 333.1 MB, free: 6.996 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.01035, allocations: 125.6 kB / 333.2 MB, free: 6.867 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004013/0.01076, allocations: 166.3 kB / 333.4 MB, free: 6.688 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002724/0.01103, allocations: 250 kB / 333.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.01103, allocations: 0 / 333.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004621/0.01149, allocations: 411.4 kB / 334 MB, free: 6.004 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.01152, allocations: 37.69 kB / 334 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.01152, allocations: 0 / 334 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001371/0.01166, allocations: 52.91 kB / 334.1 MB, free: 5.906 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.01177, allocations: 55.89 kB / 334.2 MB, free: 5.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/0.01288, allocations: 1.695 MB / 335.8 MB, free: 4.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001366/0.01302, allocations: 31.95 kB / 335.9 MB, free: 4.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.836e-05/0.01304, allocations: 15.94 kB / 335.9 MB, free: 3.992 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 (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 9.756e-05/0.01314, allocations: 141.8 kB / 336 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.01316, allocations: 27.8 kB / 336.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.953e-05/0.01319, allocations: 26.66 kB / 336.1 MB, free: 3.789 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.01319, allocations: 4 kB / 336.1 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.0132, allocations: 3.984 kB / 336.1 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.0132, allocations: 4 kB / 336.1 MB, free: 3.777 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006612/0.01386, allocations: 0.6355 MB / 336.7 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.01386, allocations: 0 / 336.7 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.01398, allocations: 39.97 kB / 336.8 MB, free: 3.051 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.897e-05/0.01407, allocations: 56.77 kB / 336.8 MB, free: 2.992 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.01408, allocations: 8 kB / 336.8 MB, free: 2.984 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008809/0.01496, allocations: 1.538 MB / 338.4 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01496, allocations: 400 / 338.4 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005608/0.01552, allocations: 0.5049 MB / 338.9 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.625e-05/0.01558, allocations: 35.92 kB / 338.9 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.34e-05/0.0156, allocations: 11.98 kB / 338.9 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.01571, allocations: 23.97 kB / 338.9 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.01583, allocations: 71.86 kB / 339 MB, free: 0.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.01584, allocations: 15.94 kB / 339 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.277e-05/0.01594, allocations: 151.4 kB / 339.2 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01594, allocations: 0 / 339.2 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002756/0.01621, allocations: 79.98 kB / 339.3 MB, free: 436 kB / 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 (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.001352/0.01756, allocations: 1.316 MB / 340.6 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005166/0.01808, allocations: 455.7 kB / 341 MB, free: 14.73 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.01808, allocations: 4.125 kB / 341 MB, free: 14.73 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.01832, allocations: 258.5 kB / 341.3 MB, free: 14.46 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.01858, allocations: 44.77 kB / 341.3 MB, free: 14.42 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002421/0.021, allocations: 2.868 MB / 344.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.148e-05/0.02108, allocations: 138.2 kB / 344.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.274e-05/0.02115, allocations: 25.88 kB / 344.3 MB, free: 11.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.325e-05/0.02123, allocations: 84.41 kB / 344.4 MB, free: 11.15 MB / 314.7 MB Notification: Performance of SimCode: time 3.21e-07/0.02123, allocations: 0 / 344.4 MB, free: 11.15 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02102/0.04226, allocations: 7.797 MB / 352.2 MB, free: 3.418 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.696/7.738, allocations: 0 / 352.2 MB, free: 3.418 MB / 314.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/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] "" 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.533300725743175]