Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009324/0.0009325, allocations: 91.19 kB / 17.63 MB, free: 6.133 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 206.6 kB / 18.54 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.603/1.603, allocations: 227.3 MB / 246.6 MB, free: 12.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002958/0.0002958, allocations: 12 kB / 307.3 MB, free: 1.633 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1335, allocations: 51.49 MB / 358.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003023/0.1366, allocations: 2.471 MB / 361.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.1378, allocations: 0.6976 MB / 362 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.138, allocations: 7.938 kB / 362 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.1382, allocations: 39.69 kB / 362 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001615/0.1383, allocations: 79.38 kB / 362.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.1386, allocations: 79.84 kB / 362.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003982/0.139, allocations: 346.5 kB / 362.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002217/0.1392, allocations: 98.31 kB / 362.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.1394, allocations: 127.5 kB / 362.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001854/0.1396, allocations: 143.4 kB / 362.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.868e-05/0.1397, allocations: 20 kB / 362.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.308e-05/0.1397, allocations: 19.94 kB / 362.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.549e-05/0.1398, allocations: 51.77 kB / 363 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.83e-05/0.1399, allocations: 77.58 kB / 363 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002788/0.1402, allocations: 299.4 kB / 363.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1402, allocations: 0 / 363.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.167e-06/0.1402, allocations: 0 / 363.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.81e-06/0.1402, allocations: 3.938 kB / 363.3 MB, free: 9.566 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001262/0.1415, allocations: 0.6535 MB / 364 MB, free: 8.855 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.1415, allocations: 8.031 kB / 364 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.235e-05/0.1416, allocations: 35.62 kB / 364 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003772/0.142, allocations: 286.3 kB / 364.3 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.911e-05/0.142, allocations: 28.55 kB / 364.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/0.1421, allocations: 24 kB / 364.4 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006829/0.1428, allocations: 335.6 kB / 364.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.1428, allocations: 0 / 364.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.1428, allocations: 12 kB / 364.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.1428, allocations: 4 kB / 364.7 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007417/0.1436, allocations: 302.1 kB / 365 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/0.1455, allocations: 1.165 MB / 366.2 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007595/0.1462, allocations: 246.5 kB / 366.4 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.1465, allocations: 104.8 kB / 366.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.1465, allocations: 0 / 366.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004468/0.147, allocations: 169.1 kB / 366.7 MB, free: 5.992 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.147, allocations: 0 / 366.7 MB, free: 5.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001188/0.1482, allocations: 463.1 kB / 367.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.837e-05/0.1483, allocations: 81.11 kB / 367.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003623/0.1487, allocations: 328.4 kB / 367.5 MB, free: 5.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.1487, allocations: 25.7 kB / 367.6 MB, free: 5.055 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.1489, allocations: 219.4 kB / 367.8 MB, free: 4.836 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.992e-05/0.1489, allocations: 31.56 kB / 367.8 MB, free: 4.805 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.488e-05/0.1489, allocations: 4 kB / 367.8 MB, free: 4.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1491, allocations: 342.8 kB / 368.1 MB, free: 4.457 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003274/0.1494, allocations: 108.2 kB / 368.2 MB, free: 4.348 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003719/0.1498, allocations: 227 kB / 368.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.1501, allocations: 161.1 kB / 368.6 MB, free: 3.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1502, allocations: 4 kB / 368.6 MB, free: 3.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008877/0.151, allocations: 435.5 kB / 369 MB, free: 3.469 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.626e-05/0.1511, allocations: 33.7 kB / 369.1 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.1511, allocations: 4 kB / 369.1 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001968/0.1513, allocations: 32.83 kB / 369.1 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002602/0.1516, allocations: 72.05 kB / 369.2 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/0.1528, allocations: 1.308 MB / 370.5 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003435/0.1531, allocations: 59.66 kB / 370.6 MB, free: 1.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.909e-05/0.1532, allocations: 12.09 kB / 370.6 MB, free: 1.812 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002175/0.1534, allocations: 148.2 kB / 370.7 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.394e-05/0.1534, allocations: 31.66 kB / 370.7 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.56e-05/0.1535, allocations: 34.55 kB / 370.8 MB, free: 1.598 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1535, allocations: 4 kB / 370.8 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.1535, allocations: 0 / 370.8 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.1535, allocations: 0 / 370.8 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004978/0.154, allocations: 463 kB / 371.2 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1541, allocations: 0 / 371.2 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.1542, allocations: 35.97 kB / 371.3 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.302e-05/0.1543, allocations: 24.84 kB / 371.3 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.1544, allocations: 8.016 kB / 371.3 MB, free: 1.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2676/0.422, allocations: 1.288 MB / 372.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.422, allocations: 4.438 kB / 372.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009856/0.423, allocations: 307.3 kB / 372.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.4231, allocations: 100.9 kB / 373 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/0.4232, allocations: 10.55 kB / 373 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.4234, allocations: 34.83 kB / 373 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.376e-05/0.4235, allocations: 21.7 kB / 373.1 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.4236, allocations: 4.156 kB / 373.1 MB, free: 19.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003675/0.4239, allocations: 228.4 kB / 373.3 MB, free: 19.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4239, allocations: 0 / 373.3 MB, free: 19.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004423/0.4244, allocations: 67.64 kB / 373.3 MB, free: 19.29 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001919/0.4246, allocations: 100.2 kB / 373.4 MB, free: 19.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.4258, allocations: 448.5 kB / 373.9 MB, free: 19.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4258, allocations: 0 / 373.9 MB, free: 19.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000499/0.4263, allocations: 226.1 kB / 374.1 MB, free: 18.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003989/0.4267, allocations: 46.77 kB / 374.1 MB, free: 18.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.4279, allocations: 0.5959 MB / 374.7 MB, free: 18.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.4282, allocations: 0.7531 MB / 375.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.163e-05/0.4283, allocations: 26.05 kB / 375.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4283, allocations: 0 / 375.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of Templates: time 0.01266/0.441, allocations: 4.597 MB / 380.1 MB, free: 17.6 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.Electrical.Analog.Examples.OpAmps.ComparatorCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ComparatorCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ComparatorCalcHelperMain.o] Error 1