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.001107/0.001107, allocations: 105.3 kB / 17.58 MB, free: 5.559 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.001054/0.001055, allocations: 192 kB / 18.51 MB, free: 4.641 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.497/1.497, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001467/0.001467, allocations: 55.92 kB / 280.6 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1057, allocations: 46.62 MB / 327.3 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.008782/0.1145, allocations: 4.561 MB / 331.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002742/0.1173, allocations: 1.369 MB / 333.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006438/0.1181, allocations: 23.88 kB / 333.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005322/0.1186, allocations: 178.1 kB / 333.4 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006005/0.1192, allocations: 166.4 kB / 333.6 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009256/0.1202, allocations: 359.5 kB / 333.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.1213, allocations: 0.9744 MB / 334.9 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006371/0.122, allocations: 415.1 kB / 335.3 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004362/0.1224, allocations: 330.6 kB / 335.6 MB, free: 12.06 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004147/0.1229, allocations: 350 kB / 336 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.123, allocations: 72 kB / 336 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002544/0.1233, allocations: 111.9 kB / 336.1 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.1234, allocations: 171.3 kB / 336.3 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004096/0.1239, allocations: 429.5 kB / 336.7 MB, free: 10.95 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001067/0.1249, allocations: 1.055 MB / 337.8 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1249, allocations: 0 / 337.8 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.125, allocations: 0 / 337.8 MB, free: 9.887 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.42e-05/0.125, allocations: 0 / 337.8 MB, free: 9.887 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.001776/0.1268, allocations: 1.142 MB / 338.9 MB, free: 8.695 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1268, allocations: 12.03 kB / 338.9 MB, free: 8.684 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.127, allocations: 102.7 kB / 339 MB, free: 8.582 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008098/0.1278, allocations: 0.5916 MB / 339.6 MB, free: 7.949 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.234e-05/0.1279, allocations: 58 kB / 339.7 MB, free: 7.891 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.128, allocations: 83.98 kB / 339.8 MB, free: 7.809 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.1295, allocations: 0.852 MB / 340.6 MB, free: 6.852 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.995e-05/0.1295, allocations: 19.83 kB / 340.6 MB, free: 6.832 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.644e-05/0.1296, allocations: 32 kB / 340.7 MB, free: 6.801 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.331e-05/0.1297, allocations: 24 kB / 340.7 MB, free: 6.777 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.1307, allocations: 471.3 kB / 341.1 MB, free: 6.316 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003886/0.1346, allocations: 4.392 MB / 345.5 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005618/0.1352, allocations: 322.9 kB / 345.9 MB, free: 1.406 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002389/0.1354, allocations: 149.5 kB / 346 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000195/0.1356, allocations: 170.6 kB / 346.2 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.1357, allocations: 34.94 kB / 346.2 MB, free: 1.012 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 2.014e-06/0.1357, allocations: 4 kB / 346.2 MB, free: 1.008 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003293/0.139, allocations: 1.728 MB / 347.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.139, allocations: 59.97 kB / 348 MB, free: 15.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006128/0.1397, allocations: 0.543 MB / 348.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.1397, allocations: 29.7 kB / 348.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003063/0.14, allocations: 486.3 kB / 349 MB, free: 14.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.1402, allocations: 201 kB / 349.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.1403, allocations: 150.4 kB / 349.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.1405, allocations: 378.8 kB / 349.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003243/0.1408, allocations: 161.9 kB / 349.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004604/0.1413, allocations: 459.2 kB / 350.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008222/0.1421, allocations: 0.6673 MB / 351 MB, free: 11.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.1422, allocations: 0 / 351 MB, free: 11.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001164/0.1433, allocations: 0.7419 MB / 351.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.1434, allocations: 8 kB / 351.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.1434, allocations: 8 kB / 351.8 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001675/0.1436, allocations: 52.91 kB / 351.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005273/0.1441, allocations: 183.7 kB / 352 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001586/0.1457, allocations: 1.693 MB / 353.7 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003174/0.146, allocations: 28 kB / 353.7 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/0.1461, allocations: 32 kB / 353.8 MB, free: 8.879 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.0002851/0.1464, allocations: 233.5 kB / 354 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.1465, allocations: 75.09 kB / 354.1 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.1466, allocations: 71.08 kB / 354.1 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1466, allocations: 4 kB / 354.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1466, allocations: 8.062 kB / 354.2 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.1466, allocations: 3.984 kB / 354.2 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.1486, allocations: 1.431 MB / 355.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.1486, allocations: 4.062 kB / 355.6 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004545/0.149, allocations: 115.9 kB / 355.7 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.585e-05/0.1491, allocations: 20.86 kB / 355.7 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.77e-05/0.1492, allocations: 19.98 kB / 355.7 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000957/0.1501, allocations: 1.371 MB / 357.1 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.1502, allocations: 4 kB / 357.1 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009856/0.1512, allocations: 0.7723 MB / 357.9 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.1513, allocations: 140.2 kB / 358 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.747e-05/0.1514, allocations: 12 kB / 358 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.1516, allocations: 16.19 kB / 358.1 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.233e-05/0.1517, allocations: 47.91 kB / 358.1 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.796e-05/0.1517, allocations: 23.94 kB / 358.1 MB, free: 4.195 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003996/0.1521, allocations: 359.1 kB / 358.5 MB, free: 3.848 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1521, allocations: 0 / 358.5 MB, free: 3.848 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006187/0.1527, allocations: 140 kB / 358.6 MB, free: 3.711 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.0001476/0.1529, allocations: 119.1 kB / 358.7 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.154, allocations: 0.6045 MB / 359.3 MB, free: 2.961 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.1541, allocations: 0 / 359.3 MB, free: 2.961 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004016/0.1545, allocations: 314 kB / 359.6 MB, free: 2.641 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000652/0.1551, allocations: 109.1 kB / 359.7 MB, free: 2.539 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003193/0.1583, allocations: 1.866 MB / 361.6 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006847/0.159, allocations: 0.9652 MB / 362.6 MB, free: 15.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000332/0.1594, allocations: 81.94 kB / 362.7 MB, free: 15.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.1595, allocations: 59.42 kB / 362.7 MB, free: 15.48 MB / 318.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1595, allocations: 0 / 362.7 MB, free: 15.48 MB / 318.1 MB Notification: Performance of Templates: time 0.01249/0.172, allocations: 5.278 MB / 368 MB, free: 10.2 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/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