Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001203/0.001203, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.218/1.218, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007477/0.0007477, allocations: 92.97 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002834/0.0002835, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1867, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003437/0.1902, allocations: 3.912 MB / 379.1 MB, free: 42.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002009/0.1922, allocations: 1.292 MB / 380.4 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006443/0.1929, allocations: 25.41 kB / 380.4 MB, free: 41.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003623/0.1933, allocations: 116.7 kB / 380.5 MB, free: 41.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004608/0.1937, allocations: 136.5 kB / 380.7 MB, free: 41.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006213/0.1944, allocations: 247.8 kB / 380.9 MB, free: 40.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008848/0.1953, allocations: 0.8967 MB / 381.8 MB, free: 40.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00043/0.1957, allocations: 371.1 kB / 382.2 MB, free: 40.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002668/0.196, allocations: 249.6 kB / 382.4 MB, free: 39.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.1962, allocations: 267.3 kB / 382.7 MB, free: 39.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.854e-05/0.1963, allocations: 27.91 kB / 382.7 MB, free: 39.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001672/0.1964, allocations: 72.73 kB / 382.8 MB, free: 39.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.98e-05/0.1965, allocations: 116.3 kB / 382.9 MB, free: 39.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002148/0.1967, allocations: 370.6 kB / 383.2 MB, free: 39.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004799/0.1972, allocations: 0.7566 MB / 384 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1972, allocations: 0 / 384 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1972, allocations: 0 / 384 MB, free: 38.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.1972, allocations: 0 / 384 MB, free: 38.8 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001086/0.1983, allocations: 0.976 MB / 385 MB, free: 37.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.1984, allocations: 9.375 kB / 385 MB, free: 37.99 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/0.1985, allocations: 128.8 kB / 385.1 MB, free: 37.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.1986, allocations: 105.7 kB / 385.2 MB, free: 37.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006151/0.1992, allocations: 0.5951 MB / 385.8 MB, free: 37.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.063e-05/0.1993, allocations: 57.56 kB / 385.9 MB, free: 37.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.392e-05/0.1994, allocations: 92.3 kB / 385.9 MB, free: 37.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.2005, allocations: 0.8421 MB / 386.8 MB, free: 36.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.352e-05/0.2005, allocations: 16.23 kB / 386.8 MB, free: 36.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.774e-05/0.2006, allocations: 37.56 kB / 386.8 MB, free: 36.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.2006, allocations: 21.31 kB / 386.9 MB, free: 36.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007632/0.2014, allocations: 475.1 kB / 387.3 MB, free: 36.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/0.2038, allocations: 4.4 MB / 391.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004352/0.2042, allocations: 311.8 kB / 392 MB, free: 31.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001865/0.2044, allocations: 149.3 kB / 392.2 MB, free: 31.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001552/0.2046, allocations: 166.6 kB / 392.3 MB, free: 31.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.2046, allocations: 38.94 kB / 392.4 MB, free: 30.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 2.164e-06/0.2046, allocations: 0 / 392.4 MB, free: 30.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.002582/0.2072, allocations: 1.746 MB / 394.1 MB, free: 29.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.2073, allocations: 59.91 kB / 394.2 MB, free: 29.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000438/0.2077, allocations: 0.5352 MB / 394.7 MB, free: 28.53 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.2077, allocations: 37.7 kB / 394.8 MB, free: 28.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.2079, allocations: 478.4 kB / 395.2 MB, free: 28.01 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.208, allocations: 213 kB / 395.4 MB, free: 27.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.175e-05/0.2081, allocations: 12 kB / 395.4 MB, free: 27.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.636e-05/0.2082, allocations: 382.8 kB / 395.8 MB, free: 27.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002368/0.2084, allocations: 165.9 kB / 396 MB, free: 27.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003493/0.2088, allocations: 455.2 kB / 396.4 MB, free: 26.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005978/0.2094, allocations: 0.6673 MB / 397.1 MB, free: 25.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.2094, allocations: 4 kB / 397.1 MB, free: 25.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0008913/0.2103, allocations: 0.7345 MB / 397.8 MB, free: 25.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.2103, allocations: 8 kB / 397.8 MB, free: 25.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.2103, allocations: 12.16 kB / 397.8 MB, free: 25.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001597/0.2105, allocations: 48.84 kB / 397.9 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004861/0.211, allocations: 179.7 kB / 398.1 MB, free: 24.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008793/0.2119, allocations: 1.514 MB / 399.6 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002819/0.2122, allocations: 31.98 kB / 399.6 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.576e-05/0.2122, allocations: 36 kB / 399.7 MB, free: 23.16 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (101): * Single equations (assignments): 100 * 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: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002409/0.2125, allocations: 230.5 kB / 399.9 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.545e-05/0.2126, allocations: 67.16 kB / 399.9 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.867e-05/0.2127, allocations: 75.14 kB / 400 MB, free: 22.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.2127, allocations: 11.94 kB / 400 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.2127, allocations: 192 / 400 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.2127, allocations: 7.984 kB / 400 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001427/0.2141, allocations: 1.431 MB / 401.5 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.2141, allocations: 4 kB / 401.5 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004232/0.2146, allocations: 119.8 kB / 401.6 MB, free: 21.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.056e-05/0.2147, allocations: 28.83 kB / 401.6 MB, free: 21.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.571e-05/0.2147, allocations: 16 kB / 401.6 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005184/0.2152, allocations: 1.272 MB / 402.9 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2152, allocations: 4 kB / 402.9 MB, free: 19.65 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007586/0.216, allocations: 0.7762 MB / 403.7 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.759e-05/0.2161, allocations: 144.2 kB / 403.8 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.44e-05/0.2161, allocations: 16 kB / 403.8 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.2163, allocations: 16 kB / 403.9 MB, free: 18.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.837e-05/0.2164, allocations: 43.92 kB / 403.9 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.2164, allocations: 20 kB / 403.9 MB, free: 18.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000271/0.2167, allocations: 355.1 kB / 404.3 MB, free: 18.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2167, allocations: 0 / 404.3 MB, free: 18.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000539/0.2172, allocations: 144 kB / 404.4 MB, free: 18.09 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * 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 (56): * Single equations (assignments): 55 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009127/0.2182, allocations: 1.341 MB / 405.7 MB, free: 16.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007072/0.2189, allocations: 0.5724 MB / 406.3 MB, free: 16.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2189, allocations: 4 kB / 406.3 MB, free: 16.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002887/0.2192, allocations: 307.6 kB / 406.6 MB, free: 15.78 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000707/0.2199, allocations: 101.9 kB / 406.7 MB, free: 15.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004702/0.2246, allocations: 4.772 MB / 411.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.225, allocations: 0.9613 MB / 412.5 MB, free: 9.699 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002966/0.2253, allocations: 327.3 kB / 412.8 MB, free: 9.379 MB / 298.7 MB Notification: Performance of SimCode: time 9.62e-07/0.2253, allocations: 0 / 412.8 MB, free: 9.379 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.551/3.776, allocations: 14.72 MB / 427.5 MB, free: 10.63 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches