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.0009895/0.0009894, allocations: 96.89 kB / 17.3 MB, free: 6.395 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.0009357/0.000936, allocations: 178.5 kB / 18.21 MB, free: 5.543 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.34/1.34, 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.000467/0.0004671, allocations: 8 kB / 281.5 MB, free: 3.324 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08795/0.08843, allocations: 47.58 MB / 329.1 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004127/0.09258, allocations: 4.132 MB / 333.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00227/0.09487, allocations: 1.334 MB / 334.5 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004483/0.09534, allocations: 23.81 kB / 334.5 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002812/0.09563, allocations: 134.9 kB / 334.7 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000302/0.09594, allocations: 130.8 kB / 334.8 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006051/0.09655, allocations: 323.6 kB / 335.1 MB, free: 13.56 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009102/0.09748, allocations: 0.9041 MB / 336 MB, free: 12.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004624/0.09795, allocations: 375.1 kB / 336.4 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002739/0.09823, allocations: 266.5 kB / 336.7 MB, free: 12 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.0985, allocations: 290 kB / 336.9 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.48e-05/0.09856, allocations: 28 kB / 337 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.09872, allocations: 63.98 kB / 337 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.329e-05/0.09882, allocations: 131.3 kB / 337.2 MB, free: 11.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003695/0.0992, allocations: 387.3 kB / 337.5 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006909/0.0999, allocations: 0.9376 MB / 338.5 MB, free: 10.17 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.09991, allocations: 0 / 338.5 MB, free: 10.17 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.09992, allocations: 0 / 338.5 MB, free: 10.17 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.178e-06/0.09994, allocations: 11.88 kB / 338.5 MB, free: 10.16 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.001183/0.1011, allocations: 0.9782 MB / 339.5 MB, free: 9.133 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1012, allocations: 8.031 kB / 339.5 MB, free: 9.125 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001257/0.1013, allocations: 130.9 kB / 339.6 MB, free: 8.988 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.1014, allocations: 102.8 kB / 339.7 MB, free: 8.887 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007054/0.1021, allocations: 0.5916 MB / 340.3 MB, free: 8.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.631e-05/0.1022, allocations: 62 kB / 340.3 MB, free: 8.188 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.1023, allocations: 83.91 kB / 340.4 MB, free: 8.105 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/0.1037, allocations: 0.8521 MB / 341.3 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.61e-05/0.1037, allocations: 15.84 kB / 341.3 MB, free: 7.133 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.522e-05/0.1038, allocations: 32 kB / 341.3 MB, free: 7.102 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.1038, allocations: 23.98 kB / 341.4 MB, free: 7.078 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008287/0.1046, allocations: 479.3 kB / 341.8 MB, free: 6.609 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00353/0.1082, allocations: 4.404 MB / 346.2 MB, free: 2.012 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005433/0.1087, allocations: 311.3 kB / 346.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002277/0.109, allocations: 145.3 kB / 346.7 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002432/0.1092, allocations: 170.6 kB / 346.8 MB, free: 1.352 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.327e-05/0.1093, allocations: 34.94 kB / 346.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 2.445e-06/0.1094, allocations: 0 / 346.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003228/0.1126, allocations: 1.747 MB / 348.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.1126, allocations: 67.89 kB / 348.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005632/0.1132, allocations: 0.5275 MB / 349.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.725e-05/0.1133, allocations: 37.7 kB / 349.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000317/0.1137, allocations: 478.4 kB / 349.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.1138, allocations: 216.9 kB / 349.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.517e-05/0.1139, allocations: 65.69 kB / 350 MB, free: 14.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.114, allocations: 382.8 kB / 350.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.1143, allocations: 161.9 kB / 350.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004337/0.1148, allocations: 467.2 kB / 351 MB, free: 12.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008408/0.1156, allocations: 0.6673 MB / 351.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.271e-06/0.1156, allocations: 4 kB / 351.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001059/0.1167, allocations: 0.7492 MB / 352.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.1167, allocations: 12.97 kB / 352.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.1167, allocations: 8 kB / 352.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001645/0.1169, allocations: 52.78 kB / 352.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000542/0.1175, allocations: 179.7 kB / 352.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/0.1188, allocations: 1.518 MB / 354.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/0.1191, allocations: 31.98 kB / 354.2 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.283e-05/0.1192, allocations: 39.94 kB / 354.2 MB, free: 9.383 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.0002942/0.1195, allocations: 229.5 kB / 354.5 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-05/0.1196, allocations: 71.09 kB / 354.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.1197, allocations: 79.08 kB / 354.6 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.1197, allocations: 12 kB / 354.6 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1198, allocations: 0 / 354.6 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1198, allocations: 3.984 kB / 354.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/0.1215, allocations: 1.431 MB / 356.1 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.1215, allocations: 4 kB / 356.1 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004866/0.122, allocations: 115.8 kB / 356.2 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.304e-05/0.1221, allocations: 20.84 kB / 356.2 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.389e-05/0.1221, allocations: 16 kB / 356.2 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008067/0.123, allocations: 1.276 MB / 357.5 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.123, allocations: 0 / 357.5 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.124, allocations: 0.784 MB / 358.3 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.1242, allocations: 136.2 kB / 358.4 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.968e-05/0.1242, allocations: 19.98 kB / 358.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001915/0.1244, allocations: 16 kB / 358.4 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.595e-05/0.1245, allocations: 39.89 kB / 358.5 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.32e-05/0.1245, allocations: 16 kB / 358.5 MB, free: 4.801 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003531/0.1249, allocations: 367.1 kB / 358.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1249, allocations: 0 / 358.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005956/0.1255, allocations: 136 kB / 359 MB, free: 4.312 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.001288/0.1268, allocations: 1.352 MB / 360.3 MB, free: 2.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008579/0.1276, allocations: 0.5885 MB / 360.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.1277, allocations: 0 / 360.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004383/0.1281, allocations: 315 kB / 361.2 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007821/0.1289, allocations: 106.5 kB / 361.3 MB, free: 1.875 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007867/0.1368, allocations: 6.749 MB / 368.1 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004925/0.1373, allocations: 0.9652 MB / 369 MB, free: 9.715 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002887/0.1376, allocations: 85.92 kB / 369.1 MB, free: 9.629 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003528/0.138, allocations: 327.3 kB / 369.5 MB, free: 9.309 MB / 318.1 MB Notification: Performance of SimCode: time 2.584e-06/0.138, allocations: 4 kB / 369.5 MB, free: 9.305 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1667/0.3047, allocations: 11.02 MB / 380.5 MB, free: 51.39 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/0.3049, allocations: 232.3 kB / 380.7 MB, free: 51.13 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.002/2.307, allocations: 9.266 kB / 380.7 MB, free: 51.13 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