Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009774/0.0009778, allocations: 93.98 kB / 17.63 MB, free: 6.141 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0012/0.0012, allocations: 193.9 kB / 18.54 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.623/1.623, allocations: 227.3 MB / 246.6 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002562/0.0002562, allocations: 4 kB / 307.3 MB, free: 1.383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1266, allocations: 51.49 MB / 358.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003301/0.13, allocations: 2.14 MB / 360.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001848/0.1319, allocations: 1.042 MB / 362 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001325/0.132, allocations: 4 kB / 362 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002872/0.1323, allocations: 55.67 kB / 362 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003783/0.1327, allocations: 152.1 kB / 362.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003078/0.133, allocations: 135.8 kB / 362.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000476/0.1335, allocations: 458.5 kB / 362.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.1337, allocations: 68.69 kB / 362.8 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/0.134, allocations: 207.3 kB / 363 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000318/0.1343, allocations: 247.2 kB / 363.3 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.557e-05/0.1344, allocations: 20 kB / 363.3 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002169/0.1346, allocations: 104 kB / 363.4 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.1348, allocations: 95.64 kB / 363.5 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.569e-05/0.1349, allocations: 77.58 kB / 363.6 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004221/0.1353, allocations: 403.3 kB / 364 MB, free: 8.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.762e-05/0.1353, allocations: 0 / 364 MB, free: 8.707 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1353, allocations: 3.938 kB / 364 MB, free: 8.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.1353, allocations: 0 / 364 MB, free: 8.703 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.001164/0.1365, allocations: 0.643 MB / 364.6 MB, free: 8.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.1366, allocations: 12.03 kB / 364.6 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003785/0.1369, allocations: 67.48 kB / 364.7 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004131/0.1374, allocations: 302.3 kB / 365 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/0.1375, allocations: 92.05 kB / 365.1 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.475e-05/0.1376, allocations: 39.86 kB / 365.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007797/0.1384, allocations: 416.9 kB / 365.5 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.1384, allocations: 8 kB / 365.5 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.69e-05/0.1384, allocations: 8 kB / 365.5 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.1384, allocations: 8 kB / 365.5 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001/0.1395, allocations: 486.2 kB / 366 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.1412, allocations: 1.016 MB / 367 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008319/0.142, allocations: 400.4 kB / 367.4 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/0.1425, allocations: 234.1 kB / 367.6 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.202e-05/0.1426, allocations: 12.41 kB / 367.7 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/0.1426, allocations: 35 kB / 367.7 MB, free: 4.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.453e-06/0.1426, allocations: 4 kB / 367.7 MB, free: 4.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005136/0.1478, allocations: 2.191 MB / 369.9 MB, free: 2.469 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.479e-05/0.1478, allocations: 93.61 kB / 370 MB, free: 2.359 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003444/0.1482, allocations: 268.2 kB / 370.2 MB, free: 2.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.555e-05/0.1482, allocations: 33.7 kB / 370.3 MB, free: 2.047 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.1484, allocations: 145 kB / 370.4 MB, free: 1.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.1485, allocations: 177.5 kB / 370.6 MB, free: 1.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.992e-05/0.1486, allocations: 8 kB / 370.6 MB, free: 1.715 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1487, allocations: 346.8 kB / 370.9 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004377/0.1492, allocations: 197 kB / 371.1 MB, free: 1.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004759/0.1497, allocations: 244.6 kB / 371.4 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004288/0.1501, allocations: 190.2 kB / 371.5 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1501, allocations: 0 / 371.5 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001286/0.1514, allocations: 0.6212 MB / 372.2 MB, free: 116 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.1514, allocations: 10.81 kB / 372.2 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1515, allocations: 3.984 kB / 372.2 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2482/0.3996, allocations: 285.2 kB / 372.5 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004316/0.4001, allocations: 74.75 kB / 372.5 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003993/0.4041, allocations: 2.712 MB / 375.2 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004268/0.4046, allocations: 36.83 kB / 375.3 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-05/0.4046, allocations: 23.91 kB / 375.3 MB, free: 18.32 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.0002701/0.4049, allocations: 163.1 kB / 375.5 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.7e-05/0.405, allocations: 35.66 kB / 375.5 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.4051, allocations: 47.39 kB / 375.5 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.709e-06/0.4052, allocations: 10.17 kB / 375.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4052, allocations: 0 / 375.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.4052, allocations: 8.203 kB / 375.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002617/0.4078, allocations: 1.305 MB / 376.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.4078, allocations: 0.5312 kB / 376.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003474/0.4082, allocations: 68.38 kB / 376.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007392/0.4089, allocations: 289.5 kB / 377.2 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.311e-05/0.409, allocations: 16.81 kB / 377.2 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00316/0.4122, allocations: 2.605 MB / 379.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4122, allocations: 0 / 379.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001782/0.414, allocations: 0.9646 MB / 380.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001855/0.4142, allocations: 167.4 kB / 381 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.471e-05/0.4142, allocations: 15.94 kB / 381 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002946/0.4145, allocations: 36.03 kB / 381 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002188/0.4148, allocations: 81.47 kB / 381.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.021e-05/0.4148, allocations: 21.36 kB / 381.1 MB, free: 15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002478/0.4151, allocations: 203.1 kB / 381.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4151, allocations: 4 kB / 381.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007398/0.4158, allocations: 149.4 kB / 381.5 MB, free: 14.86 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.0009215/0.4168, allocations: 383.9 kB / 381.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001468/0.4182, allocations: 0.7015 MB / 382.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4183, allocations: 1.156 kB / 382.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008315/0.4191, allocations: 489.8 kB / 383 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004515/0.4196, allocations: 46.2 kB / 383.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.4211, allocations: 0.9844 MB / 384.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.4214, allocations: 0.7918 MB / 384.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.4216, allocations: 48.23 kB / 384.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.4216, allocations: 1.312 kB / 384.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of Templates: time 0.01093/0.4325, allocations: 6.609 MB / 391.5 MB, free: 10.62 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile make -j1 -f Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1CalcHelperMain.o OMCppModelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1CalcHelperMain.o] Error 1