Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.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.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 96.48 kB / 17.95 MB, free: 5.746 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.001597/0.001598, allocations: 176.9 kB / 18.86 MB, free: 4.891 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.99/1.99, allocations: 205.4 MB / 225 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.0006276/0.0006275, allocations: 12 kB / 282 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1378, allocations: 47.58 MB / 329.6 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006335/0.1442, allocations: 4.947 MB / 334.5 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00432/0.1486, allocations: 2.045 MB / 336.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007026/0.1493, allocations: 35.81 kB / 336.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000482/0.1498, allocations: 158.8 kB / 336.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004155/0.1503, allocations: 146.8 kB / 336.9 MB, free: 12.4 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009508/0.1512, allocations: 339.4 kB / 337.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001076/0.1523, allocations: 0.943 MB / 338.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008398/0.1532, allocations: 0.5358 MB / 338.7 MB, free: 10.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000364/0.1535, allocations: 246.8 kB / 339 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003839/0.1539, allocations: 274.4 kB / 339.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.747e-05/0.154, allocations: 32 kB / 339.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.1542, allocations: 83.97 kB / 339.4 MB, free: 9.941 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001723/0.1544, allocations: 135.3 kB / 339.5 MB, free: 9.809 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003634/0.1548, allocations: 367.7 kB / 339.9 MB, free: 9.441 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008317/0.1556, allocations: 0.8844 MB / 340.7 MB, free: 8.555 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1556, allocations: 0 / 340.7 MB, free: 8.555 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1556, allocations: 0 / 340.7 MB, free: 8.555 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.1557, allocations: 0 / 340.7 MB, free: 8.555 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.00132/0.157, allocations: 0.8853 MB / 341.6 MB, free: 7.617 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.157, allocations: 8.031 kB / 341.6 MB, free: 7.609 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.1572, allocations: 87.91 kB / 341.7 MB, free: 7.523 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000655/0.1578, allocations: 0.4986 MB / 342.2 MB, free: 6.984 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.54e-05/0.1579, allocations: 66.38 kB / 342.3 MB, free: 6.922 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.1581, allocations: 88.28 kB / 342.4 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.1595, allocations: 0.8087 MB / 343.2 MB, free: 5.988 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.991e-05/0.1595, allocations: 11.89 kB / 343.2 MB, free: 5.977 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.366e-05/0.1596, allocations: 36 kB / 343.2 MB, free: 5.941 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.414e-05/0.1596, allocations: 20 kB / 343.2 MB, free: 5.922 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009758/0.1606, allocations: 0.4957 MB / 343.7 MB, free: 5.43 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003481/0.1641, allocations: 2.907 MB / 346.6 MB, free: 2.391 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005522/0.1647, allocations: 218.7 kB / 346.9 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/0.1649, allocations: 100.8 kB / 347 MB, free: 2.066 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003095/0.1652, allocations: 251.3 kB / 347.2 MB, free: 1.766 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.1652, allocations: 38.55 kB / 347.2 MB, free: 1.719 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.723e-06/0.1652, allocations: 0 / 347.2 MB, free: 1.719 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002401/0.1677, allocations: 1.279 MB / 348.5 MB, free: 352 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.1677, allocations: 55.41 kB / 348.6 MB, free: 284 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003597/0.1681, allocations: 300.5 kB / 348.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.1681, allocations: 33.7 kB / 348.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.1684, allocations: 402.5 kB / 349.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.1685, allocations: 146 kB / 349.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-05/0.1686, allocations: 45.7 kB / 349.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.1688, allocations: 350.7 kB / 349.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002023/0.169, allocations: 109.1 kB / 349.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002987/0.1693, allocations: 254.5 kB / 350.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005102/0.1698, allocations: 392.6 kB / 350.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1698, allocations: 0 / 350.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006923/0.1705, allocations: 472.9 kB / 351 MB, free: 13.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1706, allocations: 4 kB / 351 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.1706, allocations: 8 kB / 351 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001947/0.1708, allocations: 37.38 kB / 351.1 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003345/0.1711, allocations: 115.8 kB / 351.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004071/0.1715, allocations: 0.5601 MB / 351.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001636/0.1717, allocations: 16 kB / 351.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.117e-05/0.1718, allocations: 24 kB / 351.8 MB, free: 12.86 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.1721, allocations: 213.7 kB / 352 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.153e-05/0.1722, allocations: 39.59 kB / 352 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006177/0.1728, allocations: 322 kB / 352.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.1728, allocations: 4 kB / 352.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1728, allocations: 0 / 352.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.1728, allocations: 3.984 kB / 352.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.1742, allocations: 1.022 MB / 353.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1743, allocations: 4.156 kB / 353.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003471/0.1746, allocations: 83.89 kB / 353.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001243/0.1747, allocations: 28.84 kB / 353.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.1748, allocations: 11.98 kB / 353.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004087/0.1752, allocations: 0.5523 MB / 354 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.1752, allocations: 4.031 kB / 354.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008002/0.176, allocations: 0.5515 MB / 354.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.005e-05/0.1761, allocations: 112.6 kB / 354.7 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.714e-05/0.1762, allocations: 12.19 kB / 354.7 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.1763, allocations: 8 kB / 354.7 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.768e-05/0.1764, allocations: 31.94 kB / 354.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/0.1764, allocations: 12 kB / 354.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002265/0.1767, allocations: 215 kB / 355 MB, free: 9.473 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1767, allocations: 4 kB / 355 MB, free: 9.469 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004748/0.1772, allocations: 116 kB / 355.1 MB, free: 9.355 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002164/0.1774, allocations: 119.2 kB / 355.2 MB, free: 9.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006536/0.178, allocations: 312.3 kB / 355.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1781, allocations: 0 / 355.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002854/0.1783, allocations: 141.1 kB / 355.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005729/0.1789, allocations: 70.06 kB / 355.7 MB, free: 8.723 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003061/0.182, allocations: 2.129 MB / 357.9 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007747/0.1828, allocations: 0.921 MB / 358.8 MB, free: 5.594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.775e-05/0.1829, allocations: 31.44 kB / 358.8 MB, free: 5.562 MB / 302.1 MB Notification: Performance of SimCode: time 1.182e-06/0.1829, allocations: 0 / 358.8 MB, free: 5.562 MB / 302.1 MB Notification: Performance of Templates: time 0.01337/0.1963, allocations: 9.604 MB / 368.4 MB, free: 11.95 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.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.Rotational.Examples.GenerationOfFMUsCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUsCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUsCalcHelperMain.o] Error 1