Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009415/0.0009415, allocations: 89.17 kB / 17.63 MB, free: 6.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001267/0.001267, allocations: 197.4 kB / 18.54 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.741/1.741, allocations: 227.3 MB / 246.6 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003213/0.0003213, allocations: 4 kB / 307.3 MB, free: 1.613 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1455, allocations: 51.49 MB / 358.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00199/0.1476, allocations: 1.387 MB / 360.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006778/0.1483, allocations: 303.1 kB / 360.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.1484, allocations: 4 kB / 360.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.1485, allocations: 27.8 kB / 360.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.506e-05/0.1486, allocations: 11.88 kB / 360.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003693/0.149, allocations: 87.88 kB / 360.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.1493, allocations: 243.5 kB / 360.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003002/0.1496, allocations: 153.6 kB / 361 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.52e-05/0.1497, allocations: 71.7 kB / 361 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.1498, allocations: 79.61 kB / 361.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.87e-05/0.1499, allocations: 8 kB / 361.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.78e-05/0.1499, allocations: 12 kB / 361.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.899e-05/0.15, allocations: 47.83 kB / 361.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.51e-05/0.1501, allocations: 53.58 kB / 361.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002139/0.1503, allocations: 167.6 kB / 361.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1503, allocations: 0 / 361.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1503, allocations: 0 / 361.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1503, allocations: 0 / 361.4 MB, free: 11.47 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007539/0.1511, allocations: 454.5 kB / 361.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.1511, allocations: 12.03 kB / 361.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.274e-05/0.1512, allocations: 19.81 kB / 361.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.1515, allocations: 238.6 kB / 362.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.963e-05/0.1516, allocations: 24.56 kB / 362.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.231e-05/0.1516, allocations: 31.95 kB / 362.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004756/0.1521, allocations: 266 kB / 362.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.1521, allocations: 3.938 kB / 362.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.1522, allocations: 12 kB / 362.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.1522, allocations: 8 kB / 362.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003192/0.1525, allocations: 165.6 kB / 362.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001307/0.1538, allocations: 0.9752 MB / 363.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.1542, allocations: 176.4 kB / 363.8 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001337/0.1543, allocations: 78.06 kB / 363.8 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.1543, allocations: 4.188 kB / 363.8 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002835/0.1546, allocations: 140.7 kB / 364 MB, free: 8.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.403e-06/0.1546, allocations: 7.938 kB / 364 MB, free: 8.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005308/0.1552, allocations: 221.2 kB / 364.2 MB, free: 8.453 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.031e-05/0.1553, allocations: 85.11 kB / 364.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.1554, allocations: 157.5 kB / 364.4 MB, free: 8.188 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.91e-05/0.1554, allocations: 41.69 kB / 364.5 MB, free: 8.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.1556, allocations: 140.5 kB / 364.6 MB, free: 8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.53e-05/0.1556, allocations: 59.28 kB / 364.7 MB, free: 7.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.63e-05/0.1556, allocations: 8 kB / 364.7 MB, free: 7.934 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.1558, allocations: 334.9 kB / 365 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.156, allocations: 59.97 kB / 365.1 MB, free: 7.539 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.1561, allocations: 136.3 kB / 365.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000136/0.1563, allocations: 67.94 kB / 365.3 MB, free: 7.309 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1563, allocations: 4 kB / 365.3 MB, free: 7.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003881/0.1567, allocations: 258 kB / 365.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.1567, allocations: 8 kB / 365.5 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.1567, allocations: 3.953 kB / 365.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.1568, allocations: 7.938 kB / 365.5 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.1569, allocations: 31.92 kB / 365.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.1569, allocations: 7.938 kB / 365.6 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.157, allocations: 39.67 kB / 365.6 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/0.1571, allocations: 12 kB / 365.6 MB, free: 6.938 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001826/0.1573, allocations: 154.5 kB / 365.8 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.1573, allocations: 19.8 kB / 365.8 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003652/0.1577, allocations: 192.1 kB / 366 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.1577, allocations: 7.953 kB / 366 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.1577, allocations: 4 kB / 366 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.1577, allocations: 0 / 366 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007879/0.1585, allocations: 0.6071 MB / 366.6 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1585, allocations: 0 / 366.6 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.907e-05/0.1586, allocations: 15.94 kB / 366.6 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.1586, allocations: 0 / 366.6 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.1586, allocations: 11.98 kB / 366.6 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1587, allocations: 0 / 366.6 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1587, allocations: 0 / 366.6 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003889/0.1591, allocations: 288 kB / 366.9 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.622e-05/0.1591, allocations: 96.91 kB / 367 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.937e-05/0.1592, allocations: 4 kB / 367 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.355e-05/0.1592, allocations: 7.984 kB / 367 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.749e-05/0.1593, allocations: 23.97 kB / 367 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.1594, allocations: 4 kB / 367 MB, free: 5.398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.739e-05/0.1594, allocations: 101.7 kB / 367.1 MB, free: 5.301 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.1594, allocations: 3.938 kB / 367.2 MB, free: 5.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003211/0.1598, allocations: 59.75 kB / 367.2 MB, free: 5.238 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: 20 (transition2.t_start,step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001953/0.16, allocations: 111.2 kB / 367.3 MB, free: 5.121 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003332/0.1603, allocations: 183.7 kB / 367.5 MB, free: 4.941 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1603, allocations: 0 / 367.5 MB, free: 4.941 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.1605, allocations: 83.84 kB / 367.6 MB, free: 4.859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.1608, allocations: 27.36 kB / 367.6 MB, free: 4.836 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007796/0.1616, allocations: 426.3 kB / 368 MB, free: 4.383 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.1619, allocations: 0.7328 MB / 368.8 MB, free: 3.625 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.969e-05/0.162, allocations: 27.42 kB / 368.8 MB, free: 3.602 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.162, allocations: 0 / 368.8 MB, free: 3.602 MB / 302.1 MB Notification: Performance of Templates: time 0.005362/0.1674, allocations: 2.408 MB / 371.2 MB, free: 1.195 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.StateGraph.Examples.FirstExample_Variant2CalcHelperMain.o OMCppModelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2CalcHelperMain.o] Error 1