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.001154/0.001155, allocations: 94.98 kB / 17.3 MB, free: 6.391 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.001275/0.001275, allocations: 174.5 kB / 18.21 MB, free: 5.551 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.53/1.53, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005352/0.0005356, allocations: 14.81 kB / 281.4 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1069, allocations: 47.58 MB / 329 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004997/0.1119, allocations: 4.136 MB / 333.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002535/0.1145, allocations: 1.326 MB / 334.4 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004344/0.115, allocations: 35.75 kB / 334.4 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003413/0.1153, allocations: 126.9 kB / 334.6 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003658/0.1157, allocations: 126.8 kB / 334.7 MB, free: 14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007415/0.1165, allocations: 327.6 kB / 335 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009281/0.1174, allocations: 0.9157 MB / 335.9 MB, free: 12.76 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005467/0.118, allocations: 371.1 kB / 336.3 MB, free: 12.37 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003133/0.1183, allocations: 262.6 kB / 336.6 MB, free: 12.11 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002988/0.1186, allocations: 290 kB / 336.8 MB, free: 11.83 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.811e-05/0.1187, allocations: 28 kB / 336.9 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.1188, allocations: 67.92 kB / 336.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.119, allocations: 119.4 kB / 337 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003311/0.1193, allocations: 387.2 kB / 337.4 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000882/0.1202, allocations: 0.9454 MB / 338.4 MB, free: 10.28 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1202, allocations: 3.938 kB / 338.4 MB, free: 10.28 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.1202, allocations: 0 / 338.4 MB, free: 10.28 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.1202, allocations: 7.938 kB / 338.4 MB, free: 10.27 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.00142/0.1217, allocations: 0.982 MB / 339.4 MB, free: 9.238 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.1217, allocations: 12.03 kB / 339.4 MB, free: 9.227 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.1219, allocations: 102.8 kB / 339.5 MB, free: 9.125 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007956/0.1227, allocations: 0.5916 MB / 340.1 MB, free: 8.488 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.427e-05/0.1227, allocations: 58 kB / 340.1 MB, free: 8.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.1229, allocations: 83.91 kB / 340.2 MB, free: 8.348 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/0.1242, allocations: 0.8521 MB / 341.1 MB, free: 7.391 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.769e-05/0.1243, allocations: 15.84 kB / 341.1 MB, free: 7.375 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.272e-05/0.1243, allocations: 36 kB / 341.1 MB, free: 7.34 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.1243, allocations: 20 kB / 341.1 MB, free: 7.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008618/0.1252, allocations: 475.3 kB / 341.6 MB, free: 6.855 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00392/0.1292, allocations: 4.404 MB / 346 MB, free: 2.258 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006154/0.1298, allocations: 311 kB / 346.3 MB, free: 1.945 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/0.13, allocations: 145.6 kB / 346.4 MB, free: 1.801 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00024/0.1303, allocations: 166.6 kB / 346.6 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.1303, allocations: 46.88 kB / 346.6 MB, free: 1.547 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 2.164e-06/0.1303, allocations: 0 / 346.6 MB, free: 1.547 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003546/0.1339, allocations: 1.739 MB / 348.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.134, allocations: 59.97 kB / 348.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006379/0.1346, allocations: 0.5391 MB / 349 MB, free: 15.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.325e-05/0.1347, allocations: 33.7 kB / 349 MB, free: 15.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003782/0.135, allocations: 482.4 kB / 349.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/0.1353, allocations: 216.9 kB / 349.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.434e-05/0.1354, allocations: 65.69 kB / 349.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002636/0.1356, allocations: 382.8 kB / 350.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003112/0.1359, allocations: 161.9 kB / 350.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005556/0.1365, allocations: 455.2 kB / 350.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008782/0.1374, allocations: 0.6868 MB / 351.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.1374, allocations: 7.938 kB / 351.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001163/0.1386, allocations: 0.746 MB / 352.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.1386, allocations: 8 kB / 352.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.1387, allocations: 12 kB / 352.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001854/0.1388, allocations: 44.84 kB / 352.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005417/0.1394, allocations: 179.7 kB / 352.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.1407, allocations: 1.518 MB / 353.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/0.1409, allocations: 31.92 kB / 354 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.44e-05/0.141, allocations: 40.19 kB / 354 MB, free: 9.625 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.0002917/0.1413, allocations: 237.5 kB / 354.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.953e-05/0.1414, allocations: 67.16 kB / 354.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001439/0.1415, allocations: 75.08 kB / 354.4 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.108e-06/0.1416, allocations: 15.94 kB / 354.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.1416, allocations: 0 / 354.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1416, allocations: 3.984 kB / 354.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001917/0.1435, allocations: 1.423 MB / 355.8 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.1435, allocations: 4 kB / 355.8 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000454/0.144, allocations: 116.2 kB / 355.9 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.189e-05/0.1441, allocations: 24.84 kB / 356 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/0.1441, allocations: 16 kB / 356 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008161/0.1449, allocations: 1.272 MB / 357.3 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/0.145, allocations: 7.984 kB / 357.3 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.146, allocations: 0.7839 MB / 358 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.1461, allocations: 136.2 kB / 358.2 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.483e-05/0.1462, allocations: 15.98 kB / 358.2 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.1464, allocations: 20 kB / 358.2 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.659e-05/0.1465, allocations: 39.98 kB / 358.3 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.358e-05/0.1465, allocations: 19.94 kB / 358.3 MB, free: 5.035 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003767/0.1469, allocations: 371.1 kB / 358.6 MB, free: 4.676 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1469, allocations: 0 / 358.6 MB, free: 4.676 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006113/0.1475, allocations: 136 kB / 358.8 MB, free: 4.543 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.0001485/0.1477, allocations: 111.2 kB / 358.9 MB, free: 4.422 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009122/0.1486, allocations: 0.5885 MB / 359.5 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1486, allocations: 0.5 kB / 359.5 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003998/0.149, allocations: 318.1 kB / 359.8 MB, free: 3.496 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008354/0.1498, allocations: 100.7 kB / 359.9 MB, free: 3.402 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.1529, allocations: 2.384 MB / 362.3 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005395/0.1535, allocations: 0.9691 MB / 363.2 MB, free: 15.96 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002922/0.1538, allocations: 81.92 kB / 363.3 MB, free: 15.88 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.1539, allocations: 59.61 kB / 363.4 MB, free: 15.82 MB / 318.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1539, allocations: 0 / 363.4 MB, free: 15.82 MB / 318.1 MB Notification: Performance of Templates: time 0.01052/0.1644, allocations: 5.012 MB / 368.4 MB, free: 10.81 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","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches