Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.001573/0.001573, allocations: 114 kB / 20.44 MB, free: 1.469 MB / 14.72 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.001458/0.001458, allocations: 211.4 kB / 23.74 MB, free: 4.695 MB / 14.72 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 1.563/1.563, allocations: 230.5 MB / 257.4 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] 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.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 63.89 kB / 377.8 MB, free: 3.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2795, allocations: 53.41 MB / 431.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007495/0.2869, allocations: 5.48 MB / 436.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004587/0.2915, allocations: 2.173 MB / 438.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001069/0.2926, allocations: 51.56 kB / 438.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006418/0.2932, allocations: 206.2 kB / 439.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005942/0.2938, allocations: 174.4 kB / 439.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001427/0.2953, allocations: 434.6 kB / 439.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001412/0.2967, allocations: 1.009 MB / 440.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007354/0.2974, allocations: 413.6 kB / 441.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005963/0.298, allocations: 358.8 kB / 441.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000538/0.2985, allocations: 366.3 kB / 441.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001274/0.2987, allocations: 92 kB / 441.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000353/0.299, allocations: 159.9 kB / 442 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002315/0.2993, allocations: 207.4 kB / 442.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004783/0.2997, allocations: 437.9 kB / 442.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001631/0.3014, allocations: 1.191 MB / 443.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.3014, allocations: 8 kB / 443.9 MB, free: 9.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3014, allocations: 0 / 443.9 MB, free: 9.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.824e-05/0.3014, allocations: 0 / 443.9 MB, free: 9.949 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.001779/0.3032, allocations: 0.9842 MB / 444.9 MB, free: 8.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.3032, allocations: 8.031 kB / 444.9 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001658/0.3034, allocations: 131.5 kB / 445 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000269/0.3037, allocations: 100.4 kB / 445.1 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008972/0.3046, allocations: 464.3 kB / 445.5 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.205e-05/0.3046, allocations: 62.38 kB / 445.6 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.3048, allocations: 92.31 kB / 445.7 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.3063, allocations: 0.8007 MB / 446.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.006e-05/0.3063, allocations: 11.97 kB / 446.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.875e-05/0.3064, allocations: 36 kB / 446.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.537e-05/0.3064, allocations: 23.94 kB / 446.6 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.3075, allocations: 0.4918 MB / 447.1 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0039/0.3114, allocations: 2.765 MB / 449.8 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005969/0.312, allocations: 222.2 kB / 450 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.3122, allocations: 92.83 kB / 450.1 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001323/0.3123, allocations: 15.98 kB / 450.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.3124, allocations: 39.06 kB / 450.2 MB, free: 3.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.824e-06/0.3124, allocations: 0 / 450.2 MB, free: 3.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.00259/0.3149, allocations: 1.116 MB / 451.3 MB, free: 2.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.265e-05/0.315, allocations: 63.39 kB / 451.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004042/0.3154, allocations: 313.6 kB / 451.7 MB, free: 1.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.3154, allocations: 29.7 kB / 451.7 MB, free: 1.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003133/0.3158, allocations: 411.7 kB / 452.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.3159, allocations: 142.7 kB / 452.2 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.316, allocations: 90.14 kB / 452.3 MB, free: 1.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.3162, allocations: 350.7 kB / 452.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.3164, allocations: 105 kB / 452.8 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000334/0.3168, allocations: 258 kB / 453 MB, free: 392 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005873/0.3173, allocations: 384.7 kB / 453.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3173, allocations: 4 kB / 453.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008119/0.3182, allocations: 461.3 kB / 453.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.3182, allocations: 8 kB / 453.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.3182, allocations: 4.594 kB / 453.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002307/0.3184, allocations: 40.84 kB / 453.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003648/0.3188, allocations: 111.8 kB / 454 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004685/0.3193, allocations: 0.5523 MB / 454.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/0.3195, allocations: 20 kB / 454.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.22e-05/0.3195, allocations: 24 kB / 454.6 MB, free: 14.7 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.0003386/0.3198, allocations: 217.8 kB / 454.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.185e-05/0.3199, allocations: 39.7 kB / 454.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006563/0.3206, allocations: 325.8 kB / 455.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.3206, allocations: 4 kB / 455.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3206, allocations: 0 / 455.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.3206, allocations: 3.984 kB / 455.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.3222, allocations: 0.9839 MB / 456.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.3222, allocations: 0 / 456.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003736/0.3226, allocations: 83.89 kB / 456.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.3228, allocations: 32.78 kB / 456.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/0.3228, allocations: 16.16 kB / 456.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004161/0.3232, allocations: 0.5484 MB / 456.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.3232, allocations: 8.125 kB / 456.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008206/0.324, allocations: 0.5448 MB / 457.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.473e-05/0.3241, allocations: 31.95 kB / 457.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.528e-05/0.3242, allocations: 8 kB / 457.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.3243, allocations: 15.92 kB / 457.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.968e-05/0.3244, allocations: 28 kB / 457.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.069e-05/0.3244, allocations: 23.92 kB / 457.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002447/0.3246, allocations: 211.2 kB / 457.7 MB, free: 11.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3246, allocations: 3.938 kB / 457.7 MB, free: 11.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005634/0.3252, allocations: 123.9 kB / 457.8 MB, free: 11.32 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.00124/0.3264, allocations: 1.101 MB / 458.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006551/0.3271, allocations: 303.8 kB / 459.2 MB, free: 9.875 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3271, allocations: 0 / 459.2 MB, free: 9.875 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.3274, allocations: 129 kB / 459.4 MB, free: 9.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005264/0.3279, allocations: 74.91 kB / 459.4 MB, free: 9.684 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006614/0.3345, allocations: 4.411 MB / 463.8 MB, free: 5.043 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006281/0.3351, allocations: 0.921 MB / 464.8 MB, free: 4.098 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001875/0.3353, allocations: 43.34 kB / 464.8 MB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003171/0.3357, allocations: 247.3 kB / 465.1 MB, free: 3.809 MB / 366.1 MB Notification: Performance of SimCode: time 1.854e-06/0.3357, allocations: 0 / 465.1 MB, free: 3.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04172/0.3774, allocations: 8.732 MB / 473.8 MB, free: 11.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/13.26, allocations: 2.656 kB / 473.8 MB, free: 11.21 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable directInertia.inertia.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2a.phi in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2a.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2b.phi in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2b.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3a.w in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3a.w from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.phi in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.w in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.w from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.877804916999594]