Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 200.4 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007568/0.0007569, allocations: 96.28 kB / 299.9 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002198/0.0002198, allocations: 11.98 kB / 360.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1998/0.2001, allocations: 51.41 MB / 412 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003168/0.2033, allocations: 3.933 MB / 416 MB, free: 21.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.205, allocations: 1.929 MB / 417.9 MB, free: 19.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002579/0.2052, allocations: 19.88 kB / 417.9 MB, free: 19.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002262/0.2055, allocations: 134.9 kB / 418.1 MB, free: 19.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002369/0.2057, allocations: 130.8 kB / 418.2 MB, free: 19.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004937/0.2062, allocations: 319.7 kB / 418.5 MB, free: 19.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005827/0.2068, allocations: 0.9118 MB / 419.4 MB, free: 18.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003928/0.2072, allocations: 374.9 kB / 419.8 MB, free: 18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002648/0.2075, allocations: 266.5 kB / 420 MB, free: 17.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.2077, allocations: 286.1 kB / 420.3 MB, free: 17.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.121e-05/0.2078, allocations: 28 kB / 420.3 MB, free: 17.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.2079, allocations: 71.98 kB / 420.4 MB, free: 17.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.799e-05/0.208, allocations: 127.2 kB / 420.5 MB, free: 17.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.2082, allocations: 391.2 kB / 420.9 MB, free: 16.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005192/0.2087, allocations: 0.9391 MB / 421.9 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.2087, allocations: 0 / 421.9 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2087, allocations: 0 / 421.9 MB, free: 15.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.2087, allocations: 0 / 421.9 MB, free: 15.91 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.0009977/0.2097, allocations: 0.986 MB / 422.8 MB, free: 14.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.2098, allocations: 16.03 kB / 422.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000186/0.21, allocations: 114.7 kB / 423 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005697/0.2106, allocations: 0.5916 MB / 423.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.22e-05/0.2106, allocations: 58 kB / 423.6 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.613e-05/0.2107, allocations: 83.94 kB / 423.7 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009475/0.2117, allocations: 0.8442 MB / 424.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.915e-05/0.2117, allocations: 15.84 kB / 424.6 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.515e-05/0.2117, allocations: 36 kB / 424.6 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.2118, allocations: 20 kB / 424.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006818/0.2125, allocations: 467.3 kB / 425.1 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002298/0.2148, allocations: 4.412 MB / 429.5 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004394/0.2152, allocations: 303.3 kB / 429.8 MB, free: 7.578 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.2154, allocations: 145.5 kB / 429.9 MB, free: 7.434 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001442/0.2156, allocations: 170.6 kB / 430.1 MB, free: 7.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.2156, allocations: 34.94 kB / 430.1 MB, free: 7.188 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 1.813e-06/0.2156, allocations: 4 kB / 430.1 MB, free: 7.184 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.00247/0.2181, allocations: 1.745 MB / 431.9 MB, free: 5.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.02e-05/0.2181, allocations: 59.97 kB / 431.9 MB, free: 5.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004143/0.2185, allocations: 0.5313 MB / 432.5 MB, free: 4.727 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.2185, allocations: 33.7 kB / 432.5 MB, free: 4.688 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.2187, allocations: 478.5 kB / 433 MB, free: 4.211 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.878e-05/0.2188, allocations: 212.9 kB / 433.2 MB, free: 4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.117e-05/0.2189, allocations: 24 kB / 433.2 MB, free: 3.977 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.742e-05/0.2189, allocations: 382.8 kB / 433.6 MB, free: 3.594 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.2192, allocations: 157.9 kB / 433.7 MB, free: 3.438 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000306/0.2195, allocations: 459.1 kB / 434.2 MB, free: 2.855 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005683/0.2201, allocations: 0.6712 MB / 434.8 MB, free: 2.055 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2201, allocations: 0 / 434.8 MB, free: 2.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0008303/0.2209, allocations: 0.7422 MB / 435.6 MB, free: 1.305 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.2209, allocations: 8 kB / 435.6 MB, free: 1.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.221, allocations: 12 kB / 435.6 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001275/0.2211, allocations: 40.84 kB / 435.6 MB, free: 1.242 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004874/0.2216, allocations: 187.7 kB / 435.8 MB, free: 1.059 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009131/0.2225, allocations: 1.51 MB / 437.3 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002728/0.2228, allocations: 28 kB / 437.4 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.214e-05/0.2228, allocations: 36 kB / 437.4 MB, free: 15.35 MB / 314.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 (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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002523/0.2231, allocations: 237.6 kB / 437.6 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/0.2232, allocations: 75.06 kB / 437.7 MB, free: 15.03 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.2233, allocations: 79.02 kB / 437.8 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.2233, allocations: 11.88 kB / 437.8 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2233, allocations: 0 / 437.8 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.2233, allocations: 3.984 kB / 437.8 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/0.225, allocations: 1.421 MB / 439.2 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.225, allocations: 4 kB / 439.2 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004537/0.2255, allocations: 115.8 kB / 439.3 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-05/0.2256, allocations: 29.19 kB / 439.4 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.2256, allocations: 12 kB / 439.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007199/0.2263, allocations: 1.272 MB / 440.6 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2263, allocations: 4 kB / 440.7 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009455/0.2273, allocations: 0.7838 MB / 441.4 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.433e-05/0.2274, allocations: 136.3 kB / 441.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.236e-05/0.2275, allocations: 16 kB / 441.6 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.2277, allocations: 15.98 kB / 441.6 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.582e-05/0.2277, allocations: 39.89 kB / 441.6 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.2278, allocations: 20 kB / 441.7 MB, free: 10.75 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003429/0.2281, allocations: 359.1 kB / 442 MB, free: 10.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2281, allocations: 0 / 442 MB, free: 10.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005326/0.2287, allocations: 136 kB / 442.1 MB, free: 10.27 MB / 314.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 (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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001423/0.2288, allocations: 131.2 kB / 442.3 MB, free: 10.14 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008534/0.2297, allocations: 0.5767 MB / 442.8 MB, free: 9.547 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2297, allocations: 3.938 kB / 442.9 MB, free: 9.543 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003638/0.2301, allocations: 311 kB / 443.2 MB, free: 9.227 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007288/0.2308, allocations: 102.9 kB / 443.3 MB, free: 9.129 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.2334, allocations: 2.39 MB / 445.6 MB, free: 6.68 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004386/0.2338, allocations: 0.9652 MB / 446.6 MB, free: 5.688 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002664/0.2341, allocations: 89.91 kB / 446.7 MB, free: 5.598 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.2342, allocations: 59.42 kB / 446.8 MB, free: 5.539 MB / 314.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2342, allocations: 0 / 446.8 MB, free: 5.539 MB / 314.7 MB Notification: Performance of Templates: time 0.009508/0.2437, allocations: 5.006 MB / 451.8 MB, free: 0.5547 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches