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.001108/0.001108, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007946/0.0007946, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.8721/0.8721, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 2.414e-06/2.414e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.807e-05/2.049e-05, allocations: 6.984 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006423/0.006444, allocations: 4.855 MB / 329.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002634/0.009078, allocations: 2.056 MB / 331.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004839/0.009562, allocations: 51.56 kB / 331.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003419/0.009904, allocations: 206.2 kB / 331.7 MB, free: 8.695 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002781/0.01018, allocations: 182.3 kB / 331.8 MB, free: 8.516 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006728/0.01085, allocations: 418.8 kB / 332.3 MB, free: 8.105 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008107/0.01167, allocations: 1.044 MB / 333.3 MB, free: 7.055 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004772/0.01214, allocations: 393.6 kB / 333.7 MB, free: 6.656 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005242/0.01267, allocations: 0.5186 MB / 334.2 MB, free: 6.137 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000255/0.01292, allocations: 263.2 kB / 334.5 MB, free: 5.879 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.697e-05/0.013, allocations: 92 kB / 334.5 MB, free: 5.789 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001814/0.01318, allocations: 155.8 kB / 334.7 MB, free: 5.637 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.01331, allocations: 207.3 kB / 334.9 MB, free: 5.434 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001834/0.01349, allocations: 291.3 kB / 335.2 MB, free: 5.148 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007673/0.01426, allocations: 1.199 MB / 336.4 MB, free: 3.945 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.01426, allocations: 4 kB / 336.4 MB, free: 3.941 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.01426, allocations: 3.938 kB / 336.4 MB, free: 3.938 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.01428, allocations: 0 / 336.4 MB, free: 3.938 MB / 298.7 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.001107/0.01538, allocations: 0.9687 MB / 337.4 MB, free: 2.934 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.01543, allocations: 11.98 kB / 337.4 MB, free: 2.922 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.01554, allocations: 135.5 kB / 337.5 MB, free: 2.781 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.01572, allocations: 100.4 kB / 337.6 MB, free: 2.684 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005417/0.01626, allocations: 459.5 kB / 338.1 MB, free: 2.203 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.437e-05/0.01629, allocations: 66.38 kB / 338.1 MB, free: 2.141 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.012e-05/0.01637, allocations: 96.25 kB / 338.2 MB, free: 2.047 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008594/0.01723, allocations: 0.7972 MB / 339 MB, free: 1.207 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/0.01726, allocations: 12.16 kB / 339 MB, free: 1.195 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.063e-05/0.0173, allocations: 40.12 kB / 339.1 MB, free: 1.156 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.01731, allocations: 20 kB / 339.1 MB, free: 1.137 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006324/0.01795, allocations: 499.6 kB / 339.6 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.01993, allocations: 2.586 MB / 342.2 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003675/0.0203, allocations: 215.1 kB / 342.4 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.02041, allocations: 92.83 kB / 342.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.561e-05/0.02049, allocations: 19.92 kB / 342.5 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.02051, allocations: 46.48 kB / 342.5 MB, free: 13.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 1.432e-06/0.02052, allocations: 0 / 342.5 MB, free: 13.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=35): time 0.001438/0.02195, allocations: 1.119 MB / 343.6 MB, free: 12.38 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.02199, allocations: 55.41 kB / 343.7 MB, free: 12.31 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.0222, allocations: 321.6 kB / 344 MB, free: 11.99 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.02222, allocations: 29.7 kB / 344 MB, free: 11.95 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.02237, allocations: 399.8 kB / 344.4 MB, free: 11.56 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.118e-05/0.02245, allocations: 146.7 kB / 344.6 MB, free: 11.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.707e-05/0.02252, allocations: 86.14 kB / 344.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.163e-05/0.02261, allocations: 354.7 kB / 345 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.02274, allocations: 109 kB / 345.1 MB, free: 10.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.02293, allocations: 253.8 kB / 345.4 MB, free: 10.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003551/0.02329, allocations: 388.9 kB / 345.7 MB, free: 10.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.02329, allocations: 4 kB / 345.7 MB, free: 10.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004541/0.02375, allocations: 457.3 kB / 346.2 MB, free: 9.652 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.02376, allocations: 11.88 kB / 346.2 MB, free: 9.645 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.02377, allocations: 8 kB / 346.2 MB, free: 9.637 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001551/0.02392, allocations: 36.84 kB / 346.2 MB, free: 9.598 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001945/0.02412, allocations: 111.8 kB / 346.3 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002696/0.02439, allocations: 0.5601 MB / 346.9 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.574e-05/0.02448, allocations: 15.98 kB / 346.9 MB, free: 8.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.02451, allocations: 24 kB / 346.9 MB, free: 8.863 MB / 314.7 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.0001752/0.02468, allocations: 213.7 kB / 347.2 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/0.02472, allocations: 35.77 kB / 347.2 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003727/0.02509, allocations: 334.4 kB / 347.5 MB, free: 8.273 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.02509, allocations: 0 / 347.5 MB, free: 8.273 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.0251, allocations: 4 kB / 347.5 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.0251, allocations: 0 / 347.5 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008584/0.02596, allocations: 0.9504 MB / 348.5 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.02596, allocations: 4.156 kB / 348.5 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000194/0.02616, allocations: 79.89 kB / 348.6 MB, free: 7.172 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.301e-05/0.02623, allocations: 28.84 kB / 348.6 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/0.02625, allocations: 12 kB / 348.6 MB, free: 7.129 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002036/0.02645, allocations: 0.5563 MB / 349.1 MB, free: 6.547 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.02646, allocations: 7.922 kB / 349.2 MB, free: 6.539 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004624/0.02692, allocations: 0.5407 MB / 349.7 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.017e-05/0.02695, allocations: 43.77 kB / 349.7 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.042e-05/0.02698, allocations: 16 kB / 349.8 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.455e-05/0.02705, allocations: 8 kB / 349.8 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.873e-05/0.02709, allocations: 23.95 kB / 349.8 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.02711, allocations: 12 kB / 349.8 MB, free: 5.859 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001307/0.02724, allocations: 211.2 kB / 350 MB, free: 5.652 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02724, allocations: 4 kB / 350 MB, free: 5.648 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002959/0.02753, allocations: 123.9 kB / 350.1 MB, free: 5.527 MB / 314.7 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.000766/0.0283, allocations: 1.105 MB / 351.2 MB, free: 4.375 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000399/0.0287, allocations: 292.9 kB / 351.5 MB, free: 4.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.0287, allocations: 0 / 351.5 MB, free: 4.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001581/0.02886, allocations: 148.2 kB / 351.7 MB, free: 3.945 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.0292, allocations: 65.03 kB / 351.7 MB, free: 3.887 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003566/0.03276, allocations: 4.186 MB / 355.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.033, allocations: 329.6 kB / 356.2 MB, free: 15.12 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.0331, allocations: 47.33 kB / 356.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/0.03329, allocations: 244.4 kB / 356.5 MB, free: 14.83 MB / 330.7 MB Notification: Performance of SimCode: time 6.31e-07/0.03329, allocations: 0 / 356.5 MB, free: 14.83 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02124/0.05454, allocations: 9.053 MB / 365.6 MB, free: 5.938 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.878/7.932, allocations: 6.969 kB / 365.6 MB, free: 5.934 MB / 330.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/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: 9.664429197087884]