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.001446/0.001446, allocations: 107.5 kB / 16.92 MB, free: 5.664 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.001672/0.001672, allocations: 191.5 kB / 17.85 MB, free: 5.176 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.381/1.381, allocations: 222.9 MB / 241.5 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001008/0.001009, allocations: 42.08 kB / 300.6 MB, free: 5.922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1034, allocations: 49.44 MB / 350 MB, free: 4.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005832/0.1093, allocations: 4.572 MB / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002393/0.1117, allocations: 1.333 MB / 355.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005277/0.1123, allocations: 19.88 kB / 356 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000461/0.1128, allocations: 182.2 kB / 356.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004389/0.1132, allocations: 166.3 kB / 356.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007941/0.114, allocations: 367.5 kB / 356.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009443/0.115, allocations: 0.9666 MB / 357.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006143/0.1156, allocations: 414.9 kB / 358 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003824/0.116, allocations: 330.6 kB / 358.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003215/0.1164, allocations: 342 kB / 358.7 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.201e-05/0.1165, allocations: 72 kB / 358.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.1167, allocations: 120 kB / 358.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001239/0.1168, allocations: 171.3 kB / 359.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003464/0.1172, allocations: 429.5 kB / 359.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009777/0.1181, allocations: 1.047 MB / 360.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.1182, allocations: 4 kB / 360.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1182, allocations: 0 / 360.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.1182, allocations: 3.938 kB / 360.5 MB, free: 9.906 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.001557/0.1198, allocations: 1.146 MB / 361.7 MB, free: 8.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.1198, allocations: 11.97 kB / 361.7 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.12, allocations: 106.8 kB / 361.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000755/0.1207, allocations: 0.5916 MB / 362.4 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.971e-05/0.1208, allocations: 61.98 kB / 362.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.1209, allocations: 91.83 kB / 362.5 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.1221, allocations: 0.8364 MB / 363.4 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.534e-05/0.1222, allocations: 15.83 kB / 363.4 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.609e-05/0.1222, allocations: 40 kB / 363.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.1223, allocations: 24 kB / 363.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008317/0.1231, allocations: 471.3 kB / 363.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003538/0.1267, allocations: 4.392 MB / 368.3 MB, free: 1.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005372/0.1272, allocations: 295.5 kB / 368.6 MB, free: 1.441 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.1274, allocations: 145.5 kB / 368.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002404/0.1277, allocations: 170.6 kB / 368.9 MB, free: 1.094 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.1277, allocations: 42.94 kB / 368.9 MB, free: 1.043 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.874e-06/0.1277, allocations: 0 / 368.9 MB, free: 1.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.1888/0.3165, allocations: 1.729 MB / 370.7 MB, free: 25.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.828e-05/0.3166, allocations: 58.39 kB / 370.7 MB, free: 25.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006413/0.3173, allocations: 0.536 MB / 371.3 MB, free: 25.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.3173, allocations: 34.7 kB / 371.3 MB, free: 25.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002753/0.3176, allocations: 485.2 kB / 371.8 MB, free: 25.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.3177, allocations: 213.2 kB / 372 MB, free: 24.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.3179, allocations: 136.1 kB / 372.1 MB, free: 24.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.318, allocations: 387.6 kB / 372.5 MB, free: 24.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003035/0.3183, allocations: 158.7 kB / 372.6 MB, free: 24.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004069/0.3187, allocations: 461.2 kB / 373.1 MB, free: 24.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000672/0.3194, allocations: 0.6684 MB / 373.8 MB, free: 23.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.3194, allocations: 3.031 kB / 373.8 MB, free: 23.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001115/0.3205, allocations: 0.7358 MB / 374.5 MB, free: 23.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.3206, allocations: 11.09 kB / 374.5 MB, free: 23.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.3206, allocations: 9.5 kB / 374.5 MB, free: 23.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001676/0.3208, allocations: 54.11 kB / 374.6 MB, free: 23.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005402/0.3213, allocations: 186.1 kB / 374.8 MB, free: 23.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/0.3223, allocations: 1.685 MB / 376.4 MB, free: 21.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002974/0.3226, allocations: 25.03 kB / 376.5 MB, free: 21.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.943e-05/0.3227, allocations: 39.05 kB / 376.5 MB, free: 21.45 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.0002407/0.3229, allocations: 233.7 kB / 376.7 MB, free: 21.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.82e-05/0.323, allocations: 68.16 kB / 376.8 MB, free: 21.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.3231, allocations: 81.2 kB / 376.9 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3231, allocations: 9.438 kB / 376.9 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.3232, allocations: 1.375 kB / 376.9 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3232, allocations: 3.562 kB / 376.9 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001721/0.3249, allocations: 1.417 MB / 378.3 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.84e-06/0.3249, allocations: 2.5 kB / 378.3 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004518/0.3254, allocations: 113.4 kB / 378.4 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.271e-05/0.3255, allocations: 27.77 kB / 378.4 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.3255, allocations: 16.25 kB / 378.5 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00061/0.3261, allocations: 1.373 MB / 379.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.3261, allocations: 7.875 kB / 379.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008953/0.327, allocations: 0.771 MB / 380.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.27e-05/0.3271, allocations: 141.9 kB / 380.8 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.558e-05/0.3272, allocations: 18.98 kB / 380.8 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001989/0.3274, allocations: 15.55 kB / 380.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.087e-05/0.3275, allocations: 38.38 kB / 380.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.599e-05/0.3275, allocations: 17.98 kB / 380.8 MB, free: 18.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003606/0.3279, allocations: 368.8 kB / 381.2 MB, free: 18.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3279, allocations: 1.406 kB / 381.2 MB, free: 18.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006387/0.3285, allocations: 140.9 kB / 381.3 MB, free: 18.04 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.0001198/0.3286, allocations: 128.8 kB / 381.5 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.3297, allocations: 0.6156 MB / 382.1 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3297, allocations: 2.562 kB / 382.1 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003763/0.3301, allocations: 309.8 kB / 382.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005988/0.3307, allocations: 98.42 kB / 382.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.333, allocations: 1.86 MB / 384.3 MB, free: 16.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.3334, allocations: 0.9639 MB / 385.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002757/0.3337, allocations: 90.88 kB / 385.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.3338, allocations: 59.72 kB / 385.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3338, allocations: 1.25 kB / 385.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of Templates: time 0.01167/0.3455, allocations: 5.282 MB / 390.7 MB, free: 14.21 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/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