Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001532/0.001532, allocations: 109.4 kB / 18.34 MB, free: 4.699 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.001646/0.001646, allocations: 192.1 kB / 19.28 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.388/1.388, allocations: 205.1 MB / 225.1 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0014/0.001401, allocations: 48.27 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09179/0.09321, allocations: 46.63 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005812/0.09906, allocations: 4.568 MB / 333.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002823/0.1019, allocations: 1.361 MB / 334.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003864/0.1024, allocations: 23.88 kB / 334.7 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004196/0.1028, allocations: 182.2 kB / 334.8 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003391/0.1032, allocations: 166.3 kB / 335 MB, free: 13.42 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008253/0.104, allocations: 367.5 kB / 335.4 MB, free: 13.06 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00102/0.105, allocations: 0.986 MB / 336.4 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005732/0.1056, allocations: 410.8 kB / 336.8 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003266/0.106, allocations: 330.6 kB / 337.1 MB, free: 11.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003217/0.1063, allocations: 353.9 kB / 337.4 MB, free: 10.97 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.974e-05/0.1064, allocations: 72 kB / 337.5 MB, free: 10.9 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000235/0.1066, allocations: 112 kB / 337.6 MB, free: 10.79 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.1068, allocations: 171.3 kB / 337.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003481/0.1071, allocations: 429.5 kB / 338.2 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009823/0.1081, allocations: 1.074 MB / 339.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1081, allocations: 0 / 339.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1081, allocations: 0 / 339.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.1082, allocations: 0 / 339.3 MB, free: 9.125 MB / 286.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.001747/0.1099, allocations: 1.149 MB / 340.4 MB, free: 7.926 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.914e-05/0.11, allocations: 12.03 kB / 340.4 MB, free: 7.914 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001628/0.1102, allocations: 106.7 kB / 340.5 MB, free: 7.809 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.1112, allocations: 0.6267 MB / 341.2 MB, free: 7.141 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.332e-05/0.1113, allocations: 62 kB / 341.2 MB, free: 7.078 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.1114, allocations: 76 kB / 341.3 MB, free: 7.004 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.1127, allocations: 0.8481 MB / 342.1 MB, free: 6.051 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.619e-05/0.1127, allocations: 19.78 kB / 342.2 MB, free: 6.031 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.483e-05/0.1128, allocations: 32 kB / 342.2 MB, free: 6 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/0.1128, allocations: 24 kB / 342.2 MB, free: 5.977 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008566/0.1137, allocations: 471.3 kB / 342.7 MB, free: 5.516 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003796/0.1175, allocations: 4.369 MB / 347 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005808/0.1181, allocations: 307.2 kB / 347.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.1183, allocations: 145.6 kB / 347.5 MB, free: 0.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002177/0.1186, allocations: 170.6 kB / 347.6 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.1186, allocations: 38.94 kB / 347.7 MB, free: 256 kB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 3.066e-06/0.1186, allocations: 0 / 347.7 MB, free: 256 kB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003257/0.1219, allocations: 1.739 MB / 349.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.1219, allocations: 55.97 kB / 349.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000565/0.1225, allocations: 0.543 MB / 350 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.1226, allocations: 33.7 kB / 350.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002996/0.1229, allocations: 478.4 kB / 350.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.123, allocations: 209 kB / 350.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.1232, allocations: 146.5 kB / 350.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1234, allocations: 382.8 kB / 351.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002706/0.1236, allocations: 153.9 kB / 351.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004532/0.1241, allocations: 455.2 kB / 351.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000786/0.1249, allocations: 0.6712 MB / 352.5 MB, free: 11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.1249, allocations: 4 kB / 352.5 MB, free: 11 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001094/0.126, allocations: 0.7462 MB / 353.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.126, allocations: 8 kB / 353.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.1261, allocations: 16.09 kB / 353.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001587/0.1262, allocations: 40.84 kB / 353.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005654/0.1268, allocations: 187.7 kB / 353.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001339/0.1282, allocations: 1.681 MB / 355.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000294/0.1285, allocations: 28 kB / 355.2 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.208e-05/0.1285, allocations: 36 kB / 355.3 MB, free: 8.117 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.0002984/0.1288, allocations: 233.5 kB / 355.5 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.397e-05/0.1289, allocations: 79.16 kB / 355.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.1291, allocations: 71.08 kB / 355.6 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1291, allocations: 8 kB / 355.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1291, allocations: 0 / 355.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.1291, allocations: 3.984 kB / 355.6 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001952/0.1311, allocations: 1.412 MB / 357 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.1311, allocations: 4.344 kB / 357.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000496/0.1316, allocations: 123.8 kB / 357.2 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.892e-05/0.1317, allocations: 24.84 kB / 357.2 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.1317, allocations: 12 kB / 357.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009557/0.1327, allocations: 1.375 MB / 358.6 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.1327, allocations: 4 kB / 358.6 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009856/0.1337, allocations: 0.7774 MB / 359.4 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.1338, allocations: 140.1 kB / 359.5 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.639e-05/0.1339, allocations: 19.98 kB / 359.5 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.1341, allocations: 12 kB / 359.5 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.812e-05/0.1342, allocations: 43.89 kB / 359.6 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.614e-05/0.1342, allocations: 16 kB / 359.6 MB, free: 3.449 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003822/0.1346, allocations: 367.1 kB / 360 MB, free: 3.094 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1346, allocations: 0 / 360 MB, free: 3.094 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006634/0.1353, allocations: 136 kB / 360.1 MB, free: 2.961 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.0001668/0.1355, allocations: 115.2 kB / 360.2 MB, free: 2.836 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009021/0.1364, allocations: 0.5924 MB / 360.8 MB, free: 2.227 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.1364, allocations: 4.562 kB / 360.8 MB, free: 2.223 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003789/0.1368, allocations: 314 kB / 361.1 MB, free: 1.902 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006422/0.1374, allocations: 91.8 kB / 361.2 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002611/0.14, allocations: 1.843 MB / 363 MB, free: 15.91 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005002/0.1406, allocations: 0.9613 MB / 364 MB, free: 14.92 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002398/0.1408, allocations: 89.92 kB / 364.1 MB, free: 14.83 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.1409, allocations: 59.42 kB / 364.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1409, allocations: 0 / 364.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of Templates: time 0.01063/0.1516, allocations: 5.275 MB / 369.4 MB, free: 9.5 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches