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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.00124, allocations: 112.7 kB / 17.28 MB, free: 6.199 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.001316/0.001316, allocations: 189.3 kB / 18.2 MB, free: 5.277 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.432/1.432, allocations: 205.1 MB / 224 MB, free: 12.36 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.001132/0.001132, allocations: 44.16 kB / 280.2 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08696/0.08811, allocations: 46.64 MB / 326.9 MB, free: 4.68 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006343/0.09449, allocations: 4.56 MB / 331.4 MB, free: 88 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002335/0.09685, allocations: 1.346 MB / 332.8 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003074/0.09717, allocations: 27.75 kB / 332.8 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000374/0.09759, allocations: 134.9 kB / 332.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003034/0.0979, allocations: 126.9 kB / 333.1 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007663/0.0987, allocations: 319.7 kB / 333.4 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008665/0.09957, allocations: 0.9743 MB / 334.3 MB, free: 13.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005929/0.1002, allocations: 423.1 kB / 334.8 MB, free: 12.72 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003318/0.1005, allocations: 330.6 kB / 335.1 MB, free: 12.4 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00031/0.1009, allocations: 346 kB / 335.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.249e-05/0.101, allocations: 76 kB / 335.5 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.1011, allocations: 115.9 kB / 335.6 MB, free: 11.87 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.1013, allocations: 171.3 kB / 335.8 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003047/0.1016, allocations: 425.5 kB / 336.2 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009856/0.1026, allocations: 1.055 MB / 337.2 MB, free: 10.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1026, allocations: 0 / 337.2 MB, free: 10.23 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1026, allocations: 0 / 337.2 MB, free: 10.23 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.1026, allocations: 0 / 337.2 MB, free: 10.23 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.001343/0.104, allocations: 1.138 MB / 338.4 MB, free: 9.039 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.104, allocations: 12.02 kB / 338.4 MB, free: 9.027 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/0.1041, allocations: 123 kB / 338.5 MB, free: 8.898 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.1043, allocations: 106.7 kB / 338.6 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007909/0.1051, allocations: 0.5955 MB / 339.2 MB, free: 8.152 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.431e-05/0.1052, allocations: 62 kB / 339.3 MB, free: 8.09 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.1053, allocations: 87.89 kB / 339.4 MB, free: 8.004 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.1066, allocations: 0.8481 MB / 340.2 MB, free: 7.051 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/0.1067, allocations: 11.94 kB / 340.2 MB, free: 7.039 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.4e-05/0.1068, allocations: 32 kB / 340.3 MB, free: 7.008 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.1068, allocations: 24 kB / 340.3 MB, free: 6.984 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008376/0.1076, allocations: 471.3 kB / 340.7 MB, free: 6.523 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003643/0.1113, allocations: 4.404 MB / 345.1 MB, free: 1.926 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005371/0.1118, allocations: 307.2 kB / 345.4 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.1121, allocations: 145.3 kB / 345.6 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002559/0.1123, allocations: 170.6 kB / 345.8 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.1124, allocations: 38.94 kB / 345.8 MB, free: 1.223 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 1.653e-06/0.1124, allocations: 0 / 345.8 MB, free: 1.223 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003336/0.1157, allocations: 1.735 MB / 347.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.1158, allocations: 59.91 kB / 347.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005384/0.1163, allocations: 0.5392 MB / 348.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/0.1163, allocations: 29.7 kB / 348.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000297/0.1166, allocations: 490.3 kB / 348.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.1168, allocations: 205 kB / 348.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.117, allocations: 146.5 kB / 349 MB, free: 13.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.1172, allocations: 382.8 kB / 349.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000286/0.1175, allocations: 157.9 kB / 349.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005184/0.118, allocations: 463.2 kB / 350 MB, free: 12.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007685/0.1188, allocations: 0.6634 MB / 350.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.1188, allocations: 0 / 350.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001066/0.1199, allocations: 0.7453 MB / 351.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.1199, allocations: 8 kB / 351.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.1199, allocations: 8.906 kB / 351.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001456/0.1201, allocations: 52.84 kB / 351.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005391/0.1206, allocations: 183.7 kB / 351.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.122, allocations: 1.693 MB / 353.3 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002834/0.1223, allocations: 24 kB / 353.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.1224, allocations: 36 kB / 353.4 MB, free: 9.086 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.0002712/0.1227, allocations: 237.6 kB / 353.6 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.592e-05/0.1228, allocations: 87.05 kB / 353.7 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001092/0.1229, allocations: 71.08 kB / 353.7 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.1229, allocations: 4 kB / 353.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.1229, allocations: 4 kB / 353.8 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.1229, allocations: 3.984 kB / 353.8 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/0.1248, allocations: 1.423 MB / 355.2 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1248, allocations: 0 / 355.2 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004736/0.1253, allocations: 111.9 kB / 355.3 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001183/0.1254, allocations: 28.78 kB / 355.3 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.291e-05/0.1255, allocations: 16.06 kB / 355.3 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000838/0.1264, allocations: 1.383 MB / 356.7 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1264, allocations: 0 / 356.7 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009457/0.1273, allocations: 0.7722 MB / 357.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.1275, allocations: 132.3 kB / 357.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.467e-05/0.1276, allocations: 19.98 kB / 357.6 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.1278, allocations: 19.98 kB / 357.7 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.044e-05/0.1279, allocations: 39.92 kB / 357.7 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.391e-05/0.1279, allocations: 20 kB / 357.7 MB, free: 4.398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003433/0.1283, allocations: 363.1 kB / 358.1 MB, free: 4.047 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1283, allocations: 0 / 358.1 MB, free: 4.047 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005739/0.1289, allocations: 144 kB / 358.2 MB, free: 3.906 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.001361/0.1302, allocations: 1.337 MB / 359.5 MB, free: 2.504 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.1313, allocations: 0.6157 MB / 360.2 MB, free: 1.875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.1313, allocations: 4 kB / 360.2 MB, free: 1.871 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004589/0.1318, allocations: 314.1 kB / 360.5 MB, free: 1.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005723/0.1324, allocations: 95.78 kB / 360.6 MB, free: 1.461 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007888/0.1403, allocations: 6.583 MB / 367.2 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005084/0.1408, allocations: 0.9691 MB / 368.1 MB, free: 9.461 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000282/0.1411, allocations: 81.94 kB / 368.2 MB, free: 9.379 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003579/0.1414, allocations: 323.3 kB / 368.5 MB, free: 9.062 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1414, allocations: 0 / 368.5 MB, free: 9.062 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1714/0.3128, allocations: 11.42 MB / 379.9 MB, free: 53.74 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001461/0.313, allocations: 234 kB / 380.2 MB, free: 53.48 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.166/2.479, allocations: 3.938 kB / 380.2 MB, free: 53.48 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > 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","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches