Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00276/0.002765, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.371/3.371, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001904/0.001903, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006076/0.0006077, allocations: 15.98 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1545, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.01019/0.1648, allocations: 3.777 MB / 378.3 MB, free: 11.64 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005597/0.1705, allocations: 1.331 MB / 379.6 MB, free: 10.3 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001351/0.1719, allocations: 23.81 kB / 379.7 MB, free: 10.28 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005429/0.1725, allocations: 83.25 kB / 379.8 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001695/0.1742, allocations: 211.3 kB / 380 MB, free: 9.992 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00189/0.1762, allocations: 239.7 kB / 380.2 MB, free: 9.758 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002867/0.1791, allocations: 0.6436 MB / 380.8 MB, free: 9.113 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001182/0.1804, allocations: 292.3 kB / 381.1 MB, free: 8.812 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009726/0.1814, allocations: 238.8 kB / 381.4 MB, free: 8.578 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000948/0.1824, allocations: 278.2 kB / 381.6 MB, free: 8.305 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002449/0.1827, allocations: 28 kB / 381.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004706/0.1832, allocations: 63.92 kB / 381.7 MB, free: 8.215 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002139/0.1834, allocations: 107.4 kB / 381.8 MB, free: 8.109 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003892/0.1839, allocations: 177.2 kB / 382 MB, free: 7.93 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001998/0.1859, allocations: 0.7599 MB / 382.8 MB, free: 7.168 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1859, allocations: 0 / 382.8 MB, free: 7.168 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.468e-06/0.186, allocations: 4 kB / 382.8 MB, free: 7.164 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.135e-05/0.186, allocations: 0 / 382.8 MB, free: 7.164 MB / 282.7 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.00368/0.1897, allocations: 0.9782 MB / 383.7 MB, free: 6.137 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.089e-05/0.1898, allocations: 8.031 kB / 383.7 MB, free: 6.129 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000481/0.1903, allocations: 102.8 kB / 383.8 MB, free: 6.027 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002339/0.1927, allocations: 0.5841 MB / 384.4 MB, free: 5.398 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.1929, allocations: 61.98 kB / 384.5 MB, free: 5.336 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003038/0.1932, allocations: 80 kB / 384.6 MB, free: 5.258 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003396/0.1966, allocations: 0.8364 MB / 385.4 MB, free: 4.316 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001055/0.1968, allocations: 7.906 kB / 385.4 MB, free: 4.309 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001411/0.197, allocations: 35.94 kB / 385.4 MB, free: 4.273 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.017e-05/0.197, allocations: 24 kB / 385.5 MB, free: 4.25 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002669/0.1997, allocations: 471.3 kB / 385.9 MB, free: 3.789 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3993/0.5991, allocations: 4.397 MB / 390.3 MB, free: 17.3 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.6009, allocations: 303 kB / 390.6 MB, free: 17.28 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003798/0.6014, allocations: 170.5 kB / 390.8 MB, free: 17.09 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.797e-05/0.6014, allocations: 37.88 kB / 390.8 MB, free: 17.05 MB / 282.7 MB Notification: Performance of pre-optimization done (n=46): time 7.956e-06/0.6015, allocations: 0 / 390.8 MB, free: 17.05 MB / 282.7 MB Notification: Performance of matching and sorting (n=57): time 0.008315/0.6098, allocations: 1.74 MB / 392.6 MB, free: 16.45 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.6099, allocations: 61.61 kB / 392.6 MB, free: 16.39 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/0.6115, allocations: 0.5325 MB / 393.2 MB, free: 16.22 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.6116, allocations: 31.27 kB / 393.2 MB, free: 16.19 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005395/0.6122, allocations: 0.4943 MB / 393.7 MB, free: 15.76 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003558/0.6126, allocations: 210.9 kB / 393.9 MB, free: 15.6 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.205e-05/0.6127, allocations: 19.12 kB / 393.9 MB, free: 15.59 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.6129, allocations: 344.4 kB / 394.2 MB, free: 15.26 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008752/0.6138, allocations: 158.1 kB / 394.4 MB, free: 15.21 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/0.6148, allocations: 448.8 kB / 394.8 MB, free: 14.8 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.6159, allocations: 242.6 kB / 395.1 MB, free: 14.7 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.504e-05/0.616, allocations: 2.438 kB / 395.1 MB, free: 14.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.003023/0.619, allocations: 0.6946 MB / 395.8 MB, free: 14.41 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.77e-05/0.6191, allocations: 8.812 kB / 395.8 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.482e-05/0.6192, allocations: 12.48 kB / 395.8 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003598/0.6195, allocations: 48.91 kB / 395.8 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/0.6213, allocations: 189.4 kB / 396 MB, free: 14.36 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/0.6238, allocations: 1.53 MB / 397.6 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.6249, allocations: 28.86 kB / 397.6 MB, free: 12.87 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001526/0.6251, allocations: 39.23 kB / 397.6 MB, free: 12.86 MB / 282.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008437/0.6259, allocations: 228.7 kB / 397.8 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002667/0.6262, allocations: 73.02 kB / 397.9 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002729/0.6265, allocations: 77.62 kB / 398 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.6265, allocations: 5.812 kB / 398 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.402e-05/0.6266, allocations: 5.344 kB / 398 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.6266, allocations: 3.188 kB / 398 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005048/0.6317, allocations: 1.427 MB / 399.4 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/0.6318, allocations: 3.344 kB / 399.4 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00145/0.6332, allocations: 114.3 kB / 399.5 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002259/0.6335, allocations: 24.78 kB / 399.6 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/0.6337, allocations: 16.78 kB / 399.6 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001441/0.6351, allocations: 1.274 MB / 400.9 MB, free: 10.37 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/0.6352, allocations: 9.297 kB / 400.9 MB, free: 10.37 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002814/0.638, allocations: 0.9115 MB / 401.8 MB, free: 9.699 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003377/0.6384, allocations: 138.3 kB / 401.9 MB, free: 9.566 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.6386, allocations: 14.19 kB / 401.9 MB, free: 9.559 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005772/0.6392, allocations: 15.69 kB / 401.9 MB, free: 9.551 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.6394, allocations: 48.33 kB / 402 MB, free: 9.535 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.889e-05/0.6395, allocations: 16.92 kB / 402 MB, free: 9.531 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001031/0.6405, allocations: 359.4 kB / 402.4 MB, free: 9.367 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.082e-06/0.6406, allocations: 0 / 402.4 MB, free: 9.367 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001896/0.6425, allocations: 138.2 kB / 402.5 MB, free: 9.348 MB / 282.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002822/0.6428, allocations: 123.1 kB / 402.6 MB, free: 9.234 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002476/0.6453, allocations: 0.58 MB / 403.2 MB, free: 8.961 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/0.6454, allocations: 1.406 kB / 403.2 MB, free: 8.961 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.6465, allocations: 305.5 kB / 403.5 MB, free: 8.789 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.6478, allocations: 84.81 kB / 403.6 MB, free: 8.746 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007293/0.6551, allocations: 2.336 MB / 405.9 MB, free: 7.125 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.6562, allocations: 0.9839 MB / 406.9 MB, free: 6.414 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004582/0.6567, allocations: 64.48 kB / 407 MB, free: 6.402 MB / 282.7 MB Notification: Performance of SimCode: time 4.949e-06/0.6567, allocations: 0 / 407 MB, free: 6.402 MB / 282.7 MB Notification: Performance of Templates: time 0.03982/0.6966, allocations: 11.72 MB / 418.7 MB, free: 152 kB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches