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.001575/0.001576, allocations: 101.5 kB / 17.8 MB, free: 5.676 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.001635/0.001635, allocations: 194 kB / 18.72 MB, free: 4.762 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.81/1.81, allocations: 205.1 MB / 224.6 MB, free: 12.47 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.001553/0.001553, allocations: 51.94 kB / 280.6 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1502, allocations: 46.63 MB / 327.2 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.00799/0.1583, allocations: 4.556 MB / 331.8 MB, free: 324 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003836/0.1622, allocations: 1.353 MB / 333.2 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005143/0.1627, allocations: 23.81 kB / 333.2 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004553/0.1633, allocations: 134.9 kB / 333.3 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000393/0.1637, allocations: 130.8 kB / 333.4 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009048/0.1646, allocations: 327.7 kB / 333.8 MB, free: 14.35 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001137/0.1657, allocations: 0.9157 MB / 334.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007347/0.1665, allocations: 379.1 kB / 335 MB, free: 13.04 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004986/0.167, allocations: 290.6 kB / 335.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003966/0.1674, allocations: 333.9 kB / 335.7 MB, free: 12.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.1675, allocations: 44 kB / 335.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002735/0.1678, allocations: 79.92 kB / 335.8 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001501/0.168, allocations: 143.3 kB / 335.9 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003971/0.1684, allocations: 397.5 kB / 336.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008544/0.1692, allocations: 0.7678 MB / 337.1 MB, free: 11 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.1693, allocations: 0 / 337.1 MB, free: 11 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1693, allocations: 0 / 337.1 MB, free: 11 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.466e-05/0.1693, allocations: 8 kB / 337.1 MB, free: 11 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.002097/0.1714, allocations: 1.138 MB / 338.2 MB, free: 9.809 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.665e-05/0.1715, allocations: 12.03 kB / 338.2 MB, free: 9.797 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002163/0.1717, allocations: 106.7 kB / 338.3 MB, free: 9.691 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.1728, allocations: 0.5955 MB / 338.9 MB, free: 9.051 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.133e-05/0.1729, allocations: 58 kB / 339 MB, free: 8.992 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001558/0.1731, allocations: 83.94 kB / 339.1 MB, free: 8.91 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.1746, allocations: 0.8442 MB / 339.9 MB, free: 7.961 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.385e-05/0.1747, allocations: 15.83 kB / 339.9 MB, free: 7.945 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.1748, allocations: 36 kB / 340 MB, free: 7.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.242e-05/0.1748, allocations: 20 kB / 340 MB, free: 7.891 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009099/0.1757, allocations: 471.3 kB / 340.4 MB, free: 7.43 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004604/0.1803, allocations: 4.404 MB / 344.8 MB, free: 2.832 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006476/0.181, allocations: 307 kB / 345.1 MB, free: 2.523 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002869/0.1813, allocations: 149.5 kB / 345.3 MB, free: 2.375 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000412/0.1817, allocations: 170.6 kB / 345.5 MB, free: 2.172 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/0.1818, allocations: 42.86 kB / 345.5 MB, free: 2.121 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 2.394e-06/0.1818, allocations: 0 / 345.5 MB, free: 2.121 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003964/0.1858, allocations: 1.724 MB / 347.2 MB, free: 308 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.568e-05/0.1859, allocations: 59.97 kB / 347.3 MB, free: 236 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008479/0.1867, allocations: 0.5391 MB / 347.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.959e-05/0.1868, allocations: 37.7 kB / 347.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003917/0.1872, allocations: 470.4 kB / 348.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/0.1874, allocations: 217 kB / 348.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001913/0.1876, allocations: 146.5 kB / 348.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002443/0.1879, allocations: 378.8 kB / 349 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000292/0.1882, allocations: 161.9 kB / 349.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005753/0.1887, allocations: 459.2 kB / 349.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009046/0.1897, allocations: 0.6595 MB / 350.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.1897, allocations: 4 kB / 350.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001187/0.1909, allocations: 0.7345 MB / 351 MB, free: 12.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.712e-05/0.1909, allocations: 15.98 kB / 351.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/0.1909, allocations: 12.12 kB / 351.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002211/0.1912, allocations: 52.84 kB / 351.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006204/0.1918, allocations: 183.7 kB / 351.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001643/0.1935, allocations: 1.514 MB / 352.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.1938, allocations: 24 kB / 352.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.668e-05/0.1938, allocations: 36 kB / 352.9 MB, free: 10.18 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.0003728/0.1942, allocations: 237.5 kB / 353.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.1944, allocations: 71.16 kB / 353.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.1945, allocations: 79.02 kB / 353.3 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.699e-06/0.1945, allocations: 12 kB / 353.3 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/0.1945, allocations: 4 kB / 353.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.1945, allocations: 3.984 kB / 353.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002551/0.1971, allocations: 1.427 MB / 354.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.1971, allocations: 0 / 354.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005004/0.1976, allocations: 115.8 kB / 354.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001169/0.1977, allocations: 20.84 kB / 354.8 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.152e-05/0.1978, allocations: 16 kB / 354.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.1991, allocations: 1.272 MB / 356.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.1991, allocations: 4 kB / 356.1 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/0.2004, allocations: 0.784 MB / 356.9 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002341/0.2006, allocations: 136.2 kB / 357 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.014e-05/0.2007, allocations: 12 kB / 357.1 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.2009, allocations: 19.98 kB / 357.1 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.201, allocations: 39.89 kB / 357.1 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.201, allocations: 16 kB / 357.1 MB, free: 5.605 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004652/0.2015, allocations: 367.1 kB / 357.5 MB, free: 5.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.813e-06/0.2015, allocations: 96 / 357.5 MB, free: 5.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007667/0.2023, allocations: 143.9 kB / 357.6 MB, free: 5.109 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.000223/0.2025, allocations: 107.2 kB / 357.7 MB, free: 4.992 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001191/0.2037, allocations: 0.5812 MB / 358.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2037, allocations: 4 kB / 358.3 MB, free: 4.395 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005312/0.2043, allocations: 314.2 kB / 358.6 MB, free: 4.074 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006781/0.205, allocations: 102.9 kB / 358.7 MB, free: 3.977 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004256/0.2092, allocations: 2.265 MB / 361 MB, free: 1.641 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.2103, allocations: 0.9693 MB / 362 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002108/0.2106, allocations: 63.42 kB / 362 MB, free: 0.582 MB / 302.1 MB Notification: Performance of SimCode: time 1.744e-06/0.2106, allocations: 3.938 kB / 362 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of Templates: time 0.02023/0.2308, allocations: 12.31 MB / 374.3 MB, free: 4.25 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUsCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUsCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUsCalcHelperMain.o] Error 1