Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 98.2 kB / 16.96 MB, free: 5.297 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.001599/0.001599, allocations: 186.5 kB / 17.85 MB, free: 4.934 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.694/1.694, allocations: 223.2 MB / 241.9 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003267/0.0003267, allocations: 4.5 kB / 301.5 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1318, allocations: 50.42 MB / 351.9 MB, free: 3.777 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002659/0.1345, allocations: 1.959 MB / 353.8 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.1363, allocations: 0.8668 MB / 354.7 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.1364, allocations: 4 kB / 354.7 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.1366, allocations: 31.77 kB / 354.7 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004307/0.1371, allocations: 114.8 kB / 354.8 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003014/0.1374, allocations: 139.8 kB / 355 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004352/0.1378, allocations: 366.8 kB / 355.3 MB, free: 296 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.138, allocations: 60.66 kB / 355.4 MB, free: 232 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002041/0.1382, allocations: 155.5 kB / 355.5 MB, free: 76 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00031/0.1386, allocations: 191.3 kB / 355.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.859e-05/0.1386, allocations: 20 kB / 355.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001912/0.1388, allocations: 87.88 kB / 355.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.139, allocations: 83.77 kB / 355.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.417e-05/0.1391, allocations: 81.52 kB / 356 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003937/0.1395, allocations: 311.5 kB / 356.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.1395, allocations: 0 / 356.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1395, allocations: 0 / 356.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.1395, allocations: 0 / 356.3 MB, free: 15.31 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001112/0.1406, allocations: 0.5808 MB / 356.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.1407, allocations: 8.031 kB / 356.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003026/0.141, allocations: 47.61 kB / 356.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/0.1414, allocations: 298.5 kB / 357.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.1415, allocations: 91.95 kB / 357.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.477e-05/0.1416, allocations: 27.91 kB / 357.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007332/0.1424, allocations: 377.2 kB / 357.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.1424, allocations: 4 kB / 357.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.588e-05/0.1424, allocations: 15.95 kB / 357.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.1425, allocations: 12 kB / 357.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000862/0.1433, allocations: 425.9 kB / 358.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/0.1456, allocations: 1.253 MB / 359.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007282/0.1463, allocations: 354 kB / 359.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003908/0.1467, allocations: 192.8 kB / 359.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.168e-05/0.1468, allocations: 4 kB / 360 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/0.1468, allocations: 42.55 kB / 360 MB, free: 11.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.174e-06/0.1468, allocations: 0 / 360 MB, free: 11.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.005017/0.1519, allocations: 1.95 MB / 361.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.43e-05/0.152, allocations: 88.86 kB / 362 MB, free: 9.242 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/0.1523, allocations: 242.2 kB / 362.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.645e-05/0.1524, allocations: 37.62 kB / 362.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.1525, allocations: 128.8 kB / 362.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.1526, allocations: 157.9 kB / 362.6 MB, free: 8.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.42e-05/0.1527, allocations: 8 kB / 362.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1528, allocations: 338.8 kB / 362.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003506/0.1532, allocations: 172.8 kB / 363.1 MB, free: 8.148 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003964/0.1536, allocations: 233.8 kB / 363.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003477/0.154, allocations: 164.8 kB / 363.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.154, allocations: 0 / 363.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001032/0.155, allocations: 0.563 MB / 364 MB, free: 7.168 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.155, allocations: 4 kB / 364 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.155, allocations: 4 kB / 364.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006869/0.1557, allocations: 244.7 kB / 364.3 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/0.156, allocations: 55.91 kB / 364.3 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003662/0.1597, allocations: 2.653 MB / 367 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/0.1599, allocations: 27.98 kB / 367 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.34e-05/0.16, allocations: 19.98 kB / 367 MB, free: 4.035 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001972/0.1602, allocations: 149.8 kB / 367.2 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.645e-05/0.1602, allocations: 31.73 kB / 367.2 MB, free: 3.848 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.991e-05/0.1603, allocations: 46.98 kB / 367.3 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.1604, allocations: 4 kB / 367.3 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.1604, allocations: 4 kB / 367.3 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.1604, allocations: 3.984 kB / 367.3 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.1622, allocations: 1.093 MB / 368.4 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.1622, allocations: 3.984 kB / 368.4 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002172/0.1624, allocations: 51.91 kB / 368.4 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006139/0.1631, allocations: 232.7 kB / 368.7 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.984e-05/0.1631, allocations: 8 kB / 368.7 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2932/0.4563, allocations: 2.605 MB / 371.3 MB, free: 23.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.4563, allocations: 3.891 kB / 371.3 MB, free: 23.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00198/0.4583, allocations: 0.8111 MB / 372.1 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001893/0.4585, allocations: 145.2 kB / 372.2 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.45e-05/0.4586, allocations: 10.17 kB / 372.2 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002607/0.4589, allocations: 35.69 kB / 372.3 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/0.4591, allocations: 71.03 kB / 372.3 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.359e-05/0.4592, allocations: 15.69 kB / 372.4 MB, free: 23.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002726/0.4594, allocations: 179.5 kB / 372.5 MB, free: 23.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4595, allocations: 0 / 372.5 MB, free: 23.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009029/0.4604, allocations: 140.7 kB / 372.7 MB, free: 23.23 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0002826/0.4607, allocations: 140.7 kB / 372.8 MB, free: 23.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001538/0.4622, allocations: 0.6329 MB / 373.4 MB, free: 23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.4622, allocations: 5.297 kB / 373.4 MB, free: 23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008691/0.4631, allocations: 433.8 kB / 373.9 MB, free: 22.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004324/0.4635, allocations: 35.83 kB / 373.9 MB, free: 22.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.4652, allocations: 0.8557 MB / 374.8 MB, free: 22.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.4655, allocations: 0.7829 MB / 375.5 MB, free: 21.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.4657, allocations: 30.5 kB / 375.6 MB, free: 21.75 MB / 302.1 MB Notification: Performance of SimCode: time 1.343e-06/0.4657, allocations: 0 / 375.6 MB, free: 21.75 MB / 302.1 MB Notification: Performance of Templates: time 0.01366/0.4794, allocations: 5.185 MB / 380.8 MB, free: 21.24 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3CalcHelperMain.o OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3CalcHelperMain.o] Error 1