Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 207.3 kB / 17.99 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 226.7 MB / 245.5 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009981/0.000998, allocations: 104.9 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009114/0.0009114, allocations: 47.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2016/0.2026, allocations: 50.45 MB / 407 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.007716/0.2104, allocations: 4.583 MB / 411.6 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002688/0.2131, allocations: 1.353 MB / 413 MB, free: 21.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004176/0.2135, allocations: 19.88 kB / 413 MB, free: 21.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004721/0.214, allocations: 134.9 kB / 413.1 MB, free: 21.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004373/0.2145, allocations: 134.8 kB / 413.3 MB, free: 21.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007934/0.2153, allocations: 323.7 kB / 413.6 MB, free: 21.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009461/0.2163, allocations: 0.9313 MB / 414.5 MB, free: 20.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006339/0.2169, allocations: 378.9 kB / 414.9 MB, free: 19.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004093/0.2173, allocations: 302.5 kB / 415.2 MB, free: 19.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003342/0.2177, allocations: 330 kB / 415.5 MB, free: 19.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.6e-05/0.2178, allocations: 48 kB / 415.5 MB, free: 19.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002591/0.2181, allocations: 83.92 kB / 415.6 MB, free: 19.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.2182, allocations: 143.3 kB / 415.8 MB, free: 19.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003288/0.2186, allocations: 401.5 kB / 416.2 MB, free: 18.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009099/0.2195, allocations: 0.9628 MB / 417.1 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.2195, allocations: 0 / 417.1 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2195, allocations: 7.984 kB / 417.1 MB, free: 17.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.501e-05/0.2196, allocations: 0 / 417.1 MB, free: 17.66 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.001892/0.2215, allocations: 1.142 MB / 418.3 MB, free: 16.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.2215, allocations: 8.031 kB / 418.3 MB, free: 16.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003158/0.2218, allocations: 114.8 kB / 418.4 MB, free: 16.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.2229, allocations: 0.5955 MB / 419 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.686e-05/0.223, allocations: 62 kB / 419 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.2231, allocations: 87.91 kB / 419.1 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.2248, allocations: 0.8409 MB / 420 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.632e-05/0.2249, allocations: 15.78 kB / 420 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.619e-05/0.225, allocations: 40 kB / 420 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.319e-05/0.225, allocations: 23.94 kB / 420 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.2262, allocations: 475.3 kB / 420.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004062/0.2303, allocations: 4.396 MB / 424.9 MB, free: 9.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007826/0.2311, allocations: 299.2 kB / 425.2 MB, free: 9.184 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003188/0.2315, allocations: 141.6 kB / 425.3 MB, free: 9.043 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002622/0.2317, allocations: 170.6 kB / 425.5 MB, free: 8.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.2318, allocations: 42.94 kB / 425.5 MB, free: 8.789 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 3.707e-06/0.2318, allocations: 0 / 425.5 MB, free: 8.789 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.004351/0.2361, allocations: 1.732 MB / 427.3 MB, free: 6.961 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.689e-05/0.2362, allocations: 59.97 kB / 427.3 MB, free: 6.891 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006992/0.2369, allocations: 0.5314 MB / 427.9 MB, free: 6.348 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.2369, allocations: 33.7 kB / 427.9 MB, free: 6.309 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/0.2372, allocations: 490.3 kB / 428.4 MB, free: 5.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.2374, allocations: 208.9 kB / 428.6 MB, free: 5.613 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002125/0.2376, allocations: 134.6 kB / 428.7 MB, free: 5.473 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.2377, allocations: 386.8 kB / 429.1 MB, free: 5.086 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004129/0.2382, allocations: 161.9 kB / 429.3 MB, free: 4.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005513/0.2387, allocations: 463.1 kB / 429.7 MB, free: 4.344 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009757/0.2397, allocations: 0.6634 MB / 430.4 MB, free: 3.551 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.2398, allocations: 4 kB / 430.4 MB, free: 3.547 MB / 298.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001471/0.2412, allocations: 0.7377 MB / 431.1 MB, free: 2.801 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.2413, allocations: 8 kB / 431.1 MB, free: 2.793 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.2413, allocations: 12 kB / 431.1 MB, free: 2.781 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001934/0.2415, allocations: 53.66 kB / 431.2 MB, free: 2.727 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009222/0.2424, allocations: 187.7 kB / 431.4 MB, free: 2.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.2437, allocations: 1.506 MB / 432.9 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004659/0.2442, allocations: 36.05 kB / 432.9 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-05/0.2443, allocations: 36 kB / 432.9 MB, free: 0.8281 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 (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.0003362/0.2447, allocations: 231.6 kB / 433.2 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.2448, allocations: 75 kB / 433.2 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001618/0.245, allocations: 79.08 kB / 433.3 MB, free: 448 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.393e-06/0.245, allocations: 7.938 kB / 433.3 MB, free: 440 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.245, allocations: 3.938 kB / 433.3 MB, free: 436 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.245, allocations: 7.984 kB / 433.3 MB, free: 428 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002864/0.2479, allocations: 1.414 MB / 434.8 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.876e-06/0.2479, allocations: 4.344 kB / 434.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008496/0.2488, allocations: 123.8 kB / 434.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001031/0.2489, allocations: 20.86 kB / 434.9 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.728e-05/0.249, allocations: 19.94 kB / 434.9 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.2502, allocations: 1.28 MB / 436.2 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.2503, allocations: 4 kB / 436.2 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007725/0.258, allocations: 4.419 MB / 440.6 MB, free: 8.578 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001776/0.2582, allocations: 136.2 kB / 440.8 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.828e-05/0.2583, allocations: 24.09 kB / 440.8 MB, free: 8.402 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003761/0.2587, allocations: 15.98 kB / 440.8 MB, free: 8.387 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.2588, allocations: 39.98 kB / 440.8 MB, free: 8.348 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.286e-05/0.2589, allocations: 16 kB / 440.8 MB, free: 8.332 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006368/0.2595, allocations: 367.1 kB / 441.2 MB, free: 7.977 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2596, allocations: 0 / 441.2 MB, free: 7.977 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001412/0.261, allocations: 183.9 kB / 441.4 MB, free: 7.797 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.0002092/0.2612, allocations: 119.1 kB / 441.5 MB, free: 7.668 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.2628, allocations: 0.5797 MB / 442.1 MB, free: 7.066 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2628, allocations: 0 / 442.1 MB, free: 7.066 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006405/0.2634, allocations: 308.3 kB / 442.4 MB, free: 6.754 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008845/0.2643, allocations: 102.6 kB / 442.5 MB, free: 6.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004367/0.2687, allocations: 2.683 MB / 445.2 MB, free: 3.887 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005641/0.2693, allocations: 0.9809 MB / 446.1 MB, free: 2.879 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003132/0.2696, allocations: 85.92 kB / 446.2 MB, free: 2.793 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.2698, allocations: 63.42 kB / 446.3 MB, free: 2.73 MB / 314.7 MB Notification: Performance of SimCode: time 6.01e-07/0.2698, allocations: 0 / 446.3 MB, free: 2.73 MB / 314.7 MB Notification: Performance of Templates: time 0.01099/0.2808, allocations: 5.776 MB / 452.1 MB, free: 12.98 MB / 330.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@2/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