Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 91.61 kB / 16.95 MB, free: 5.543 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.001214/0.001214, allocations: 189.3 kB / 17.85 MB, free: 5.223 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 223.2 MB / 241.8 MB, free: 352 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003053/0.0003053, allocations: 4.812 kB / 301.5 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1304, allocations: 50.42 MB / 351.9 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003288/0.1338, allocations: 2.026 MB / 353.9 MB, free: 2 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001758/0.1355, allocations: 0.9175 MB / 354.8 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.1357, allocations: 4 kB / 354.8 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.1359, allocations: 35.7 kB / 354.9 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004725/0.1364, allocations: 131.3 kB / 355 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.1367, allocations: 147.8 kB / 355.1 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004021/0.1371, allocations: 418.5 kB / 355.5 MB, free: 360 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.1373, allocations: 69 kB / 355.6 MB, free: 288 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002536/0.1376, allocations: 183.4 kB / 355.8 MB, free: 104 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002998/0.1379, allocations: 215.3 kB / 356 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.134e-05/0.1379, allocations: 20 kB / 356 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001854/0.1381, allocations: 91.88 kB / 356.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.1382, allocations: 91.7 kB / 356.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.371e-05/0.1383, allocations: 77.58 kB / 356.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003607/0.1387, allocations: 351.4 kB / 356.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1387, allocations: 3.984 kB / 356.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.858e-06/0.1387, allocations: 0 / 356.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1387, allocations: 3.938 kB / 356.6 MB, free: 15.26 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001112/0.1398, allocations: 0.6158 MB / 357.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.1399, allocations: 8.031 kB / 357.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003054/0.1402, allocations: 63.55 kB / 357.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004148/0.1406, allocations: 310.2 kB / 357.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.1408, allocations: 88.05 kB / 357.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.749e-05/0.1408, allocations: 32 kB / 357.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007701/0.1416, allocations: 412.9 kB / 358.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.1417, allocations: 11.98 kB / 358.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.652e-05/0.1417, allocations: 8 kB / 358.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.1417, allocations: 15.94 kB / 358.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.1427, allocations: 486.2 kB / 358.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.1444, allocations: 0.9853 MB / 359.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008264/0.1453, allocations: 413.3 kB / 360 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004635/0.1457, allocations: 238.1 kB / 360.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.986e-05/0.1458, allocations: 4.438 kB / 360.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.673e-05/0.1459, allocations: 43 kB / 360.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 2.235e-06/0.1459, allocations: 0 / 360.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005265/0.1511, allocations: 2.215 MB / 362.5 MB, free: 9.055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.19e-05/0.1512, allocations: 85.67 kB / 362.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.1516, allocations: 263 kB / 362.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.423e-05/0.1516, allocations: 41.69 kB / 362.9 MB, free: 8.641 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.1518, allocations: 129.2 kB / 363 MB, free: 8.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.1519, allocations: 193.3 kB / 363.2 MB, free: 8.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/0.152, allocations: 12 kB / 363.2 MB, free: 8.309 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.1522, allocations: 338.8 kB / 363.6 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004407/0.1526, allocations: 205 kB / 363.8 MB, free: 7.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004947/0.1531, allocations: 248.6 kB / 364 MB, free: 7.516 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004363/0.1536, allocations: 198.1 kB / 364.2 MB, free: 7.328 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1536, allocations: 0 / 364.2 MB, free: 7.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001289/0.1549, allocations: 0.629 MB / 364.8 MB, free: 6.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.1549, allocations: 8 kB / 364.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.1549, allocations: 0 / 364.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007766/0.1557, allocations: 254.8 kB / 365.1 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003115/0.156, allocations: 71.88 kB / 365.1 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003934/0.16, allocations: 2.697 MB / 367.8 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000317/0.1603, allocations: 44.06 kB / 367.9 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.488e-05/0.1604, allocations: 16 kB / 367.9 MB, free: 3.473 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002183/0.1606, allocations: 153.8 kB / 368.1 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.144e-05/0.1607, allocations: 31.56 kB / 368.1 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001164/0.1608, allocations: 55.3 kB / 368.1 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.1608, allocations: 7.953 kB / 368.1 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1608, allocations: 0 / 368.1 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.1608, allocations: 7.984 kB / 368.2 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00246/0.1633, allocations: 1.272 MB / 369.4 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.1633, allocations: 3.984 kB / 369.4 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.1636, allocations: 67.89 kB / 369.5 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006464/0.1643, allocations: 240.7 kB / 369.7 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.643e-05/0.1643, allocations: 15.98 kB / 369.7 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2793/0.4436, allocations: 2.591 MB / 372.3 MB, free: 23.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.4437, allocations: 1.156 kB / 372.3 MB, free: 23.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002397/0.4461, allocations: 0.9664 MB / 373.3 MB, free: 23.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002586/0.4464, allocations: 163.3 kB / 373.5 MB, free: 23.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.364e-05/0.4464, allocations: 12.72 kB / 373.5 MB, free: 23.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003173/0.4468, allocations: 39.78 kB / 373.5 MB, free: 23.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/0.447, allocations: 76.36 kB / 373.6 MB, free: 23.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-05/0.4471, allocations: 18.72 kB / 373.6 MB, free: 23.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003168/0.4474, allocations: 191.5 kB / 373.8 MB, free: 23.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4474, allocations: 0 / 373.8 MB, free: 23.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000845/0.4483, allocations: 158 kB / 373.9 MB, free: 23.25 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003242/0.4486, allocations: 139.1 kB / 374.1 MB, free: 23.17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001746/0.4504, allocations: 0.7047 MB / 374.8 MB, free: 23.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4504, allocations: 0 / 374.8 MB, free: 23.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008346/0.4512, allocations: 495.1 kB / 375.3 MB, free: 22.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.4517, allocations: 41.44 kB / 375.3 MB, free: 22.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.4535, allocations: 0.9742 MB / 376.3 MB, free: 22.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.4539, allocations: 0.8002 MB / 377.1 MB, free: 21.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.4541, allocations: 35.84 kB / 377.1 MB, free: 21.74 MB / 302.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4541, allocations: 0.9688 kB / 377.1 MB, free: 21.74 MB / 302.1 MB Notification: Performance of Templates: time 0.01415/0.4683, allocations: 5.948 MB / 383.1 MB, free: 20.62 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile clang++ NOTFOUND -Winvalid-pch -O0 -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/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1CalcHelperMain.o OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1CalcHelperMain.o] Error 1