Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 108.2 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001733/0.001733, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 241.7 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 52.05 kB / 300.6 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09621/0.09741, allocations: 49.45 MB / 350.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006025/0.1035, allocations: 4.559 MB / 354.6 MB, free: 288 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002721/0.1062, allocations: 1.31 MB / 355.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007029/0.107, allocations: 23.88 kB / 355.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005621/0.1075, allocations: 138.9 kB / 356.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000657/0.1083, allocations: 130.8 kB / 356.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009345/0.1092, allocations: 319.7 kB / 356.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001183/0.1104, allocations: 0.9196 MB / 357.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005794/0.111, allocations: 382.9 kB / 357.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004453/0.1115, allocations: 286.6 kB / 358.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003111/0.1118, allocations: 333.9 kB / 358.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.456e-05/0.1119, allocations: 40 kB / 358.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002002/0.1121, allocations: 83.98 kB / 358.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.1122, allocations: 143.3 kB / 358.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003254/0.1125, allocations: 397.5 kB / 359.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006701/0.1132, allocations: 0.7718 MB / 359.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1132, allocations: 3.938 kB / 359.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.1132, allocations: 0 / 359.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.1132, allocations: 0 / 359.8 MB, free: 11.01 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.00158/0.1148, allocations: 1.146 MB / 361 MB, free: 9.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.1149, allocations: 11.97 kB / 361 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.115, allocations: 106.8 kB / 361.1 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007449/0.1158, allocations: 0.5955 MB / 361.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.478e-05/0.1158, allocations: 54 kB / 361.8 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.1159, allocations: 91.84 kB / 361.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.1172, allocations: 0.8403 MB / 362.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.417e-05/0.1173, allocations: 15.83 kB / 362.7 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-05/0.1173, allocations: 44 kB / 362.7 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.1174, allocations: 20 kB / 362.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000857/0.1182, allocations: 467.3 kB / 363.2 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003683/0.1219, allocations: 4.396 MB / 367.6 MB, free: 2.836 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005712/0.1225, allocations: 291.5 kB / 367.9 MB, free: 2.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002454/0.1228, allocations: 149.5 kB / 368 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002607/0.1231, allocations: 170.6 kB / 368.2 MB, free: 2.191 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.1231, allocations: 42.92 kB / 368.3 MB, free: 2.141 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 3.387e-06/0.1231, allocations: 0 / 368.3 MB, free: 2.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003379/0.1265, allocations: 1.728 MB / 370 MB, free: 336 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.1266, allocations: 63.97 kB / 370 MB, free: 260 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1607/0.2873, allocations: 0.532 MB / 370.6 MB, free: 25.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.814e-05/0.2875, allocations: 37.77 kB / 370.6 MB, free: 25.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003458/0.2878, allocations: 482.4 kB / 371.1 MB, free: 25.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002248/0.288, allocations: 207.2 kB / 371.3 MB, free: 25.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002144/0.2883, allocations: 143.5 kB / 371.4 MB, free: 25.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.2884, allocations: 380.6 kB / 371.8 MB, free: 25.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003647/0.2888, allocations: 162 kB / 372 MB, free: 25.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004401/0.2892, allocations: 459.1 kB / 372.4 MB, free: 24.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007299/0.29, allocations: 0.6608 MB / 373.1 MB, free: 24.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.29, allocations: 7.094 kB / 373.1 MB, free: 24.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001186/0.2912, allocations: 0.7377 MB / 373.8 MB, free: 23.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.458e-05/0.2912, allocations: 13.42 kB / 373.8 MB, free: 23.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-05/0.2913, allocations: 13.94 kB / 373.8 MB, free: 23.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002219/0.2915, allocations: 47 kB / 373.9 MB, free: 23.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005775/0.2921, allocations: 185.5 kB / 374.1 MB, free: 23.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.2931, allocations: 1.518 MB / 375.6 MB, free: 22.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003516/0.2935, allocations: 33.05 kB / 375.6 MB, free: 22.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.406e-05/0.2935, allocations: 34.88 kB / 375.7 MB, free: 22.42 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.0002972/0.2938, allocations: 232.5 kB / 375.9 MB, free: 22.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.294, allocations: 74.53 kB / 376 MB, free: 22.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001311/0.2941, allocations: 76.83 kB / 376 MB, free: 22.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.2941, allocations: 5.469 kB / 376 MB, free: 22.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.2941, allocations: 1.766 kB / 376 MB, free: 22.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.515e-06/0.2941, allocations: 2.672 kB / 376 MB, free: 22.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.2961, allocations: 1.421 MB / 377.5 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.2961, allocations: 3.312 kB / 377.5 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004711/0.2966, allocations: 117.5 kB / 377.6 MB, free: 21.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.783e-05/0.2967, allocations: 23.72 kB / 377.6 MB, free: 21.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-05/0.2967, allocations: 16.23 kB / 377.6 MB, free: 21.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006145/0.2973, allocations: 1.275 MB / 378.9 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.2973, allocations: 3.953 kB / 378.9 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.2984, allocations: 0.7755 MB / 379.7 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.2985, allocations: 142 kB / 379.8 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.393e-05/0.2986, allocations: 15.95 kB / 379.8 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.2988, allocations: 14.11 kB / 379.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.067e-05/0.2989, allocations: 49.64 kB / 379.9 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.2989, allocations: 18.17 kB / 379.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004157/0.2993, allocations: 359.3 kB / 380.3 MB, free: 19.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2993, allocations: 0 / 380.3 MB, free: 19.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006871/0.3, allocations: 142.1 kB / 380.4 MB, free: 19.11 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.0001251/0.3002, allocations: 125.2 kB / 380.5 MB, free: 19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.3012, allocations: 0.5833 MB / 381.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3012, allocations: 4.125 kB / 381.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003958/0.3016, allocations: 308.7 kB / 381.4 MB, free: 18.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006421/0.3023, allocations: 95.84 kB / 381.5 MB, free: 18.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002917/0.3052, allocations: 2.261 MB / 383.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004833/0.3057, allocations: 0.9645 MB / 384.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.3059, allocations: 64.39 kB / 384.8 MB, free: 16.15 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3059, allocations: 0 / 384.8 MB, free: 16.15 MB / 302.1 MB Notification: Performance of Templates: time 0.01775/0.3236, allocations: 12.31 MB / 397.1 MB, free: 10.65 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches