Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 92.23 kB / 16.95 MB, free: 5.953 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.001689/0.001689, allocations: 177.4 kB / 17.84 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 223.2 MB / 241.8 MB, free: 14.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005022/0.0005025, allocations: 8 kB / 301.4 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1334, allocations: 50.41 MB / 351.9 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001702/0.1352, allocations: 1.193 MB / 353 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006872/0.1359, allocations: 299.1 kB / 353.3 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.718e-05/0.136, allocations: 8 kB / 353.3 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.1362, allocations: 19.8 kB / 353.4 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.814e-05/0.1362, allocations: 7.938 kB / 353.4 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.1366, allocations: 83.89 kB / 353.5 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00034/0.137, allocations: 231.5 kB / 353.7 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002969/0.1373, allocations: 134.2 kB / 353.8 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/0.1374, allocations: 67.77 kB / 353.9 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001206/0.1375, allocations: 71.62 kB / 353.9 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.441e-05/0.1375, allocations: 8 kB / 354 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.658e-05/0.1376, allocations: 19.98 kB / 354 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.15e-05/0.1377, allocations: 43.77 kB / 354 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.43e-05/0.1377, allocations: 53.64 kB / 354.1 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000178/0.1379, allocations: 151.7 kB / 354.2 MB, free: 1.406 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1379, allocations: 4 kB / 354.2 MB, free: 1.402 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1379, allocations: 0 / 354.2 MB, free: 1.402 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.1379, allocations: 0 / 354.2 MB, free: 1.402 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006126/0.1386, allocations: 442.6 kB / 354.7 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.1386, allocations: 12.03 kB / 354.7 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.451e-05/0.1387, allocations: 19.72 kB / 354.7 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002453/0.1389, allocations: 226.8 kB / 354.9 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.17e-05/0.139, allocations: 28.55 kB / 354.9 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.663e-05/0.139, allocations: 24 kB / 355 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004177/0.1394, allocations: 239.5 kB / 355.2 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.1395, allocations: 0 / 355.2 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.1395, allocations: 11.94 kB / 355.2 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.1395, allocations: 7.953 kB / 355.2 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002815/0.1398, allocations: 161.6 kB / 355.4 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009561/0.1408, allocations: 0.7014 MB / 356.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002855/0.1411, allocations: 175.3 kB / 356.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.1412, allocations: 85.14 kB / 356.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.1412, allocations: 4.188 kB / 356.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002267/0.1414, allocations: 110.8 kB / 356.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.1415, allocations: 4 kB / 356.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.000409/0.1419, allocations: 213.3 kB / 356.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/0.1419, allocations: 71.25 kB / 356.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.1421, allocations: 149.5 kB / 356.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.1421, allocations: 37.7 kB / 356.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.039e-05/0.1422, allocations: 132.6 kB / 357 MB, free: 14.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.515e-05/0.1422, allocations: 63.19 kB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.116e-05/0.1423, allocations: 4 kB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1424, allocations: 326.8 kB / 357.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.1425, allocations: 60.62 kB / 357.5 MB, free: 13.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.1426, allocations: 132.1 kB / 357.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.1428, allocations: 72.45 kB / 357.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1428, allocations: 0 / 357.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000359/0.1432, allocations: 245.2 kB / 357.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.1432, allocations: 4 kB / 357.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1432, allocations: 4 kB / 357.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.1432, allocations: 4 kB / 357.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.1434, allocations: 27.92 kB / 358 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.1434, allocations: 4.219 kB / 358 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.1435, allocations: 35.75 kB / 358 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.123e-05/0.1435, allocations: 15.98 kB / 358 MB, free: 13.36 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001485/0.1437, allocations: 157.6 kB / 358.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/0.1437, allocations: 11.91 kB / 358.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003594/0.1441, allocations: 194.3 kB / 358.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.1441, allocations: 4 kB / 358.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1441, allocations: 4 kB / 358.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.1441, allocations: 0 / 358.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007056/0.1448, allocations: 0.5726 MB / 358.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1448, allocations: 0 / 358.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.575e-05/0.1449, allocations: 15.98 kB / 359 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.1449, allocations: 7.984 kB / 359 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.1449, allocations: 4 kB / 359 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.145, allocations: 4 kB / 359 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.145, allocations: 0 / 359 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002922/0.1453, allocations: 283.5 kB / 359.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.385e-05/0.1453, allocations: 92.95 kB / 359.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.601e-05/0.1454, allocations: 4 kB / 359.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.764e-05/0.1454, allocations: 11.98 kB / 359.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.512e-05/0.1455, allocations: 27.97 kB / 359.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.1456, allocations: 7.984 kB / 359.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.512e-05/0.1456, allocations: 95.27 kB / 359.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1456, allocations: 0 / 359.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000307/0.1459, allocations: 47.84 kB / 359.5 MB, free: 11.72 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001979/0.1461, allocations: 115.1 kB / 359.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003123/0.1465, allocations: 176.1 kB / 359.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1465, allocations: 4.125 kB / 359.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.1466, allocations: 83.91 kB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.1469, allocations: 23.92 kB / 359.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006275/0.1475, allocations: 408.5 kB / 360.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003004/0.1478, allocations: 0.7289 MB / 361.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.461e-05/0.1479, allocations: 23.44 kB / 361.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1479, allocations: 0 / 361.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of Templates: time 0.004393/0.1523, allocations: 2.308 MB / 363.4 MB, free: 7.809 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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_4.0.0_Modelica.StateGraph.Examples.FirstExampleCalcHelperMain.o OMCppModelica_4.0.0_Modelica.StateGraph.Examples.FirstExampleCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.StateGraph.Examples.FirstExampleCalcHelperMain.o] Error 1