Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001057/0.001057, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 226.5 MB / 244.7 MB, free: 8.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007949/0.0007949, allocations: 99.03 kB / 296.7 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002588/0.0002588, allocations: 8 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.1838, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.003449/0.1873, allocations: 4.686 MB / 412.8 MB, free: 22.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002143/0.1895, allocations: 1.962 MB / 414.8 MB, free: 21.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004324/0.1899, allocations: 31.81 kB / 414.8 MB, free: 21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002756/0.1902, allocations: 154.8 kB / 415 MB, free: 20.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002315/0.1904, allocations: 134.9 kB / 415.1 MB, free: 20.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004876/0.1909, allocations: 263.3 kB / 415.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005489/0.1915, allocations: 0.9388 MB / 416.3 MB, free: 19.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005026/0.192, allocations: 0.5358 MB / 416.8 MB, free: 18.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002283/0.1922, allocations: 243 kB / 417.1 MB, free: 18.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.1924, allocations: 258.6 kB / 417.3 MB, free: 18.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.725e-05/0.1925, allocations: 32 kB / 417.3 MB, free: 18.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.1927, allocations: 87.91 kB / 417.4 MB, free: 18.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.902e-05/0.1927, allocations: 123.5 kB / 417.5 MB, free: 18.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001898/0.1929, allocations: 359.9 kB / 417.9 MB, free: 17.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004802/0.1934, allocations: 0.8933 MB / 418.8 MB, free: 16.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1934, allocations: 4 kB / 418.8 MB, free: 16.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1934, allocations: 0 / 418.8 MB, free: 16.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.1935, allocations: 0 / 418.8 MB, free: 16.96 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.0009016/0.1944, allocations: 0.8776 MB / 419.7 MB, free: 16.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.1944, allocations: 8.031 kB / 419.7 MB, free: 16.03 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.1945, allocations: 131.5 kB / 419.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.1947, allocations: 103.9 kB / 419.9 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004498/0.1952, allocations: 0.4986 MB / 420.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.1952, allocations: 62.38 kB / 420.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.158e-05/0.1953, allocations: 84.28 kB / 420.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.1963, allocations: 0.8123 MB / 421.4 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.92e-05/0.1964, allocations: 3.906 kB / 421.4 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.667e-05/0.1964, allocations: 36 kB / 421.4 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.1964, allocations: 24 kB / 421.4 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007684/0.1972, allocations: 499.6 kB / 421.9 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002205/0.1994, allocations: 2.899 MB / 424.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004181/0.1999, allocations: 226 kB / 425 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.2, allocations: 108.8 kB / 425.1 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001546/0.2002, allocations: 247.3 kB / 425.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/0.2002, allocations: 42.56 kB / 425.4 MB, free: 9.992 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.024e-06/0.2002, allocations: 4 kB / 425.4 MB, free: 9.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001795/0.202, allocations: 1.266 MB / 426.7 MB, free: 8.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.888e-05/0.202, allocations: 55.41 kB / 426.7 MB, free: 8.559 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/0.2023, allocations: 300.4 kB / 427 MB, free: 8.254 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.2023, allocations: 29.7 kB / 427.1 MB, free: 8.219 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.2024, allocations: 406.5 kB / 427.5 MB, free: 7.816 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.408e-05/0.2025, allocations: 134.1 kB / 427.6 MB, free: 7.684 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.446e-05/0.2025, allocations: 8 kB / 427.6 MB, free: 7.676 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.542e-05/0.2026, allocations: 358.7 kB / 428 MB, free: 7.316 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.2027, allocations: 105.1 kB / 428.1 MB, free: 7.215 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.203, allocations: 250.7 kB / 428.3 MB, free: 6.906 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003905/0.2034, allocations: 396.7 kB / 428.7 MB, free: 6.457 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2034, allocations: 0 / 428.7 MB, free: 6.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000553/0.2039, allocations: 457.6 kB / 429.1 MB, free: 6 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.204, allocations: 8 kB / 429.1 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.204, allocations: 4 kB / 429.1 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000152/0.2041, allocations: 36.83 kB / 429.2 MB, free: 5.949 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/0.2044, allocations: 111.8 kB / 429.3 MB, free: 5.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002301/0.2047, allocations: 0.5565 MB / 429.9 MB, free: 5.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.2049, allocations: 19.98 kB / 429.9 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.212e-05/0.2049, allocations: 24 kB / 429.9 MB, free: 5.215 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002081/0.2051, allocations: 221.6 kB / 430.1 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.618e-05/0.2052, allocations: 43.47 kB / 430.2 MB, free: 4.945 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004705/0.2056, allocations: 327.3 kB / 430.5 MB, free: 4.621 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.2056, allocations: 4 kB / 430.5 MB, free: 4.617 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2057, allocations: 0 / 430.5 MB, free: 4.617 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.2057, allocations: 3.938 kB / 430.5 MB, free: 4.613 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.2067, allocations: 1.015 MB / 431.5 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.2067, allocations: 0 / 431.5 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000308/0.207, allocations: 79.89 kB / 431.6 MB, free: 3.445 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001011/0.2072, allocations: 37 kB / 431.6 MB, free: 3.406 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.2072, allocations: 15.94 kB / 431.6 MB, free: 3.391 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001804/0.2074, allocations: 0.5484 MB / 432.2 MB, free: 2.816 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2074, allocations: 0 / 432.2 MB, free: 2.816 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005408/0.2079, allocations: 0.5553 MB / 432.7 MB, free: 2.223 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.17e-05/0.208, allocations: 104.6 kB / 432.8 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.734e-05/0.208, allocations: 15.98 kB / 432.8 MB, free: 2.086 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.2082, allocations: 8.188 kB / 432.9 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.2082, allocations: 27.91 kB / 432.9 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.2082, allocations: 19.94 kB / 432.9 MB, free: 2.031 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001336/0.2084, allocations: 207.1 kB / 433.1 MB, free: 1.828 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2084, allocations: 0 / 433.1 MB, free: 1.828 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003965/0.2088, allocations: 116 kB / 433.2 MB, free: 1.715 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007714/0.2096, allocations: 1.094 MB / 434.3 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004747/0.2101, allocations: 328.1 kB / 434.6 MB, free: 264 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2101, allocations: 0 / 434.6 MB, free: 264 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.2103, allocations: 133.1 kB / 434.8 MB, free: 132 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.2107, allocations: 72.27 kB / 434.8 MB, free: 64 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003979/0.2147, allocations: 3.452 MB / 438.3 MB, free: 12.47 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.2152, allocations: 0.921 MB / 439.2 MB, free: 11.53 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002529/0.2154, allocations: 247.3 kB / 439.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of SimCode: time 4.1e-07/0.2154, allocations: 0 / 439.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.168/3.384, allocations: 12.06 MB / 451.5 MB, free: 15.22 MB / 330.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches