Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 96.11 kB / 17.58 MB, free: 5.801 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.001107/0.001107, allocations: 182 kB / 18.48 MB, free: 5.254 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.75/1.75, allocations: 205.4 MB / 224.6 MB, free: 13.15 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.0005013/0.0005014, allocations: 12 kB / 281.4 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1157, allocations: 47.58 MB / 329 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003352/0.1191, allocations: 2.375 MB / 331.4 MB, free: 1.684 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.1212, allocations: 0.901 MB / 332.3 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003882/0.1216, allocations: 7.938 kB / 332.3 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002653/0.1219, allocations: 43.69 kB / 332.3 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003626/0.1223, allocations: 91.3 kB / 332.4 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006047/0.1229, allocations: 159.7 kB / 332.6 MB, free: 488 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006901/0.1236, allocations: 0.4955 MB / 333 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.1238, allocations: 97.94 kB / 333.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003098/0.1242, allocations: 207.3 kB / 333.3 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000282/0.1244, allocations: 243.1 kB / 333.6 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.643e-05/0.1245, allocations: 24 kB / 333.6 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001567/0.1247, allocations: 67.95 kB / 333.7 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.1248, allocations: 87.64 kB / 333.8 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.564e-05/0.1249, allocations: 85.52 kB / 333.8 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003877/0.1253, allocations: 375.3 kB / 334.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.1253, allocations: 4 kB / 334.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1253, allocations: 0 / 334.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1253, allocations: 0 / 334.2 MB, free: 14.8 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001235/0.1265, allocations: 0.6939 MB / 334.9 MB, free: 14.06 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.1266, allocations: 12.03 kB / 334.9 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.268e-05/0.1267, allocations: 39.53 kB / 335 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003525/0.127, allocations: 301.4 kB / 335.3 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.591e-05/0.1271, allocations: 32.94 kB / 335.3 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.835e-05/0.1272, allocations: 36 kB / 335.3 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008034/0.128, allocations: 442.3 kB / 335.8 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.128, allocations: 3.906 kB / 335.8 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.308e-05/0.1281, allocations: 16 kB / 335.8 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.779e-06/0.1281, allocations: 8 kB / 335.8 MB, free: 13.13 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008976/0.129, allocations: 471.7 kB / 336.2 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002243/0.1312, allocations: 1.3 MB / 337.5 MB, free: 11.3 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008153/0.1321, allocations: 372.4 kB / 337.9 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005001/0.1326, allocations: 257.5 kB / 338.2 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.843e-05/0.1326, allocations: 8.375 kB / 338.2 MB, free: 10.67 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.1327, allocations: 34.94 kB / 338.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 5.39e-06/0.1327, allocations: 4 kB / 338.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.005672/0.1384, allocations: 2.374 MB / 340.6 MB, free: 8.109 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.004e-05/0.1384, allocations: 55.84 kB / 340.6 MB, free: 8.043 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.1387, allocations: 246.6 kB / 340.9 MB, free: 7.797 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.881e-05/0.1388, allocations: 45.69 kB / 340.9 MB, free: 7.746 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.1389, allocations: 168.6 kB / 341.1 MB, free: 7.578 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.1391, allocations: 165.7 kB / 341.2 MB, free: 7.414 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.044e-05/0.1391, allocations: 8 kB / 341.2 MB, free: 7.406 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1393, allocations: 342.8 kB / 341.6 MB, free: 7.062 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000476/0.1398, allocations: 245 kB / 341.8 MB, free: 6.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005232/0.1403, allocations: 311.1 kB / 342.1 MB, free: 6.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004052/0.1407, allocations: 194.1 kB / 342.3 MB, free: 6.312 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1407, allocations: 0 / 342.3 MB, free: 6.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001561/0.1423, allocations: 0.7743 MB / 343.1 MB, free: 5.52 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.1423, allocations: 4 kB / 343.1 MB, free: 5.516 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.1423, allocations: 4 kB / 343.1 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/0.1435, allocations: 0.5451 MB / 343.6 MB, free: 4.957 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002716/0.1438, allocations: 79.91 kB / 343.7 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.147, allocations: 3.455 MB / 347.2 MB, free: 1.137 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004445/0.1475, allocations: 108 kB / 347.3 MB, free: 1.031 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.376e-05/0.1475, allocations: 16 kB / 347.3 MB, free: 1.016 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002058/0.1477, allocations: 177.6 kB / 347.5 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.017e-05/0.1478, allocations: 43.47 kB / 347.5 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001462/0.1493, allocations: 0.7287 MB / 348.2 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.1493, allocations: 8 kB / 348.3 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.1493, allocations: 0 / 348.3 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1493, allocations: 3.984 kB / 348.3 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002275/0.1516, allocations: 1.271 MB / 349.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.1516, allocations: 3.984 kB / 349.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002549/0.1519, allocations: 63.91 kB / 349.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009702/0.1529, allocations: 0.5293 MB / 350.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.13e-05/0.1529, allocations: 19.97 kB / 350.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002974/0.1559, allocations: 3.432 MB / 353.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.1559, allocations: 4 kB / 353.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001924/0.1579, allocations: 1.048 MB / 354.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.1581, allocations: 156.7 kB / 354.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.251e-05/0.1581, allocations: 19.95 kB / 354.8 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004255/0.1586, allocations: 99.84 kB / 354.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.1588, allocations: 108.2 kB / 355 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.862e-05/0.1588, allocations: 23.97 kB / 355 MB, free: 8.848 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001644/0.159, allocations: 178 kB / 355.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.159, allocations: 0 / 355.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004928/0.1595, allocations: 128 kB / 355.3 MB, free: 8.551 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002537/0.1598, allocations: 135.2 kB / 355.5 MB, free: 8.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.1613, allocations: 0.8177 MB / 356.3 MB, free: 7.566 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.1613, allocations: 0 / 356.3 MB, free: 7.566 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009337/0.1622, allocations: 0.537 MB / 356.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005146/0.1628, allocations: 60.53 kB / 356.9 MB, free: 6.945 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001995/0.1648, allocations: 1.197 MB / 358.1 MB, free: 5.719 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.1652, allocations: 0.7996 MB / 358.9 MB, free: 4.891 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.422e-05/0.1653, allocations: 23.44 kB / 358.9 MB, free: 4.867 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1653, allocations: 0 / 358.9 MB, free: 4.867 MB / 302.1 MB Notification: Performance of Templates: time 0.0113/0.1766, allocations: 8.817 MB / 367.7 MB, free: 12.04 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShiftCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShiftCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShiftCalcHelperMain.o] Error 1