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.001635/0.001635, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002118/0.002118, allocations: 209.2 kB / 23.73 MB, free: 4.523 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.499/1.499, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001543/0.001543, allocations: 48 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2573, allocations: 53.37 MB / 431.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006727/0.264, allocations: 4.842 MB / 435.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003817/0.2678, allocations: 2.06 MB / 438 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005822/0.2684, allocations: 51.56 kB / 438 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004587/0.2689, allocations: 202.2 kB / 438.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004145/0.2693, allocations: 182.4 kB / 438.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008713/0.2702, allocations: 407 kB / 438.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001013/0.2712, allocations: 0.9977 MB / 439.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006438/0.2718, allocations: 425.3 kB / 440.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000437/0.2722, allocations: 354.8 kB / 440.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004087/0.2727, allocations: 374.3 kB / 440.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.2728, allocations: 92 kB / 441 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002689/0.273, allocations: 159.9 kB / 441.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000187/0.2732, allocations: 207.4 kB / 441.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003161/0.2735, allocations: 346.5 kB / 441.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.2748, allocations: 1.189 MB / 442.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2748, allocations: 0 / 442.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2748, allocations: 0 / 442.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.2748, allocations: 0 / 442.9 MB, free: 10.91 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.001417/0.2762, allocations: 0.9803 MB / 443.9 MB, free: 9.895 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.2762, allocations: 16.03 kB / 443.9 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001509/0.2764, allocations: 139.5 kB / 444 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002314/0.2766, allocations: 100.4 kB / 444.1 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008025/0.2774, allocations: 468.3 kB / 444.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.205e-05/0.2775, allocations: 62.38 kB / 444.6 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.2776, allocations: 88.33 kB / 444.7 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.2789, allocations: 0.8084 MB / 445.5 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.368e-05/0.279, allocations: 4 kB / 445.5 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.522e-05/0.279, allocations: 36 kB / 445.6 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.634e-05/0.2791, allocations: 20 kB / 445.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009448/0.28, allocations: 0.4957 MB / 446.1 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003267/0.2833, allocations: 2.581 MB / 448.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005352/0.2838, allocations: 207.8 kB / 448.9 MB, free: 4.691 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.284, allocations: 92.83 kB / 449 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/0.2841, allocations: 15.98 kB / 449 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.2841, allocations: 43 kB / 449 MB, free: 4.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.863e-06/0.2841, allocations: 0 / 449 MB, free: 4.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002261/0.2864, allocations: 1.112 MB / 450.1 MB, free: 3.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.2864, allocations: 59.41 kB / 450.2 MB, free: 3.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003385/0.2868, allocations: 321.5 kB / 450.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.2868, allocations: 29.7 kB / 450.5 MB, free: 2.934 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002657/0.2871, allocations: 407.8 kB / 450.9 MB, free: 2.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.2872, allocations: 146.8 kB / 451.1 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.2873, allocations: 82.16 kB / 451.2 MB, free: 2.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.2875, allocations: 362.7 kB / 451.5 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.2877, allocations: 105 kB / 451.6 MB, free: 1.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003118/0.288, allocations: 250 kB / 451.9 MB, free: 1.523 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005472/0.2885, allocations: 396.7 kB / 452.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2885, allocations: 0 / 452.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007556/0.2893, allocations: 461.6 kB / 452.7 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.2893, allocations: 4 kB / 452.7 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.2893, allocations: 8 kB / 452.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001791/0.2895, allocations: 32.84 kB / 452.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003518/0.2898, allocations: 115.8 kB / 452.9 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004384/0.2903, allocations: 0.5601 MB / 453.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.2905, allocations: 16 kB / 453.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.193e-05/0.2905, allocations: 24.34 kB / 453.5 MB, free: 15.83 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.0003032/0.2908, allocations: 225.6 kB / 453.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.994e-05/0.2909, allocations: 43.7 kB / 453.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006234/0.2915, allocations: 322.5 kB / 454 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2915, allocations: 4 kB / 454 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.2915, allocations: 0 / 454 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.2915, allocations: 3.984 kB / 454 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001455/0.293, allocations: 0.9489 MB / 455 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.293, allocations: 4 kB / 455 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003512/0.2933, allocations: 75.89 kB / 455.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001336/0.2935, allocations: 32.84 kB / 455.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.2935, allocations: 12 kB / 455.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003845/0.2939, allocations: 0.5523 MB / 455.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2939, allocations: 224 / 455.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008215/0.2947, allocations: 0.5565 MB / 456.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.303e-05/0.2947, allocations: 27.77 kB / 456.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.624e-05/0.2948, allocations: 12 kB / 456.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.295, allocations: 11.98 kB / 456.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.25e-05/0.295, allocations: 23.97 kB / 456.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.295, allocations: 15.92 kB / 456.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002299/0.2953, allocations: 215.2 kB / 456.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2953, allocations: 0 / 456.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005199/0.2958, allocations: 120 kB / 456.6 MB, free: 12.5 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.001125/0.2969, allocations: 1.112 MB / 457.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000617/0.2975, allocations: 304.9 kB / 458.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.2975, allocations: 0 / 458.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002735/0.2978, allocations: 127.8 kB / 458.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005096/0.2983, allocations: 77.64 kB / 458.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005788/0.3041, allocations: 4.421 MB / 462.7 MB, free: 6.191 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.3045, allocations: 321.6 kB / 463 MB, free: 5.855 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001681/0.3046, allocations: 47.33 kB / 463 MB, free: 5.805 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002999/0.3049, allocations: 247.3 kB / 463.3 MB, free: 5.562 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3049, allocations: 0 / 463.3 MB, free: 5.562 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03965/0.3446, allocations: 9.068 MB / 472.3 MB, free: 12.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.11, allocations: 4.062 kB / 472.3 MB, free: 12.7 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.641149873990798]