Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001905/0.001905, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002183/0.002183, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.441/1.441, allocations: 227.7 MB / 247.9 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 59.91 kB / 359.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.269, allocations: 50.53 MB / 410.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.008467/0.2775, allocations: 4.601 MB / 414.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004091/0.2816, allocations: 1.407 MB / 416.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009225/0.2825, allocations: 27.81 kB / 416.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006676/0.2832, allocations: 178.2 kB / 416.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006942/0.2839, allocations: 162.3 kB / 416.6 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.2851, allocations: 383.4 kB / 416.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001489/0.2866, allocations: 0.9781 MB / 417.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000685/0.2873, allocations: 283 kB / 418.2 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006689/0.2879, allocations: 342.6 kB / 418.5 MB, free: 9.055 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000463/0.2884, allocations: 338 kB / 418.8 MB, free: 8.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001526/0.2885, allocations: 72 kB / 418.9 MB, free: 8.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002763/0.2888, allocations: 123.9 kB / 419 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001992/0.289, allocations: 179.3 kB / 419.2 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005026/0.2895, allocations: 429.5 kB / 419.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001412/0.2909, allocations: 1.112 MB / 420.7 MB, free: 6.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2909, allocations: 0 / 420.7 MB, free: 6.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2909, allocations: 0 / 420.7 MB, free: 6.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.957e-05/0.291, allocations: 0 / 420.7 MB, free: 6.816 MB / 334.1 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.00224/0.2932, allocations: 1.172 MB / 421.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.2933, allocations: 12.03 kB / 421.9 MB, free: 5.578 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003113/0.2936, allocations: 123.3 kB / 422 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.2948, allocations: 0.6312 MB / 422.7 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.624e-05/0.2948, allocations: 61.94 kB / 422.7 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.2949, allocations: 83.95 kB / 422.8 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.2964, allocations: 0.8442 MB / 423.7 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.591e-05/0.2964, allocations: 11.94 kB / 423.7 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.98e-05/0.2965, allocations: 36 kB / 423.7 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.072e-05/0.2965, allocations: 24 kB / 423.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009184/0.2974, allocations: 471.3 kB / 424.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004324/0.3017, allocations: 4.37 MB / 428.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006346/0.3024, allocations: 295.4 kB / 428.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.3026, allocations: 125.6 kB / 429 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002176/0.3028, allocations: 174.6 kB / 429.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/0.3029, allocations: 38.94 kB / 429.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 3.606e-06/0.3029, allocations: 0 / 429.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.00379/0.3067, allocations: 1.754 MB / 430.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.3067, allocations: 59.91 kB / 431 MB, free: 11.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00072/0.3074, allocations: 0.547 MB / 431.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/0.3075, allocations: 33.7 kB / 431.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003835/0.3079, allocations: 487.8 kB / 432.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.308, allocations: 222.1 kB / 432.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/0.3082, allocations: 142.6 kB / 432.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.3084, allocations: 382.8 kB / 432.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.3087, allocations: 161.9 kB / 432.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005028/0.3092, allocations: 455.2 kB / 433.4 MB, free: 9.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008816/0.3101, allocations: 0.6634 MB / 434.1 MB, free: 8.648 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.3101, allocations: 4 kB / 434.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001255/0.3114, allocations: 0.7422 MB / 434.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3114, allocations: 8 kB / 434.8 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.3114, allocations: 12 kB / 434.8 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000189/0.3116, allocations: 44.84 kB / 434.9 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005773/0.3122, allocations: 192.2 kB / 435 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001564/0.3137, allocations: 1.693 MB / 436.7 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/0.314, allocations: 24 kB / 436.8 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.804e-05/0.3141, allocations: 40 kB / 436.8 MB, free: 5.734 MB / 350.1 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.00034/0.3144, allocations: 229.5 kB / 437 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.3145, allocations: 79.47 kB / 437.1 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001422/0.3147, allocations: 75.08 kB / 437.2 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.3147, allocations: 8 kB / 437.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3147, allocations: 0 / 437.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.3147, allocations: 8.047 kB / 437.2 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00215/0.3168, allocations: 1.425 MB / 438.6 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.3169, allocations: 4 kB / 438.6 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004971/0.3173, allocations: 111.9 kB / 438.7 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-05/0.3174, allocations: 28.78 kB / 438.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.115e-05/0.3175, allocations: 16.34 kB / 438.8 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001059/0.3185, allocations: 1.371 MB / 440.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.3185, allocations: 4 kB / 440.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.3196, allocations: 0.774 MB / 440.9 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/0.3198, allocations: 144.5 kB / 441.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.767e-05/0.3198, allocations: 23.98 kB / 441.1 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.32, allocations: 12 kB / 441.1 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.464e-05/0.3201, allocations: 43.92 kB / 441.1 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.712e-05/0.3201, allocations: 16 kB / 441.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004092/0.3206, allocations: 367.1 kB / 441.5 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3206, allocations: 0 / 441.5 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006537/0.3212, allocations: 144 kB / 441.7 MB, free: 0.5469 MB / 350.1 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.0001396/0.3214, allocations: 116.4 kB / 441.8 MB, free: 436 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009927/0.3223, allocations: 0.5717 MB / 442.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3223, allocations: 0 / 442.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004279/0.3228, allocations: 296.2 kB / 442.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006398/0.3234, allocations: 107.3 kB / 442.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002928/0.3263, allocations: 1.875 MB / 444.6 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006492/0.327, allocations: 0.9652 MB / 445.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002703/0.3273, allocations: 90 kB / 445.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.3274, allocations: 59.42 kB / 445.7 MB, free: 12.35 MB / 366.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3274, allocations: 4 kB / 445.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of Templates: time 0.01314/0.3405, allocations: 5.478 MB / 451.2 MB, free: 6.895 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches