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: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0018/0.0018, allocations: 195 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.249/1.249, allocations: 226.6 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007648/0.0007646, allocations: 100.2 kB / 296.8 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002003/0.0002004, allocations: 8 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.1862, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.003527/0.1898, allocations: 4.681 MB / 412.7 MB, free: 23.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.1918, allocations: 1.964 MB / 414.7 MB, free: 21.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003584/0.1922, allocations: 35.81 kB / 414.7 MB, free: 21.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002791/0.1925, allocations: 142.8 kB / 414.9 MB, free: 20.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002168/0.1927, allocations: 134.9 kB / 415 MB, free: 20.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004992/0.1932, allocations: 259.4 kB / 415.2 MB, free: 20.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000575/0.1938, allocations: 0.9465 MB / 416.2 MB, free: 19.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005185/0.1943, allocations: 0.5396 MB / 416.7 MB, free: 19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002142/0.1945, allocations: 235 kB / 417 MB, free: 18.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.1948, allocations: 266.6 kB / 417.2 MB, free: 18.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.798e-05/0.1948, allocations: 32 kB / 417.3 MB, free: 18.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001504/0.195, allocations: 87.97 kB / 417.3 MB, free: 18.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.848e-05/0.1951, allocations: 119.5 kB / 417.5 MB, free: 18.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001867/0.1953, allocations: 359.9 kB / 417.8 MB, free: 17.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004876/0.1957, allocations: 0.8852 MB / 418.7 MB, free: 17.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1958, allocations: 4 kB / 418.7 MB, free: 17.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1958, allocations: 0 / 418.7 MB, free: 17.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.1958, allocations: 0 / 418.7 MB, free: 17.03 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.0009011/0.1967, allocations: 0.8837 MB / 419.6 MB, free: 16.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.1967, allocations: 8.031 kB / 419.6 MB, free: 16.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001826/0.1969, allocations: 99.89 kB / 419.7 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/0.1974, allocations: 0.4986 MB / 420.2 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.1974, allocations: 62.38 kB / 420.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.39e-05/0.1975, allocations: 92.28 kB / 420.3 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001003/0.1985, allocations: 0.7969 MB / 421.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/0.1986, allocations: 7.844 kB / 421.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.815e-05/0.1986, allocations: 43.94 kB / 421.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.1986, allocations: 24 kB / 421.2 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007601/0.1994, allocations: 0.4918 MB / 421.7 MB, free: 13.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002243/0.2016, allocations: 2.895 MB / 424.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004246/0.2021, allocations: 222.1 kB / 424.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001447/0.2022, allocations: 108.8 kB / 424.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.2024, allocations: 243.3 kB / 425.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.416e-05/0.2024, allocations: 46.5 kB / 425.2 MB, free: 10.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.724e-06/0.2024, allocations: 0 / 425.2 MB, free: 10.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001777/0.2042, allocations: 1.262 MB / 426.5 MB, free: 8.832 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.401e-05/0.2042, allocations: 59.41 kB / 426.5 MB, free: 8.762 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.2045, allocations: 300.4 kB / 426.8 MB, free: 8.457 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.2045, allocations: 37.7 kB / 426.9 MB, free: 8.414 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.2046, allocations: 394.5 kB / 427.2 MB, free: 8.023 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.633e-05/0.2047, allocations: 138.1 kB / 427.4 MB, free: 7.887 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.578e-05/0.2047, allocations: 16 kB / 427.4 MB, free: 7.871 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.344e-05/0.2048, allocations: 350.7 kB / 427.7 MB, free: 7.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.205, allocations: 105.1 kB / 427.8 MB, free: 7.418 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002226/0.2052, allocations: 254.7 kB / 428.1 MB, free: 7.105 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003822/0.2056, allocations: 392.7 kB / 428.5 MB, free: 6.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2056, allocations: 4 kB / 428.5 MB, free: 6.656 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005513/0.2062, allocations: 453.4 kB / 428.9 MB, free: 6.203 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.2062, allocations: 8 kB / 428.9 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2062, allocations: 4 kB / 428.9 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000145/0.2063, allocations: 32.84 kB / 429 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002979/0.2066, allocations: 116.3 kB / 429.1 MB, free: 6.043 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002342/0.2069, allocations: 0.5562 MB / 429.6 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.2071, allocations: 20 kB / 429.6 MB, free: 5.441 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.18e-05/0.2071, allocations: 20 kB / 429.7 MB, free: 5.422 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.2073, allocations: 221.6 kB / 429.9 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.754e-05/0.2074, allocations: 39.47 kB / 429.9 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004811/0.2079, allocations: 323.5 kB / 430.2 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.2079, allocations: 4 kB / 430.2 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.2079, allocations: 0 / 430.2 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.2079, allocations: 3.984 kB / 430.2 MB, free: 4.824 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.2089, allocations: 1.019 MB / 431.3 MB, free: 3.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.209, allocations: 7.938 kB / 431.3 MB, free: 3.723 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003094/0.2093, allocations: 76.06 kB / 431.3 MB, free: 3.648 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.968e-05/0.2094, allocations: 40.83 kB / 431.4 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.2094, allocations: 8 kB / 431.4 MB, free: 3.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001873/0.2096, allocations: 0.5446 MB / 431.9 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.2096, allocations: 3.938 kB / 431.9 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005628/0.2102, allocations: 0.5592 MB / 432.5 MB, free: 2.426 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.434e-05/0.2102, allocations: 108.6 kB / 432.6 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.076e-05/0.2103, allocations: 12 kB / 432.6 MB, free: 2.289 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.2104, allocations: 12.19 kB / 432.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.641e-05/0.2105, allocations: 19.97 kB / 432.6 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.2105, allocations: 27.86 kB / 432.7 MB, free: 2.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001462/0.2107, allocations: 203.1 kB / 432.9 MB, free: 2.031 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2107, allocations: 0 / 432.9 MB, free: 2.031 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004217/0.2111, allocations: 128 kB / 433 MB, free: 1.906 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.0001387/0.2112, allocations: 123.5 kB / 433.1 MB, free: 1.777 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004837/0.2117, allocations: 312.3 kB / 433.4 MB, free: 1.473 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2117, allocations: 0 / 433.4 MB, free: 1.473 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002143/0.212, allocations: 141 kB / 433.6 MB, free: 1.336 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004872/0.2125, allocations: 62.86 kB / 433.6 MB, free: 1.281 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.2146, allocations: 2.063 MB / 435.7 MB, free: 15.17 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004646/0.2151, allocations: 0.9171 MB / 436.6 MB, free: 14.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.096e-05/0.2152, allocations: 39.42 kB / 436.6 MB, free: 14.19 MB / 314.7 MB Notification: Performance of SimCode: time 5.11e-07/0.2152, allocations: 0 / 436.6 MB, free: 14.19 MB / 314.7 MB Notification: Performance of Templates: time 0.01094/0.2261, allocations: 9.6 MB / 446.2 MB, free: 4.602 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (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 & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/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