Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.0009573/0.0009572, allocations: 95.95 kB / 17.59 MB, free: 6.168 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.001018/0.001018, allocations: 183.5 kB / 18.47 MB, free: 5.336 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.794/1.794, allocations: 205.4 MB / 224.6 MB, free: 13.06 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.0004918/0.000492, allocations: 12 kB / 281.4 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1061, allocations: 47.59 MB / 329 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003044/0.1092, allocations: 2.031 MB / 331 MB, free: 2.023 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002156/0.1114, allocations: 0.9534 MB / 332 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002999/0.1117, allocations: 4 kB / 332 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002617/0.112, allocations: 35.7 kB / 332 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007065/0.1127, allocations: 131.3 kB / 332.1 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004834/0.1132, allocations: 143.8 kB / 332.3 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006275/0.1138, allocations: 418.5 kB / 332.7 MB, free: 352 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.114, allocations: 76.91 kB / 332.8 MB, free: 272 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004004/0.1145, allocations: 175.4 kB / 332.9 MB, free: 96 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003904/0.1149, allocations: 211.3 kB / 333.1 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.712e-05/0.115, allocations: 20 kB / 333.2 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002791/0.1152, allocations: 99.86 kB / 333.3 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.1154, allocations: 91.7 kB / 333.3 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.1155, allocations: 77.52 kB / 333.4 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004201/0.116, allocations: 351.4 kB / 333.8 MB, free: 15.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.116, allocations: 0 / 333.8 MB, free: 15.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.116, allocations: 4 kB / 333.8 MB, free: 15.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.565e-05/0.116, allocations: 4 kB / 333.8 MB, free: 15.25 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001591/0.1176, allocations: 0.6196 MB / 334.4 MB, free: 14.58 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.843e-05/0.1177, allocations: 12.03 kB / 334.4 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005311/0.1182, allocations: 51.61 kB / 334.5 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007204/0.119, allocations: 310.2 kB / 334.8 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001995/0.1192, allocations: 92.05 kB / 334.8 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.1193, allocations: 36 kB / 334.9 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009484/0.1203, allocations: 412.9 kB / 335.3 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.1203, allocations: 4 kB / 335.3 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.151e-05/0.1204, allocations: 12 kB / 335.3 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.1204, allocations: 8 kB / 335.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/0.1215, allocations: 490.2 kB / 335.8 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001911/0.1234, allocations: 0.9891 MB / 336.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008734/0.1243, allocations: 412.4 kB / 337.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004623/0.1248, allocations: 234.1 kB / 337.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.742e-05/0.1249, allocations: 4.438 kB / 337.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.1249, allocations: 39 kB / 337.4 MB, free: 11.38 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 2.915e-06/0.1249, allocations: 0 / 337.4 MB, free: 11.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.005419/0.1303, allocations: 2.222 MB / 339.7 MB, free: 9.043 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/0.1304, allocations: 85.61 kB / 339.8 MB, free: 8.941 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003714/0.1308, allocations: 263.1 kB / 340 MB, free: 8.676 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.744e-05/0.1309, allocations: 37.7 kB / 340 MB, free: 8.633 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.131, allocations: 133.1 kB / 340.2 MB, free: 8.496 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.1312, allocations: 177.4 kB / 340.4 MB, free: 8.32 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.028e-05/0.1312, allocations: 12 kB / 340.4 MB, free: 8.309 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.1314, allocations: 346.8 kB / 340.7 MB, free: 7.961 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004549/0.1319, allocations: 201 kB / 340.9 MB, free: 7.766 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004645/0.1323, allocations: 252.6 kB / 341.1 MB, free: 7.508 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000431/0.1328, allocations: 202.2 kB / 341.3 MB, free: 7.312 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1328, allocations: 0 / 341.3 MB, free: 7.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00127/0.1341, allocations: 0.629 MB / 342 MB, free: 6.676 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.1341, allocations: 7.953 kB / 342 MB, free: 6.668 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1341, allocations: 0 / 342 MB, free: 6.668 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007344/0.1349, allocations: 254.1 kB / 342.2 MB, free: 6.418 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003085/0.1352, allocations: 67.89 kB / 342.3 MB, free: 6.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003953/0.1391, allocations: 2.698 MB / 345 MB, free: 3.52 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003348/0.1395, allocations: 35.97 kB / 345 MB, free: 3.484 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.109e-05/0.1396, allocations: 16 kB / 345 MB, free: 3.469 MB / 286.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.0002416/0.1398, allocations: 169.8 kB / 345.2 MB, free: 3.293 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.608e-05/0.1399, allocations: 31.62 kB / 345.2 MB, free: 3.262 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001261/0.1401, allocations: 47.31 kB / 345.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.1401, allocations: 8 kB / 345.3 MB, free: 3.207 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.1401, allocations: 3.984 kB / 345.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1401, allocations: 3.938 kB / 345.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002247/0.1423, allocations: 1.28 MB / 346.6 MB, free: 1.855 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1424, allocations: 0 / 346.6 MB, free: 1.855 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003117/0.1427, allocations: 63.89 kB / 346.6 MB, free: 1.793 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006518/0.1433, allocations: 236.7 kB / 346.9 MB, free: 1.559 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.223e-05/0.1434, allocations: 19.94 kB / 346.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003405/0.1468, allocations: 2.612 MB / 349.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1468, allocations: 3.984 kB / 349.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001804/0.1487, allocations: 0.9689 MB / 350.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002174/0.1489, allocations: 156.7 kB / 350.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.718e-05/0.149, allocations: 12 kB / 350.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003002/0.1493, allocations: 40.03 kB / 350.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/0.1495, allocations: 80.23 kB / 350.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.808e-05/0.1495, allocations: 15.98 kB / 350.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002612/0.1498, allocations: 196.6 kB / 351 MB, free: 13.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1498, allocations: 0 / 351 MB, free: 13.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007338/0.1505, allocations: 152 kB / 351.1 MB, free: 13.14 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.0003085/0.1508, allocations: 139.2 kB / 351.3 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.1525, allocations: 0.7111 MB / 352 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1525, allocations: 0 / 352 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009121/0.1534, allocations: 479.7 kB / 352.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005247/0.154, allocations: 56.08 kB / 352.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001886/0.1559, allocations: 0.974 MB / 353.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000495/0.1564, allocations: 0.7931 MB / 354.3 MB, free: 9.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.1565, allocations: 39.41 kB / 354.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1565, allocations: 0 / 354.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of Templates: time 0.01084/0.1674, allocations: 5.942 MB / 360.2 MB, free: 3.926 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile make -j1 -f Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1CalcHelperMain.o OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1CalcHelperMain.o] Error 1