Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.001725/0.001725, allocations: 112 kB / 20.43 MB, free: 1.465 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.002132/0.002132, allocations: 186.9 kB / 23.71 MB, free: 4.719 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.463/1.463, allocations: 225.7 MB / 252.5 MB, free: 13.04 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.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0022/0.0022, allocations: 52.02 kB / 370.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2834, allocations: 52.19 MB / 422.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007176/0.2906, allocations: 5.483 MB / 428.1 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003952/0.2945, allocations: 2.095 MB / 430.2 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006879/0.2952, allocations: 51.56 kB / 430.2 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004891/0.2957, allocations: 206.2 kB / 430.5 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003689/0.2961, allocations: 170.4 kB / 430.6 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000918/0.297, allocations: 422.8 kB / 431 MB, free: 6.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.2981, allocations: 1.021 MB / 432.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006488/0.2987, allocations: 417.6 kB / 432.5 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004187/0.2992, allocations: 346.9 kB / 432.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004403/0.2996, allocations: 370.3 kB / 433.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.2997, allocations: 92 kB / 433.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002664/0.3, allocations: 151.9 kB / 433.4 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002044/0.3002, allocations: 199.4 kB / 433.6 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004197/0.3006, allocations: 437.9 kB / 434 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001307/0.3019, allocations: 1.187 MB / 435.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.3019, allocations: 3.984 kB / 435.2 MB, free: 2.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3019, allocations: 0 / 435.2 MB, free: 2.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.3019, allocations: 0 / 435.2 MB, free: 2.066 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001532/0.3035, allocations: 0.9649 MB / 436.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.3035, allocations: 19.91 kB / 436.2 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001616/0.3037, allocations: 131.5 kB / 436.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.3038, allocations: 96.38 kB / 436.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008713/0.3047, allocations: 464.3 kB / 436.9 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.788e-05/0.3047, allocations: 62.38 kB / 436.9 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.3048, allocations: 88.33 kB / 437 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.3063, allocations: 0.8007 MB / 437.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.994e-05/0.3063, allocations: 11.95 kB / 437.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.317e-05/0.3064, allocations: 32 kB / 437.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.373e-05/0.3064, allocations: 20 kB / 437.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009619/0.3074, allocations: 0.4996 MB / 438.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00359/0.311, allocations: 2.765 MB / 441.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005536/0.3115, allocations: 207.3 kB / 441.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.3117, allocations: 97.31 kB / 441.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001213/0.3118, allocations: 19.98 kB / 441.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.3119, allocations: 38.56 kB / 441.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.104e-06/0.3119, allocations: 0 / 441.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002454/0.3143, allocations: 1.12 MB / 442.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.3144, allocations: 59.41 kB / 442.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003745/0.3148, allocations: 300.5 kB / 443 MB, free: 9.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.3148, allocations: 33.7 kB / 443 MB, free: 9.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003246/0.3151, allocations: 411.7 kB / 443.4 MB, free: 9.543 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.3152, allocations: 134.8 kB / 443.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/0.3154, allocations: 90.14 kB / 443.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.3156, allocations: 354.7 kB / 444 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002126/0.3158, allocations: 105 kB / 444.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003386/0.3161, allocations: 250.1 kB / 444.3 MB, free: 8.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005676/0.3167, allocations: 392.8 kB / 444.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3167, allocations: 0 / 444.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007439/0.3174, allocations: 465.3 kB / 445.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3174, allocations: 8 kB / 445.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.3174, allocations: 8.531 kB / 445.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002013/0.3176, allocations: 36.84 kB / 445.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000359/0.318, allocations: 115.8 kB / 445.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004523/0.3185, allocations: 0.5523 MB / 445.9 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/0.3186, allocations: 16 kB / 445.9 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.803e-05/0.3187, allocations: 23.98 kB / 445.9 MB, free: 6.855 MB / 350.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.0003134/0.319, allocations: 225.7 kB / 446.1 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.19e-05/0.3191, allocations: 43.7 kB / 446.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006278/0.3197, allocations: 317.4 kB / 446.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.3197, allocations: 4 kB / 446.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3197, allocations: 0 / 446.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.3197, allocations: 4 kB / 446.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.3213, allocations: 0.9876 MB / 447.5 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.3213, allocations: 4 kB / 447.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003462/0.3216, allocations: 75.89 kB / 447.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001364/0.3218, allocations: 28.84 kB / 447.6 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.217e-05/0.3218, allocations: 24.14 kB / 447.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004061/0.3222, allocations: 0.5484 MB / 448.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3222, allocations: 0 / 448.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008122/0.323, allocations: 0.549 MB / 448.7 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.479e-05/0.3231, allocations: 27.77 kB / 448.7 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.565e-05/0.3231, allocations: 15.92 kB / 448.8 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.3233, allocations: 12 kB / 448.8 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.873e-05/0.3234, allocations: 27.98 kB / 448.8 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.3234, allocations: 19.94 kB / 448.8 MB, free: 3.797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002255/0.3236, allocations: 207.1 kB / 449 MB, free: 3.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3236, allocations: 0 / 449 MB, free: 3.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000559/0.3242, allocations: 120 kB / 449.1 MB, free: 3.48 MB / 350.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.001216/0.3254, allocations: 1.106 MB / 450.2 MB, free: 2.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006628/0.3261, allocations: 291.8 kB / 450.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3261, allocations: 0 / 450.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002548/0.3263, allocations: 129.1 kB / 450.6 MB, free: 1.918 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004991/0.3268, allocations: 85.17 kB / 450.7 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005946/0.3328, allocations: 4.393 MB / 455.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006054/0.3334, allocations: 0.9249 MB / 456 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001576/0.3335, allocations: 50.28 kB / 456.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002973/0.3338, allocations: 239.3 kB / 456.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3338, allocations: 0 / 456.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03942/0.3732, allocations: 8.707 MB / 465 MB, free: 3.441 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.22, allocations: 5.109 kB / 465 MB, free: 3.438 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable directInertia.inertia.phi from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2a.phi in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2a.phi from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2b.phi in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2b.phi from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3a.w in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3a.w from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.phi in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.phi from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.w in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.w from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.809520536997297]