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.00104/0.001041, allocations: 104.5 kB / 17.16 MB, free: 6.316 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.00109/0.00109, allocations: 190 kB / 18.07 MB, free: 5.414 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.164/1.164, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001121/0.001121, allocations: 56.3 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.077/0.07813, allocations: 46.62 MB / 326.7 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005459/0.08363, allocations: 4.56 MB / 331.3 MB, free: 220 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.08553, allocations: 1.349 MB / 332.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000231/0.08578, allocations: 23.81 kB / 332.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003082/0.0861, allocations: 126.9 kB / 332.8 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000241/0.08635, allocations: 130.8 kB / 332.9 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005348/0.08689, allocations: 327.7 kB / 333.2 MB, free: 14.26 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007272/0.08763, allocations: 0.9157 MB / 334.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004719/0.08811, allocations: 383.1 kB / 334.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002792/0.08839, allocations: 290.5 kB / 334.8 MB, free: 12.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002819/0.08868, allocations: 334 kB / 335.1 MB, free: 12.33 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.767e-05/0.08876, allocations: 40 kB / 335.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001684/0.08893, allocations: 83.92 kB / 335.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.731e-05/0.08904, allocations: 143.3 kB / 335.4 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002798/0.08932, allocations: 389.5 kB / 335.7 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007026/0.09003, allocations: 0.9729 MB / 336.7 MB, free: 10.71 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.09004, allocations: 0 / 336.7 MB, free: 10.71 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.09005, allocations: 0 / 336.7 MB, free: 10.71 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.09006, allocations: 0 / 336.7 MB, free: 10.71 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.001399/0.09147, allocations: 1.142 MB / 337.9 MB, free: 9.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.09151, allocations: 12.03 kB / 337.9 MB, free: 9.508 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001214/0.09164, allocations: 126.9 kB / 338 MB, free: 9.375 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.09177, allocations: 106.7 kB / 338.1 MB, free: 9.27 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007203/0.09249, allocations: 0.5916 MB / 338.7 MB, free: 8.633 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.273e-05/0.09256, allocations: 62 kB / 338.7 MB, free: 8.57 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.336e-05/0.09266, allocations: 91.83 kB / 338.8 MB, free: 8.48 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.09383, allocations: 0.8481 MB / 339.7 MB, free: 7.527 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.803e-05/0.09387, allocations: 8 kB / 339.7 MB, free: 7.52 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.292e-05/0.09393, allocations: 36 kB / 339.7 MB, free: 7.484 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.09395, allocations: 20 kB / 339.7 MB, free: 7.465 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008109/0.09477, allocations: 471.3 kB / 340.2 MB, free: 7.004 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003261/0.09804, allocations: 4.404 MB / 344.6 MB, free: 2.406 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005252/0.09858, allocations: 307.3 kB / 344.9 MB, free: 2.098 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002214/0.09882, allocations: 149.2 kB / 345.1 MB, free: 1.949 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002262/0.09905, allocations: 166.6 kB / 345.2 MB, free: 1.75 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.09909, allocations: 38.94 kB / 345.3 MB, free: 1.703 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 2.434e-06/0.0991, allocations: 0 / 345.3 MB, free: 1.703 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003066/0.1022, allocations: 1.728 MB / 347 MB, free: 15.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.1022, allocations: 63.91 kB / 347 MB, free: 15.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005115/0.1027, allocations: 0.5392 MB / 347.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.1028, allocations: 33.7 kB / 347.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002581/0.103, allocations: 482.3 kB / 348.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.1032, allocations: 209 kB / 348.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.1033, allocations: 138.5 kB / 348.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1035, allocations: 382.8 kB / 348.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002622/0.1038, allocations: 161.9 kB / 349 MB, free: 13.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004407/0.1042, allocations: 467.1 kB / 349.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007427/0.105, allocations: 0.6673 MB / 350.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.105, allocations: 4 kB / 350.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001022/0.106, allocations: 0.7382 MB / 350.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.106, allocations: 8 kB / 350.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.106, allocations: 12 kB / 350.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001386/0.1062, allocations: 40.84 kB / 350.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005212/0.1067, allocations: 183.7 kB / 351.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.108, allocations: 1.514 MB / 352.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/0.1083, allocations: 36 kB / 352.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-05/0.1083, allocations: 35.98 kB / 352.7 MB, free: 9.75 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.0002877/0.1086, allocations: 241.5 kB / 352.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.044e-05/0.1087, allocations: 67.16 kB / 353 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.1088, allocations: 75.08 kB / 353 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1088, allocations: 7.938 kB / 353 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1089, allocations: 0 / 353 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1089, allocations: 3.984 kB / 353 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.1106, allocations: 1.427 MB / 354.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.1107, allocations: 4 kB / 354.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004569/0.1111, allocations: 115.8 kB / 354.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-05/0.1112, allocations: 24.84 kB / 354.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.973e-05/0.1113, allocations: 16.34 kB / 354.6 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008835/0.1122, allocations: 1.272 MB / 355.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.812e-06/0.1122, allocations: 11.94 kB / 355.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.1132, allocations: 0.78 MB / 356.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/0.1134, allocations: 132.3 kB / 356.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.728e-05/0.1134, allocations: 23.92 kB / 356.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.1136, allocations: 12 kB / 356.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.265e-05/0.1137, allocations: 47.92 kB / 356.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-05/0.1137, allocations: 16 kB / 356.9 MB, free: 5.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003633/0.1141, allocations: 363.1 kB / 357.3 MB, free: 4.812 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1141, allocations: 0 / 357.3 MB, free: 4.812 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005752/0.1147, allocations: 140 kB / 357.4 MB, free: 4.676 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.001228/0.1159, allocations: 1.341 MB / 358.7 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008761/0.1168, allocations: 0.577 MB / 359.3 MB, free: 2.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1168, allocations: 4.125 kB / 359.3 MB, free: 2.676 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003713/0.1172, allocations: 314 kB / 359.6 MB, free: 2.355 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005913/0.1178, allocations: 95.64 kB / 359.7 MB, free: 2.266 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007536/0.1254, allocations: 6.573 MB / 366.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004845/0.1259, allocations: 0.9613 MB / 367.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002747/0.1262, allocations: 93.91 kB / 367.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003385/0.1265, allocations: 319.3 kB / 367.7 MB, free: 9.879 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1265, allocations: 384 / 367.7 MB, free: 9.879 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3266/0.4532, allocations: 11.18 MB / 378.8 MB, free: 51.98 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001773/0.4534, allocations: 232.7 kB / 379.1 MB, free: 51.72 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.179/2.632, allocations: 0 / 379.1 MB, free: 51.72 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