Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.001405/0.001405, allocations: 111.6 kB / 20.43 MB, free: 1.473 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.001443/0.001443, allocations: 214.7 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.428/1.428, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 43.94 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2622, allocations: 53.37 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.0071/0.2693, allocations: 5.486 MB / 436.6 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003965/0.2733, allocations: 2.173 MB / 438.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006106/0.2739, allocations: 51.56 kB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000484/0.2744, allocations: 206.2 kB / 439 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003841/0.2747, allocations: 174.5 kB / 439.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009306/0.2757, allocations: 426.7 kB / 439.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00109/0.2768, allocations: 1.009 MB / 440.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006793/0.2774, allocations: 417.6 kB / 441 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004908/0.2779, allocations: 358.8 kB / 441.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004421/0.2784, allocations: 366.3 kB / 441.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001108/0.2785, allocations: 96 kB / 441.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002755/0.2788, allocations: 159.9 kB / 442 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002052/0.279, allocations: 211.4 kB / 442.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003948/0.2794, allocations: 426 kB / 442.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001294/0.2807, allocations: 1.199 MB / 443.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2807, allocations: 0 / 443.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2807, allocations: 0 / 443.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.2807, allocations: 0 / 443.8 MB, free: 10.1 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001485/0.2822, allocations: 0.9843 MB / 444.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.2822, allocations: 12.03 kB / 444.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001469/0.2823, allocations: 135.4 kB / 445 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000246/0.2826, allocations: 96.38 kB / 445 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009145/0.2835, allocations: 464.3 kB / 445.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.903e-05/0.2836, allocations: 66.38 kB / 445.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.2837, allocations: 92.31 kB / 445.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.2852, allocations: 0.8007 MB / 446.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.814e-05/0.2852, allocations: 7.984 kB / 446.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.644e-05/0.2853, allocations: 36 kB / 446.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.2853, allocations: 20 kB / 446.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.2863, allocations: 0.4996 MB / 447 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003488/0.2898, allocations: 2.765 MB / 449.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005775/0.2903, allocations: 215.3 kB / 450 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001793/0.2905, allocations: 92.83 kB / 450.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/0.2907, allocations: 15.98 kB / 450.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.2907, allocations: 35.06 kB / 450.1 MB, free: 3.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.553e-06/0.2907, allocations: 0 / 450.1 MB, free: 3.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002401/0.2931, allocations: 1.116 MB / 451.3 MB, free: 2.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.2931, allocations: 63.33 kB / 451.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003383/0.2935, allocations: 313.6 kB / 451.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/0.2935, allocations: 29.7 kB / 451.6 MB, free: 1.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/0.2938, allocations: 403.8 kB / 452 MB, free: 1.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.2939, allocations: 142.8 kB / 452.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.294, allocations: 98.14 kB / 452.3 MB, free: 1.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.2942, allocations: 354.7 kB / 452.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.2944, allocations: 105 kB / 452.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000323/0.2947, allocations: 250.1 kB / 453 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005393/0.2953, allocations: 396.6 kB / 453.4 MB, free: 92 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.2953, allocations: 4 kB / 453.4 MB, free: 88 kB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007397/0.296, allocations: 453.8 kB / 453.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.296, allocations: 8 kB / 453.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.296, allocations: 11.94 kB / 453.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001858/0.2962, allocations: 32.84 kB / 453.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003685/0.2966, allocations: 115.8 kB / 454 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004332/0.297, allocations: 0.5525 MB / 454.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.2972, allocations: 24.06 kB / 454.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.846e-05/0.2972, allocations: 20 kB / 454.6 MB, free: 14.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002963/0.2975, allocations: 217.7 kB / 454.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.652e-05/0.2976, allocations: 39.7 kB / 454.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006289/0.2982, allocations: 330.4 kB / 455.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.2982, allocations: 4 kB / 455.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2982, allocations: 0 / 455.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.2982, allocations: 3.984 kB / 455.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001484/0.2997, allocations: 0.9879 MB / 456.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.2997, allocations: 0 / 456.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003603/0.3001, allocations: 83.89 kB / 456.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001312/0.3002, allocations: 28.84 kB / 456.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.3002, allocations: 12 kB / 456.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004188/0.3007, allocations: 0.5484 MB / 456.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.3007, allocations: 4.031 kB / 456.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000789/0.3015, allocations: 0.5412 MB / 457.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.63e-05/0.3015, allocations: 35.77 kB / 457.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.662e-05/0.3016, allocations: 8 kB / 457.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.3017, allocations: 11.98 kB / 457.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.495e-05/0.3018, allocations: 20.06 kB / 457.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.3018, allocations: 23.86 kB / 457.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002233/0.302, allocations: 215.2 kB / 457.7 MB, free: 11.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.302, allocations: 0 / 457.7 MB, free: 11.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000513/0.3025, allocations: 119.9 kB / 457.8 MB, free: 11.48 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001138/0.3037, allocations: 1.114 MB / 458.9 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006383/0.3043, allocations: 300.9 kB / 459.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3043, allocations: 4.312 kB / 459.2 MB, free: 10.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002562/0.3046, allocations: 123.8 kB / 459.3 MB, free: 9.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004963/0.3051, allocations: 79.84 kB / 459.4 MB, free: 9.836 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005867/0.3109, allocations: 4.417 MB / 463.8 MB, free: 5.184 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005955/0.3115, allocations: 0.921 MB / 464.7 MB, free: 4.238 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001595/0.3117, allocations: 49.45 kB / 464.8 MB, free: 4.188 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002974/0.312, allocations: 247.3 kB / 465 MB, free: 3.945 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.312, allocations: 0 / 465 MB, free: 3.945 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03818/0.3502, allocations: 8.727 MB / 473.7 MB, free: 11.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.19, allocations: 11.73 kB / 473.8 MB, free: 11.39 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable directInertia.inertia.phi in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable directInertia.inertia.phi from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2a.phi in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2a.phi from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2b.phi in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2b.phi from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3a.w in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3a.w from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.phi in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.phi from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.w in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.w from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.64809163300015]