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.001642/0.001642, allocations: 120.9 kB / 17.83 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001825/0.001825, allocations: 208.3 kB / 18.79 MB, free: 4.102 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.463/1.463, allocations: 230.4 MB / 250 MB, free: 8.973 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.002154/0.002154, allocations: 63.84 kB / 367.3 MB, free: 7.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2862, allocations: 53.31 MB / 420.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006463/0.2927, allocations: 4.605 MB / 425.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002675/0.2953, allocations: 1.407 MB / 426.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003012/0.2957, allocations: 23.88 kB / 426.7 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003911/0.296, allocations: 174.2 kB / 426.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000349/0.2964, allocations: 170.3 kB / 427 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007617/0.2972, allocations: 379.4 kB / 427.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.2982, allocations: 0.9743 MB / 428.4 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004421/0.2986, allocations: 287 kB / 428.6 MB, free: 300 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004617/0.2991, allocations: 342.6 kB / 429 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004024/0.2995, allocations: 341.9 kB / 429.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001/0.2996, allocations: 72 kB / 429.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000224/0.2998, allocations: 127.9 kB / 429.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.2999, allocations: 171.3 kB / 429.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003675/0.3003, allocations: 433.5 kB / 430.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.3015, allocations: 1.108 MB / 431.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.3015, allocations: 0 / 431.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.3015, allocations: 0 / 431.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.708e-05/0.3015, allocations: 0 / 431.2 MB, free: 13.72 MB / 350.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.001598/0.3031, allocations: 1.182 MB / 432.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.3031, allocations: 8.031 kB / 432.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002527/0.3034, allocations: 119.3 kB / 432.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009644/0.3043, allocations: 0.6428 MB / 433.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.022e-05/0.3044, allocations: 58 kB / 433.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.3045, allocations: 83.95 kB / 433.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.3058, allocations: 0.8403 MB / 434.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.448e-05/0.3058, allocations: 7.938 kB / 434.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.005e-05/0.3059, allocations: 44 kB / 434.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.087e-05/0.3059, allocations: 20 kB / 434.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008984/0.3068, allocations: 471.3 kB / 434.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003831/0.3107, allocations: 4.381 MB / 439 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005733/0.3112, allocations: 279.5 kB / 439.3 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002357/0.3115, allocations: 129.6 kB / 439.4 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001881/0.3117, allocations: 170.5 kB / 439.6 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.3117, allocations: 46.88 kB / 439.7 MB, free: 4.801 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.773e-06/0.3117, allocations: 0 / 439.7 MB, free: 4.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.00339/0.3151, allocations: 1.747 MB / 441.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.3151, allocations: 63.97 kB / 441.5 MB, free: 2.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006482/0.3158, allocations: 0.543 MB / 442 MB, free: 2.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.049e-05/0.3158, allocations: 37.7 kB / 442 MB, free: 2.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003637/0.3162, allocations: 483.8 kB / 442.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00019/0.3164, allocations: 226.1 kB / 442.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.3165, allocations: 138.6 kB / 442.9 MB, free: 1.457 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.3167, allocations: 382.8 kB / 443.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003177/0.3171, allocations: 165.9 kB / 443.4 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/0.3176, allocations: 455.2 kB / 443.9 MB, free: 348 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009053/0.3185, allocations: 0.6634 MB / 444.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.3185, allocations: 8 kB / 444.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001236/0.3198, allocations: 0.746 MB / 445.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.3198, allocations: 12 kB / 445.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.3198, allocations: 8 kB / 445.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001693/0.32, allocations: 44.84 kB / 445.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005866/0.3205, allocations: 184.3 kB / 445.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001616/0.3222, allocations: 1.697 MB / 447.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.3225, allocations: 24 kB / 447.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.842e-05/0.3225, allocations: 40 kB / 447.3 MB, free: 12.63 MB / 366.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.0003092/0.3228, allocations: 233.5 kB / 447.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.3229, allocations: 75.47 kB / 447.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001329/0.3231, allocations: 79.08 kB / 447.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.3231, allocations: 4 kB / 447.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3231, allocations: 0 / 447.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.3231, allocations: 8.234 kB / 447.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.3253, allocations: 1.414 MB / 449.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.3253, allocations: 4 kB / 449.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004766/0.3258, allocations: 115.8 kB / 449.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.436e-05/0.3258, allocations: 20.84 kB / 449.2 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.425e-05/0.3259, allocations: 16.34 kB / 449.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009801/0.3268, allocations: 1.382 MB / 450.6 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3269, allocations: 3.938 kB / 450.6 MB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.328, allocations: 0.774 MB / 451.4 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/0.3281, allocations: 148.6 kB / 451.5 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.714e-05/0.3282, allocations: 16 kB / 451.6 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.3284, allocations: 12 kB / 451.6 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.171e-05/0.3285, allocations: 43.92 kB / 451.6 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.74e-05/0.3285, allocations: 16 kB / 451.6 MB, free: 7.941 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004675/0.329, allocations: 363.1 kB / 452 MB, free: 7.594 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.329, allocations: 0 / 452 MB, free: 7.594 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006049/0.3296, allocations: 144 kB / 452.1 MB, free: 7.453 MB / 366.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.0001376/0.3297, allocations: 119.2 kB / 452.2 MB, free: 7.328 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009614/0.3307, allocations: 0.5718 MB / 452.8 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3307, allocations: 0 / 452.8 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004599/0.3312, allocations: 296.2 kB / 453.1 MB, free: 6.445 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005965/0.3317, allocations: 103.2 kB / 453.2 MB, free: 6.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002878/0.3346, allocations: 1.883 MB / 455.1 MB, free: 4.387 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006295/0.3353, allocations: 0.9613 MB / 456 MB, free: 3.398 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002479/0.3355, allocations: 86.02 kB / 456.1 MB, free: 3.312 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.3356, allocations: 59.42 kB / 456.2 MB, free: 3.254 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3356, allocations: 4 kB / 456.2 MB, free: 3.25 MB / 366.1 MB Notification: Performance of Templates: time 0.01264/0.3483, allocations: 5.516 MB / 461.7 MB, free: 13.75 MB / 382.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/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