Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 119.8 kB / 20.44 MB, free: 1.461 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 214.1 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.484/1.484, allocations: 230.6 MB / 257.5 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 47.92 kB / 377.8 MB, free: 3.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2827, allocations: 53.36 MB / 431.1 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004083/0.2867, allocations: 2.359 MB / 433.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001759/0.2885, allocations: 0.8723 MB / 434.4 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001523/0.2887, allocations: 7.938 kB / 434.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002752/0.2889, allocations: 47.58 kB / 434.4 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003221/0.2893, allocations: 111.2 kB / 434.5 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002442/0.2895, allocations: 83.83 kB / 434.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003456/0.2898, allocations: 271.4 kB / 434.9 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.29, allocations: 52.5 kB / 434.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002416/0.2902, allocations: 127.5 kB / 435 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000238/0.2905, allocations: 123.5 kB / 435.2 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.612e-05/0.2905, allocations: 20 kB / 435.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.2907, allocations: 83.97 kB / 435.3 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.888e-05/0.2908, allocations: 55.83 kB / 435.3 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.2909, allocations: 123.3 kB / 435.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004764/0.2914, allocations: 311.2 kB / 435.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2914, allocations: 0 / 435.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2914, allocations: 0 / 435.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.503e-06/0.2914, allocations: 0 / 435.7 MB, free: 2.262 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0008968/0.2923, allocations: 481.3 kB / 436.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.2923, allocations: 12.03 kB / 436.2 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.994e-05/0.2924, allocations: 54.73 kB / 436.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.2926, allocations: 32.78 kB / 436.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004039/0.293, allocations: 194.1 kB / 436.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.293, allocations: 24.69 kB / 436.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.012e-05/0.293, allocations: 20.33 kB / 436.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006179/0.2937, allocations: 214.5 kB / 436.8 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.2937, allocations: 4 kB / 436.8 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.827e-05/0.2937, allocations: 12 kB / 436.8 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.2937, allocations: 8 kB / 436.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003517/0.2941, allocations: 155.2 kB / 436.9 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.2953, allocations: 0.7209 MB / 437.6 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004517/0.2958, allocations: 138.5 kB / 437.8 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001425/0.2959, allocations: 65.02 kB / 437.8 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.2959, allocations: 4 kB / 437.8 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.296, allocations: 30.91 kB / 437.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.623e-06/0.296, allocations: 0 / 437.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001924/0.2979, allocations: 0.7776 MB / 438.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.2979, allocations: 55.34 kB / 438.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/0.2982, allocations: 218.8 kB / 438.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.2982, allocations: 29.7 kB / 439 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.2983, allocations: 148.4 kB / 439.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.835e-05/0.2984, allocations: 75.38 kB / 439.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.2985, allocations: 45.7 kB / 439.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002232/0.2987, allocations: 338.8 kB / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002378/0.2989, allocations: 67.97 kB / 439.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.2991, allocations: 103.4 kB / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002892/0.2994, allocations: 159.3 kB / 439.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2994, allocations: 4 kB / 439.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005143/0.2999, allocations: 262.2 kB / 440.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.3, allocations: 8 kB / 440.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.3, allocations: 0 / 440.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000239/0.3002, allocations: 60.77 kB / 440.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.3004, allocations: 39.97 kB / 440.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002021/0.3024, allocations: 1.719 MB / 442 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.3026, allocations: 23.97 kB / 442 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.3026, allocations: 12 kB / 442 MB, free: 11.61 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: 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 0.0001554/0.3028, allocations: 136.8 kB / 442.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.3029, allocations: 27.91 kB / 442.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.964e-05/0.3029, allocations: 29.95 kB / 442.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.3029, allocations: 4 kB / 442.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.3029, allocations: 0 / 442.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3029, allocations: 64 / 442.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009728/0.3039, allocations: 0.5821 MB / 442.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3039, allocations: 4.031 kB / 442.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.3041, allocations: 39.91 kB / 442.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001588/0.3042, allocations: 52.83 kB / 442.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.176e-05/0.3043, allocations: 7.938 kB / 442.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001709/0.306, allocations: 1.561 MB / 444.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.306, allocations: 0 / 444.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007399/0.3067, allocations: 420 kB / 444.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.3068, allocations: 43.95 kB / 444.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.3069, allocations: 7.938 kB / 444.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/0.307, allocations: 23.97 kB / 444.9 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.3072, allocations: 71.88 kB / 445 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.3072, allocations: 4 kB / 445 MB, free: 8.395 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001838/0.3074, allocations: 156.6 kB / 445.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3074, allocations: 0 / 445.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004354/0.3078, allocations: 71.98 kB / 445.2 MB, free: 8.172 MB / 350.1 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.00236/0.3102, allocations: 1.217 MB / 446.4 MB, free: 7.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009015/0.3111, allocations: 302.4 kB / 446.7 MB, free: 6.746 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.3111, allocations: 4 kB / 446.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000423/0.3115, allocations: 234.7 kB / 447 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005574/0.3121, allocations: 41.48 kB / 447 MB, free: 6.461 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004421/0.3165, allocations: 2.678 MB / 449.7 MB, free: 3.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005409/0.317, allocations: 0.7441 MB / 450.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.3172, allocations: 25.92 kB / 450.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.3173, allocations: 67.41 kB / 450.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of SimCode: time 1.834e-06/0.3173, allocations: 4 kB / 450.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05465/0.372, allocations: 6.776 MB / 457.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/12.97, allocations: 0 / 457.3 MB, free: 12.12 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.617397781999898]