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.001637/0.001637, allocations: 109.8 kB / 18.3 MB, free: 4.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001501/0.001501, allocations: 207.9 kB / 19.25 MB, free: 3.891 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.443/1.443, allocations: 227.7 MB / 247.7 MB, free: 10.29 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.001984/0.001984, allocations: 61.22 kB / 307.9 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1049, allocations: 50.54 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006549/0.1115, allocations: 4.577 MB / 363 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002973/0.1146, allocations: 1.415 MB / 364.4 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004384/0.115, allocations: 23.88 kB / 364.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004334/0.1155, allocations: 178.2 kB / 364.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003843/0.1159, allocations: 162.4 kB / 364.8 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008865/0.1168, allocations: 375.4 kB / 365.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001039/0.1179, allocations: 0.9705 MB / 366.1 MB, free: 6.215 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006119/0.1185, allocations: 426.9 kB / 366.5 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004667/0.119, allocations: 334.6 kB / 366.9 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003737/0.1193, allocations: 338 kB / 367.2 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.1195, allocations: 72 kB / 367.3 MB, free: 5.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000245/0.1197, allocations: 127.9 kB / 367.4 MB, free: 4.918 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.1199, allocations: 179.3 kB / 367.6 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003855/0.1202, allocations: 417.5 kB / 368 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.1213, allocations: 1.059 MB / 369 MB, free: 3.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1214, allocations: 0 / 369 MB, free: 3.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1214, allocations: 4 kB / 369 MB, free: 3.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.1214, allocations: 0 / 369 MB, free: 3.266 MB / 302.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.00169/0.1231, allocations: 1.146 MB / 370.2 MB, free: 2.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1231, allocations: 12.03 kB / 370.2 MB, free: 2.059 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002807/0.1234, allocations: 114.7 kB / 370.3 MB, free: 1.945 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000823/0.1243, allocations: 0.5954 MB / 370.9 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.929e-05/0.1243, allocations: 58 kB / 370.9 MB, free: 1.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.1244, allocations: 83.98 kB / 371 MB, free: 1.164 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.1258, allocations: 0.8481 MB / 371.9 MB, free: 212 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.719e-05/0.1258, allocations: 11.84 kB / 371.9 MB, free: 200 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.863e-05/0.1259, allocations: 32 kB / 371.9 MB, free: 168 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.192e-05/0.1259, allocations: 20 kB / 371.9 MB, free: 148 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1587/0.2846, allocations: 471.8 kB / 372.4 MB, free: 19.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003613/0.2883, allocations: 4.396 MB / 376.8 MB, free: 16.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006137/0.2889, allocations: 309.9 kB / 377.1 MB, free: 16.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002286/0.2892, allocations: 144.3 kB / 377.2 MB, free: 16.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002539/0.2894, allocations: 171.9 kB / 377.4 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.2895, allocations: 36.97 kB / 377.4 MB, free: 16.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 3.116e-06/0.2895, allocations: 2.719 kB / 377.4 MB, free: 16.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.00326/0.2927, allocations: 1.733 MB / 379.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.2928, allocations: 60.44 kB / 379.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006329/0.2934, allocations: 0.5341 MB / 379.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.2935, allocations: 35.08 kB / 379.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002972/0.2938, allocations: 480 kB / 380.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.2939, allocations: 219.9 kB / 380.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.2941, allocations: 140 kB / 380.6 MB, free: 14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.995e-05/0.2942, allocations: 388.1 kB / 381 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002649/0.2944, allocations: 156 kB / 381.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003799/0.2948, allocations: 461.1 kB / 381.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006673/0.2955, allocations: 0.6617 MB / 382.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.2955, allocations: 2.531 kB / 382.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001166/0.2967, allocations: 0.7356 MB / 383 MB, free: 12.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.2967, allocations: 11.81 kB / 383 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.2968, allocations: 13.83 kB / 383 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001867/0.2969, allocations: 55.64 kB / 383.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005609/0.2975, allocations: 182.1 kB / 383.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.2986, allocations: 1.684 MB / 385 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.299, allocations: 25.3 kB / 385 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.611e-05/0.299, allocations: 38.34 kB / 385 MB, free: 10.57 MB / 302.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.0002666/0.2993, allocations: 233.8 kB / 385.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.26e-05/0.2994, allocations: 73.45 kB / 385.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.822e-05/0.2995, allocations: 80.03 kB / 385.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.2995, allocations: 9.844 kB / 385.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.2995, allocations: 1.094 kB / 385.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.2995, allocations: 2.672 kB / 385.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001838/0.3014, allocations: 1.421 MB / 386.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.3014, allocations: 1.859 kB / 386.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004479/0.3018, allocations: 113.8 kB / 386.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.148e-05/0.3019, allocations: 24.16 kB / 387 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.037e-05/0.302, allocations: 18.7 kB / 387 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006071/0.3026, allocations: 1.373 MB / 388.4 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.3026, allocations: 8.219 kB / 388.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009275/0.3035, allocations: 0.7755 MB / 389.1 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.582e-05/0.3036, allocations: 133.8 kB / 389.3 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.475e-05/0.3037, allocations: 18.98 kB / 389.3 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.3039, allocations: 14.39 kB / 389.3 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.223e-05/0.304, allocations: 39.73 kB / 389.3 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.877e-05/0.304, allocations: 18.11 kB / 389.4 MB, free: 7.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004103/0.3044, allocations: 364.7 kB / 389.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3044, allocations: 4 kB / 389.7 MB, free: 7.168 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006886/0.3051, allocations: 137.9 kB / 389.9 MB, free: 7.148 MB / 302.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.0001317/0.3053, allocations: 122.4 kB / 390 MB, free: 7.039 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.3064, allocations: 0.6124 MB / 390.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3064, allocations: 5.438 kB / 390.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003585/0.3067, allocations: 311.7 kB / 390.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006165/0.3074, allocations: 99.73 kB / 391 MB, free: 6.535 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002716/0.3101, allocations: 1.917 MB / 392.9 MB, free: 5.242 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005018/0.3106, allocations: 0.964 MB / 393.9 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.3108, allocations: 63.89 kB / 393.9 MB, free: 4.52 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3108, allocations: 1.25 kB / 393.9 MB, free: 4.52 MB / 302.1 MB Notification: Performance of Templates: time 0.01849/0.3293, allocations: 12.35 MB / 406.3 MB, free: 13.39 MB / 318.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 -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