Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007904/0.0007904, allocations: 97.75 kB / 16.96 MB, free: 6.008 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.0007757/0.0007757, allocations: 182 kB / 17.85 MB, free: 5.664 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.571/1.571, allocations: 223.2 MB / 241.9 MB, free: 14.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002862/0.0002866, allocations: 7.938 kB / 301.4 MB, free: 6.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1424, allocations: 50.43 MB / 351.9 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002546/0.145, allocations: 1.401 MB / 353.3 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000943/0.146, allocations: 311 kB / 353.6 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.1461, allocations: 4 kB / 353.6 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001336/0.1463, allocations: 15.81 kB / 353.6 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.24e-05/0.1464, allocations: 11.86 kB / 353.6 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004382/0.1468, allocations: 91.89 kB / 353.7 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.1471, allocations: 239.5 kB / 353.9 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002964/0.1474, allocations: 141.9 kB / 354.1 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.462e-05/0.1475, allocations: 67.72 kB / 354.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.1477, allocations: 79.59 kB / 354.2 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.089e-05/0.1477, allocations: 16 kB / 354.2 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.657e-05/0.1478, allocations: 12 kB / 354.2 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.978e-05/0.1479, allocations: 39.84 kB / 354.3 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.1481, allocations: 57.62 kB / 354.3 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002021/0.1483, allocations: 159.7 kB / 354.5 MB, free: 1.074 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1483, allocations: 0 / 354.5 MB, free: 1.074 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1483, allocations: 0 / 354.5 MB, free: 1.074 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.1483, allocations: 0 / 354.5 MB, free: 1.074 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006989/0.149, allocations: 462.7 kB / 354.9 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.1491, allocations: 12.03 kB / 355 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.292e-05/0.1491, allocations: 19.81 kB / 355 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.1494, allocations: 234.7 kB / 355.2 MB, free: 276 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.011e-05/0.1495, allocations: 20.56 kB / 355.2 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.152e-05/0.1495, allocations: 24 kB / 355.2 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004825/0.15, allocations: 274 kB / 355.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.15, allocations: 4 kB / 355.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.622e-05/0.1501, allocations: 12 kB / 355.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.1501, allocations: 7.953 kB / 355.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002979/0.1504, allocations: 165.6 kB / 355.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.1516, allocations: 0.9713 MB / 356.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.1519, allocations: 174 kB / 356.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.1521, allocations: 82.06 kB / 356.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.1521, allocations: 192 / 356.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002704/0.1524, allocations: 145.1 kB / 357.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.162e-06/0.1524, allocations: 0 / 357.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004665/0.1529, allocations: 228.8 kB / 357.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.39e-05/0.1529, allocations: 85.05 kB / 357.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.1531, allocations: 159.2 kB / 357.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.919e-05/0.1531, allocations: 41.69 kB / 357.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.1532, allocations: 136.6 kB / 357.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.816e-05/0.1533, allocations: 67.19 kB / 357.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.116e-05/0.1533, allocations: 4 kB / 357.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1535, allocations: 330.8 kB / 358.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.1536, allocations: 63.97 kB / 358.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.1538, allocations: 136.5 kB / 358.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000128/0.1539, allocations: 68.45 kB / 358.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1539, allocations: 0 / 358.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004048/0.1543, allocations: 261.2 kB / 358.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.1544, allocations: 4 kB / 358.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.1544, allocations: 4 kB / 358.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.1544, allocations: 4 kB / 358.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.1546, allocations: 35.86 kB / 358.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.1546, allocations: 4 kB / 358.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.1547, allocations: 32.02 kB / 358.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/0.1547, allocations: 23.95 kB / 358.7 MB, free: 12.55 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.0001784/0.1549, allocations: 158.4 kB / 358.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.579e-05/0.155, allocations: 15.8 kB / 358.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000368/0.1554, allocations: 190.3 kB / 359.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.1554, allocations: 4 kB / 359.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.1554, allocations: 0 / 359.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.1554, allocations: 4 kB / 359.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008232/0.1562, allocations: 0.5953 MB / 359.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1562, allocations: 0 / 359.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.172e-05/0.1563, allocations: 15.98 kB / 359.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.1563, allocations: 0 / 359.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.1564, allocations: 8 kB / 359.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1564, allocations: 3.953 kB / 359.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.1564, allocations: 3.984 kB / 359.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003577/0.1567, allocations: 292.5 kB / 360 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.022e-05/0.1568, allocations: 92.86 kB / 360.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.708e-05/0.1568, allocations: 0 / 360.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.925e-05/0.1569, allocations: 8 kB / 360.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.157, allocations: 35.84 kB / 360.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.157, allocations: 4 kB / 360.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.822e-05/0.1571, allocations: 108.8 kB / 360.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1572, allocations: 0 / 360.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003335/0.1575, allocations: 51.84 kB / 360.3 MB, free: 10.86 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,transition1.enableFire,step.localActive,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.0001845/0.1577, allocations: 114.9 kB / 360.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003478/0.158, allocations: 175.8 kB / 360.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1581, allocations: 0.5625 kB / 360.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.1582, allocations: 87.84 kB / 360.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.1585, allocations: 30.73 kB / 360.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007819/0.1593, allocations: 413.5 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.1598, allocations: 0.7328 MB / 361.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.325e-05/0.1598, allocations: 27.42 kB / 361.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1598, allocations: 0 / 361.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of Templates: time 0.005105/0.165, allocations: 2.39 MB / 364.2 MB, free: 6.84 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.FirstExample_Variant3CalcHelperMain.o OMCppModelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3CalcHelperMain.o] Error 1