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.001305/0.001305, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001485/0.001485, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001588/0.001588, allocations: 51.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2526, allocations: 53.37 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00674/0.2594, allocations: 4.848 MB / 435.9 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0037/0.2631, allocations: 2.056 MB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000506/0.2636, allocations: 47.62 kB / 438 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004594/0.264, allocations: 206.2 kB / 438.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003808/0.2644, allocations: 178.4 kB / 438.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008806/0.2653, allocations: 403.1 kB / 438.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.2664, allocations: 1.009 MB / 439.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006522/0.2671, allocations: 393.4 kB / 440.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004806/0.2676, allocations: 354.8 kB / 440.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004087/0.268, allocations: 318.3 kB / 440.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.2681, allocations: 96 kB / 440.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002731/0.2684, allocations: 155.9 kB / 441.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001982/0.2686, allocations: 207.4 kB / 441.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000347/0.2689, allocations: 354.4 kB / 441.6 MB, free: 12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001277/0.2702, allocations: 1.189 MB / 442.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2702, allocations: 0 / 442.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2702, allocations: 3.938 kB / 442.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.2702, allocations: 0 / 442.8 MB, free: 10.8 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.001486/0.2717, allocations: 0.9843 MB / 443.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.2717, allocations: 8.031 kB / 443.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001593/0.2719, allocations: 135.5 kB / 444 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000241/0.2721, allocations: 100.4 kB / 444.1 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008388/0.273, allocations: 464.3 kB / 444.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.012e-05/0.273, allocations: 58.38 kB / 444.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.2732, allocations: 100.2 kB / 444.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/0.2746, allocations: 0.8046 MB / 445.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.768e-05/0.2746, allocations: 7.938 kB / 445.5 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.118e-05/0.2747, allocations: 36 kB / 445.5 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.156e-05/0.2747, allocations: 24 kB / 445.5 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.2757, allocations: 499.6 kB / 446 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003212/0.2789, allocations: 2.581 MB / 448.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005447/0.2794, allocations: 207.8 kB / 448.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.2796, allocations: 88.83 kB / 448.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001107/0.2797, allocations: 23.98 kB / 448.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.2798, allocations: 42.98 kB / 449 MB, free: 4.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.903e-06/0.2798, allocations: 0 / 449 MB, free: 4.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002316/0.2821, allocations: 1.116 MB / 450.1 MB, free: 3.258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.2821, allocations: 55.41 kB / 450.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003394/0.2825, allocations: 317.6 kB / 450.4 MB, free: 2.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.2825, allocations: 33.7 kB / 450.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002739/0.2828, allocations: 407.7 kB / 450.9 MB, free: 2.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.2829, allocations: 142.8 kB / 451 MB, free: 2.289 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/0.283, allocations: 90.14 kB / 451.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.2832, allocations: 350.7 kB / 451.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.2834, allocations: 109 kB / 451.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000327/0.2837, allocations: 254 kB / 451.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005661/0.2843, allocations: 396.7 kB / 452.2 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.2843, allocations: 4 kB / 452.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007468/0.285, allocations: 453.4 kB / 452.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.285, allocations: 8 kB / 452.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.285, allocations: 4 kB / 452.6 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001781/0.2852, allocations: 40.83 kB / 452.7 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003575/0.2856, allocations: 111.8 kB / 452.8 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004414/0.286, allocations: 0.5606 MB / 453.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/0.2862, allocations: 20.06 kB / 453.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.951e-05/0.2862, allocations: 27.94 kB / 453.4 MB, free: 15.72 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.0002866/0.2865, allocations: 217.6 kB / 453.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.936e-05/0.2866, allocations: 39.7 kB / 453.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006248/0.2872, allocations: 317.5 kB / 454 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.2872, allocations: 7.938 kB / 454 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2872, allocations: 4 kB / 454 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.2872, allocations: 7.984 kB / 454 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001486/0.2887, allocations: 0.9489 MB / 454.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.2887, allocations: 0 / 454.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000352/0.2891, allocations: 79.91 kB / 455 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001234/0.2892, allocations: 28.84 kB / 455 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.2892, allocations: 15.98 kB / 455 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004197/0.2897, allocations: 0.5564 MB / 455.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.2897, allocations: 4.031 kB / 455.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008177/0.2905, allocations: 0.5409 MB / 456.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.279e-05/0.2905, allocations: 35.84 kB / 456.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.2906, allocations: 11.94 kB / 456.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.2907, allocations: 8 kB / 456.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/0.2908, allocations: 23.95 kB / 456.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.2908, allocations: 19.94 kB / 456.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002247/0.291, allocations: 215.2 kB / 456.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.291, allocations: 0 / 456.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000492/0.2915, allocations: 120 kB / 456.6 MB, free: 12.39 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.001156/0.2927, allocations: 1.112 MB / 457.7 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005947/0.2933, allocations: 296.2 kB / 458 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.686e-06/0.2933, allocations: 0 / 458 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002838/0.2936, allocations: 139.7 kB / 458.1 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.2941, allocations: 81.47 kB / 458.2 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005929/0.3, allocations: 4.409 MB / 462.6 MB, free: 6.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.3004, allocations: 329.6 kB / 462.9 MB, free: 5.746 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001644/0.3005, allocations: 46.34 kB / 463 MB, free: 5.699 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003124/0.3008, allocations: 243.4 kB / 463.2 MB, free: 5.461 MB / 366.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3008, allocations: 4 kB / 463.2 MB, free: 5.457 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0393/0.3401, allocations: 8.914 MB / 472.1 MB, free: 12.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/12.98, allocations: 4.062 kB / 472.1 MB, free: 12.75 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.530927383340895]