Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009339/0.0009339, allocations: 92.98 kB / 17.63 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001211/0.001212, allocations: 198.5 kB / 18.54 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 227.3 MB / 246.6 MB, free: 12.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002456/0.000246, allocations: 8 kB / 307.3 MB, free: 1.609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1257, allocations: 51.48 MB / 358.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003381/0.1291, allocations: 2.062 MB / 360.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002056/0.1312, allocations: 0.9877 MB / 361.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002894/0.1316, allocations: 4 kB / 361.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003541/0.1319, allocations: 55.69 kB / 361.9 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005777/0.1325, allocations: 134.6 kB / 362 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004772/0.133, allocations: 127.8 kB / 362.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007158/0.1337, allocations: 410.7 kB / 362.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.1339, allocations: 52.69 kB / 362.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000412/0.1343, allocations: 175.5 kB / 362.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004671/0.1348, allocations: 219.3 kB / 363 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.263e-05/0.1349, allocations: 20 kB / 363 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003126/0.1352, allocations: 95.89 kB / 363.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001537/0.1354, allocations: 87.77 kB / 363.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.1356, allocations: 73.52 kB / 363.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006557/0.1363, allocations: 363.4 kB / 363.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1363, allocations: 0 / 363.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1363, allocations: 0 / 363.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.842e-05/0.1363, allocations: 0 / 363.6 MB, free: 9.266 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.00147/0.1378, allocations: 0.608 MB / 364.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.827e-05/0.1379, allocations: 12.03 kB / 364.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005104/0.1384, allocations: 43.61 kB / 364.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005386/0.1389, allocations: 304.1 kB / 364.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001564/0.1391, allocations: 87.91 kB / 364.7 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.988e-05/0.1392, allocations: 32 kB / 364.7 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009025/0.1401, allocations: 381.3 kB / 365.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.617e-05/0.1402, allocations: 7.938 kB / 365.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.938e-05/0.1402, allocations: 11.94 kB / 365.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.1402, allocations: 8 kB / 365.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.1413, allocations: 417.9 kB / 365.5 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003025/0.1443, allocations: 1.273 MB / 366.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009563/0.1453, allocations: 354.2 kB / 367.1 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004485/0.1457, allocations: 184.8 kB / 367.3 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.011e-05/0.1458, allocations: 8.141 kB / 367.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.22e-05/0.1459, allocations: 46.55 kB / 367.3 MB, free: 5.312 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.725e-06/0.1459, allocations: 0 / 367.3 MB, free: 5.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.005889/0.1518, allocations: 1.941 MB / 369.3 MB, free: 3.258 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.638e-05/0.1519, allocations: 84.86 kB / 369.4 MB, free: 3.156 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005319/0.1524, allocations: 243.7 kB / 369.6 MB, free: 2.906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.757e-05/0.1525, allocations: 37.7 kB / 369.6 MB, free: 2.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.1527, allocations: 136.6 kB / 369.8 MB, free: 2.727 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.1529, allocations: 153.9 kB / 369.9 MB, free: 2.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-05/0.1529, allocations: 8 kB / 369.9 MB, free: 2.566 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.1531, allocations: 338.8 kB / 370.3 MB, free: 2.227 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003982/0.1535, allocations: 164.8 kB / 370.4 MB, free: 2.066 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004508/0.154, allocations: 229.9 kB / 370.7 MB, free: 1.828 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003765/0.1543, allocations: 160.7 kB / 370.8 MB, free: 1.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1544, allocations: 0 / 370.8 MB, free: 1.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00119/0.1556, allocations: 0.5513 MB / 371.4 MB, free: 1.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.1556, allocations: 11.95 kB / 371.4 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.1556, allocations: 3.984 kB / 371.4 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008492/0.1565, allocations: 297.8 kB / 371.7 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002616/0.1567, allocations: 55.89 kB / 371.7 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2848/0.4415, allocations: 2.644 MB / 374.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004383/0.442, allocations: 30.7 kB / 374.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-05/0.4421, allocations: 19.69 kB / 374.4 MB, free: 18.66 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.0002761/0.4424, allocations: 155.4 kB / 374.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.601e-05/0.4425, allocations: 32.28 kB / 374.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001386/0.4426, allocations: 42.88 kB / 374.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.4426, allocations: 6.125 kB / 374.7 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4426, allocations: 0 / 374.7 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.4427, allocations: 2.391 kB / 374.7 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00255/0.4452, allocations: 1.124 MB / 375.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.4452, allocations: 0 / 375.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002498/0.4455, allocations: 51.42 kB / 375.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008104/0.4463, allocations: 280.4 kB / 376.1 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.961e-05/0.4464, allocations: 16.38 kB / 376.1 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003694/0.4501, allocations: 2.609 MB / 378.7 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4501, allocations: 2.531 kB / 378.7 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00172/0.4518, allocations: 0.8116 MB / 379.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/0.452, allocations: 161.9 kB / 379.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.843e-05/0.4521, allocations: 11.92 kB / 379.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002552/0.4524, allocations: 26.5 kB / 379.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.4526, allocations: 78.86 kB / 379.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.296e-05/0.4526, allocations: 18.77 kB / 379.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002863/0.4529, allocations: 188 kB / 380 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4529, allocations: 0 / 380 MB, free: 15.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008226/0.4538, allocations: 132.5 kB / 380.1 MB, free: 15.54 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.00109/0.4549, allocations: 390 kB / 380.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.4565, allocations: 0.6367 MB / 381.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4566, allocations: 0 / 381.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008383/0.4574, allocations: 427.7 kB / 381.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.4579, allocations: 39.52 kB / 381.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.4595, allocations: 0.869 MB / 382.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.4598, allocations: 0.7844 MB / 383.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.46, allocations: 36.27 kB / 383.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.46, allocations: 0 / 383.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of Templates: time 0.01251/0.4725, allocations: 5.86 MB / 389.2 MB, free: 11.96 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile make -j1 -f Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3CalcHelperMain.o OMCppModelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3CalcHelperMain.o] Error 1