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.001462/0.001462, allocations: 116.2 kB / 20.43 MB, free: 1.297 MB / 14.72 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.001364/0.001364, allocations: 186.1 kB / 23.72 MB, free: 4.539 MB / 14.72 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 1.388/1.388, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00152/0.00152, allocations: 47.92 kB / 370.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2723, allocations: 52.18 MB / 422.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00366/0.276, allocations: 2.2 MB / 424.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.2773, allocations: 0.7051 MB / 425.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.2774, allocations: 3.938 kB / 425.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001963/0.2776, allocations: 27.72 kB / 425.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002011/0.2778, allocations: 71.41 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003952/0.2782, allocations: 103.8 kB / 425.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000364/0.2786, allocations: 283.4 kB / 426 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.2787, allocations: 44.52 kB / 426 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.2789, allocations: 131.5 kB / 426.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002116/0.2791, allocations: 123.5 kB / 426.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.811e-05/0.2792, allocations: 20 kB / 426.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001489/0.2793, allocations: 75.89 kB / 426.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.567e-05/0.2794, allocations: 55.81 kB / 426.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.2795, allocations: 107.5 kB / 426.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003981/0.2799, allocations: 287.3 kB / 426.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.28, allocations: 0 / 426.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.28, allocations: 0 / 426.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.28, allocations: 0 / 426.8 MB, free: 10.43 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001045/0.281, allocations: 0.4988 MB / 427.3 MB, free: 9.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.2811, allocations: 8.031 kB / 427.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.907e-05/0.2811, allocations: 54.73 kB / 427.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.173e-05/0.2812, allocations: 32.69 kB / 427.4 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003204/0.2815, allocations: 174.2 kB / 427.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.2815, allocations: 20.38 kB / 427.6 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.552e-05/0.2816, allocations: 16.38 kB / 427.6 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005155/0.2821, allocations: 243.2 kB / 427.9 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.2821, allocations: 7.953 kB / 427.9 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.2821, allocations: 8 kB / 427.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.2821, allocations: 4 kB / 427.9 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004791/0.2826, allocations: 195.8 kB / 428.1 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.2837, allocations: 0.6399 MB / 428.7 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005613/0.2842, allocations: 194.4 kB / 428.9 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002364/0.2845, allocations: 92.81 kB / 429 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.2845, allocations: 0 / 429 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003593/0.2848, allocations: 170.1 kB / 429.2 MB, free: 7.945 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.2848, allocations: 0 / 429.2 MB, free: 7.945 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.002351/0.2872, allocations: 0.9252 MB / 430.1 MB, free: 6.961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.2872, allocations: 55.41 kB / 430.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002019/0.2875, allocations: 188.1 kB / 430.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/0.2875, allocations: 33.7 kB / 430.4 MB, free: 6.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.2876, allocations: 140.4 kB / 430.5 MB, free: 6.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.121e-05/0.2877, allocations: 95.27 kB / 430.6 MB, free: 6.426 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.2878, allocations: 61.69 kB / 430.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.2879, allocations: 334.8 kB / 431 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002698/0.2882, allocations: 108 kB / 431.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002914/0.2885, allocations: 144.3 kB / 431.2 MB, free: 5.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004927/0.289, allocations: 243.8 kB / 431.5 MB, free: 5.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.289, allocations: 0 / 431.5 MB, free: 5.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008463/0.2898, allocations: 400.9 kB / 431.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.436e-05/0.2899, allocations: 41.62 kB / 431.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.2899, allocations: 0 / 431.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002484/0.2902, allocations: 64.83 kB / 431.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002085/0.2904, allocations: 47.91 kB / 432 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005715/0.2909, allocations: 0.6227 MB / 432.6 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.2912, allocations: 31.97 kB / 432.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.2912, allocations: 15.94 kB / 432.7 MB, free: 4.246 MB / 334.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 (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.0001649/0.2914, allocations: 145.7 kB / 432.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.714e-05/0.2914, allocations: 27.92 kB / 432.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.517e-05/0.2915, allocations: 25.97 kB / 432.9 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.2915, allocations: 0 / 432.9 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.2915, allocations: 0 / 432.9 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.2915, allocations: 7.984 kB / 432.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.2926, allocations: 0.6395 MB / 433.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2926, allocations: 8 kB / 433.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002156/0.2928, allocations: 43.84 kB / 433.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001688/0.293, allocations: 68.84 kB / 433.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.293, allocations: 8 kB / 433.6 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00057/0.2936, allocations: 0.607 MB / 434.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.02e-05/0.2936, allocations: 3.938 kB / 434.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009916/0.2946, allocations: 0.5087 MB / 434.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.937e-05/0.2947, allocations: 39.88 kB / 434.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.804e-05/0.2947, allocations: 12 kB / 434.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.295, allocations: 23.97 kB / 434.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.2951, allocations: 35.94 kB / 434.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.2951, allocations: 11.98 kB / 434.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001361/0.2952, allocations: 139.4 kB / 435 MB, free: 1.789 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2952, allocations: 4 kB / 435 MB, free: 1.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003552/0.2956, allocations: 75.92 kB / 435.1 MB, free: 1.711 MB / 334.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 (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.001471/0.2971, allocations: 1.059 MB / 436.1 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008143/0.2979, allocations: 315.1 kB / 436.5 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2979, allocations: 0 / 436.5 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003595/0.2982, allocations: 140.1 kB / 436.6 MB, free: 168 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004183/0.2986, allocations: 47.56 kB / 436.6 MB, free: 124 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004551/0.3032, allocations: 2.839 MB / 439.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.3036, allocations: 0.7363 MB / 440.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001069/0.3037, allocations: 25.94 kB / 440.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.3038, allocations: 67.41 kB / 440.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3038, allocations: 0 / 440.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04189/0.3457, allocations: 6.39 MB / 446.7 MB, free: 6.082 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.76, allocations: 8.047 kB / 446.7 MB, free: 6.074 MB / 350.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 15.220761813001445]