Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0008455/0.0008456, allocations: 86.48 kB / 17.58 MB, free: 5.758 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.0009253/0.0009258, allocations: 183.5 kB / 18.48 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.8/1.8, allocations: 205.4 MB / 224.6 MB, free: 13.09 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004866/0.0004866, allocations: 8 kB / 281.4 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1352, allocations: 47.58 MB / 329 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002374/0.1376, allocations: 1.411 MB / 330.4 MB, free: 2.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008812/0.1385, allocations: 263.2 kB / 330.6 MB, free: 2.402 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001905/0.1387, allocations: 4 kB / 330.6 MB, free: 2.398 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.1389, allocations: 19.8 kB / 330.7 MB, free: 2.379 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.941e-05/0.139, allocations: 19.92 kB / 330.7 MB, free: 2.359 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005477/0.1396, allocations: 91.83 kB / 330.8 MB, free: 2.27 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004457/0.14, allocations: 227.6 kB / 331 MB, free: 2.047 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004369/0.1405, allocations: 149.8 kB / 331.1 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.1406, allocations: 71.77 kB / 331.2 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.1408, allocations: 75.61 kB / 331.3 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.474e-05/0.1409, allocations: 12 kB / 331.3 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.88e-05/0.141, allocations: 12 kB / 331.3 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.357e-05/0.1411, allocations: 39.83 kB / 331.3 MB, free: 1.691 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.997e-05/0.1412, allocations: 57.58 kB / 331.4 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002899/0.1415, allocations: 163.6 kB / 331.6 MB, free: 1.469 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1415, allocations: 0 / 331.6 MB, free: 1.469 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1415, allocations: 4 kB / 331.6 MB, free: 1.465 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.836e-05/0.1415, allocations: 0 / 331.6 MB, free: 1.465 MB / 270.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.0008344/0.1424, allocations: 454 kB / 332 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.1424, allocations: 8.031 kB / 332 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.1426, allocations: 19.81 kB / 332 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003266/0.1429, allocations: 230.7 kB / 332.3 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.283e-05/0.143, allocations: 24.5 kB / 332.3 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.197e-05/0.143, allocations: 24 kB / 332.3 MB, free: 0.625 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005586/0.1436, allocations: 274 kB / 332.6 MB, free: 340 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.1436, allocations: 0 / 332.6 MB, free: 340 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.1437, allocations: 12 kB / 332.6 MB, free: 328 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.1437, allocations: 4 kB / 332.6 MB, free: 324 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000345/0.144, allocations: 169.5 kB / 332.8 MB, free: 156 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.1455, allocations: 0.9713 MB / 333.7 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003017/0.1458, allocations: 155.4 kB / 333.9 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.1459, allocations: 77.14 kB / 334 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.146, allocations: 4.188 kB / 334 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002769/0.1463, allocations: 115.5 kB / 334.1 MB, free: 14.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.525e-06/0.1463, allocations: 4 kB / 334.1 MB, free: 14.74 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005135/0.1468, allocations: 210 kB / 334.3 MB, free: 14.53 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/0.1469, allocations: 55.41 kB / 334.3 MB, free: 14.46 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.147, allocations: 153.3 kB / 334.5 MB, free: 14.31 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.1471, allocations: 33.7 kB / 334.5 MB, free: 14.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1472, allocations: 152.4 kB / 334.7 MB, free: 14.12 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.605e-05/0.1473, allocations: 63.2 kB / 334.7 MB, free: 14.05 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.295e-05/0.1473, allocations: 4 kB / 334.7 MB, free: 14.05 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1475, allocations: 326.8 kB / 335 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.1476, allocations: 60.62 kB / 335.1 MB, free: 13.66 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.1478, allocations: 141.7 kB / 335.2 MB, free: 13.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000139/0.148, allocations: 75.95 kB / 335.3 MB, free: 13.42 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.148, allocations: 0 / 335.3 MB, free: 13.42 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004054/0.1484, allocations: 245.3 kB / 335.6 MB, free: 13.18 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.1484, allocations: 8 kB / 335.6 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.1484, allocations: 0 / 335.6 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.1485, allocations: 7.953 kB / 335.6 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.1486, allocations: 31.92 kB / 335.6 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/0.1486, allocations: 7.984 kB / 335.6 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.1488, allocations: 31.97 kB / 335.6 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.357e-05/0.1488, allocations: 16 kB / 335.7 MB, free: 13.07 MB / 286.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001694/0.149, allocations: 160.3 kB / 335.8 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.157e-05/0.149, allocations: 15.81 kB / 335.8 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003405/0.1494, allocations: 178.4 kB / 336 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.1494, allocations: 11.89 kB / 336 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1494, allocations: 0 / 336 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.912e-05/0.1494, allocations: 7.984 kB / 336 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00072/0.1502, allocations: 0.5916 MB / 336.6 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.1502, allocations: 3.953 kB / 336.6 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.543e-05/0.1503, allocations: 23.92 kB / 336.6 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1503, allocations: 0 / 336.6 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.1503, allocations: 4 kB / 336.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.1503, allocations: 0 / 336.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1503, allocations: 0 / 336.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/0.1507, allocations: 271.2 kB / 336.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.605e-05/0.1507, allocations: 104.8 kB / 337 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.65e-05/0.1508, allocations: 3.984 kB / 337 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.031e-05/0.1509, allocations: 8 kB / 337 MB, free: 11.6 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.292e-05/0.151, allocations: 19.97 kB / 337 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.151, allocations: 11.98 kB / 337.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.563e-05/0.1511, allocations: 95.27 kB / 337.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.946e-06/0.1511, allocations: 4 kB / 337.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003615/0.1515, allocations: 55.78 kB / 337.2 MB, free: 11.41 MB / 286.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 (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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0002333/0.1517, allocations: 107.2 kB / 337.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000409/0.1521, allocations: 171.8 kB / 337.5 MB, free: 11.13 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.1521, allocations: 0 / 337.5 MB, free: 11.13 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002251/0.1524, allocations: 84.41 kB / 337.6 MB, free: 11.05 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.1527, allocations: 23.98 kB / 337.6 MB, free: 11.03 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008124/0.1535, allocations: 409.4 kB / 338 MB, free: 10.59 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003971/0.1539, allocations: 0.7406 MB / 338.7 MB, free: 9.828 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.692e-05/0.154, allocations: 27.42 kB / 338.8 MB, free: 9.801 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.154, allocations: 0 / 338.8 MB, free: 9.801 MB / 286.1 MB Notification: Performance of Templates: time 0.005267/0.1593, allocations: 2.355 MB / 341.1 MB, free: 7.441 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile make -j1 -f Modelica_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3CalcHelperMain.o OMCppModelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3CalcHelperMain.o] Error 1