Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009717/0.0009717, allocations: 88.75 kB / 17.58 MB, free: 6.219 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.001089/0.001089, allocations: 187.6 kB / 18.48 MB, free: 5.379 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.788/1.788, allocations: 205.4 MB / 224.6 MB, free: 13.16 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.0004906/0.0004906, allocations: 12 kB / 281.4 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1219, allocations: 47.58 MB / 329 MB, free: 4.094 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002077/0.124, allocations: 1.375 MB / 330.3 MB, free: 2.703 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006558/0.1247, allocations: 271.1 kB / 330.6 MB, free: 2.438 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.1248, allocations: 4 kB / 330.6 MB, free: 2.434 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001181/0.125, allocations: 19.8 kB / 330.6 MB, free: 2.414 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.756e-05/0.125, allocations: 11.86 kB / 330.6 MB, free: 2.402 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004316/0.1255, allocations: 95.89 kB / 330.7 MB, free: 2.309 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003221/0.1258, allocations: 231.5 kB / 331 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003074/0.1261, allocations: 157.3 kB / 331.1 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.1262, allocations: 67.72 kB / 331.2 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001352/0.1264, allocations: 83.61 kB / 331.3 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.1264, allocations: 8 kB / 331.3 MB, free: 1.77 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.299e-05/0.1265, allocations: 15.98 kB / 331.3 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.57e-05/0.1266, allocations: 43.89 kB / 331.3 MB, free: 1.711 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.788e-05/0.1267, allocations: 53.58 kB / 331.4 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.1269, allocations: 159.9 kB / 331.5 MB, free: 1.496 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.1269, allocations: 0 / 331.5 MB, free: 1.496 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1269, allocations: 0 / 331.5 MB, free: 1.496 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1269, allocations: 0 / 331.5 MB, free: 1.496 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.0006778/0.1276, allocations: 461.8 kB / 332 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.1276, allocations: 8.031 kB / 332 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.006e-05/0.1277, allocations: 23.81 kB / 332 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/0.128, allocations: 230.7 kB / 332.3 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.411e-05/0.1281, allocations: 24.55 kB / 332.3 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.36e-05/0.1282, allocations: 31.95 kB / 332.3 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004888/0.1286, allocations: 274 kB / 332.6 MB, free: 356 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1287, allocations: 0 / 332.6 MB, free: 356 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.845e-05/0.1287, allocations: 8 kB / 332.6 MB, free: 348 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.1287, allocations: 8 kB / 332.6 MB, free: 340 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003149/0.129, allocations: 165.6 kB / 332.8 MB, free: 176 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001501/0.1306, allocations: 0.9713 MB / 333.7 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002879/0.1309, allocations: 155.3 kB / 333.9 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.1311, allocations: 73.16 kB / 333.9 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.1311, allocations: 4.188 kB / 333.9 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002487/0.1313, allocations: 119.5 kB / 334.1 MB, free: 14.77 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 3.065e-06/0.1314, allocations: 0 / 334.1 MB, free: 14.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004365/0.1318, allocations: 213.9 kB / 334.3 MB, free: 14.55 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.1319, allocations: 59.41 kB / 334.3 MB, free: 14.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.132, allocations: 157.8 kB / 334.5 MB, free: 14.31 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.132, allocations: 37.7 kB / 334.5 MB, free: 14.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.1322, allocations: 140.5 kB / 334.7 MB, free: 14.13 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.821e-05/0.1322, allocations: 55.2 kB / 334.7 MB, free: 14.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.252e-05/0.1322, allocations: 12 kB / 334.7 MB, free: 14.06 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.1324, allocations: 326.8 kB / 335 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.1325, allocations: 60.62 kB / 335.1 MB, free: 13.67 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.1327, allocations: 137.8 kB / 335.2 MB, free: 13.51 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.1328, allocations: 83.89 kB / 335.3 MB, free: 13.43 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.1328, allocations: 0 / 335.3 MB, free: 13.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003783/0.1332, allocations: 245.5 kB / 335.6 MB, free: 13.18 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.1333, allocations: 7.953 kB / 335.6 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.457e-06/0.1333, allocations: 4 kB / 335.6 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.1333, allocations: 4 kB / 335.6 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.1334, allocations: 31.92 kB / 335.6 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.1335, allocations: 11.92 kB / 335.6 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.302e-05/0.1336, allocations: 27.78 kB / 335.6 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.902e-05/0.1336, allocations: 12 kB / 335.7 MB, free: 13.08 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.0002571/0.1339, allocations: 156.5 kB / 335.8 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.99e-05/0.1339, allocations: 11.81 kB / 335.8 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003432/0.1342, allocations: 190.7 kB / 336 MB, free: 12.72 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1343, allocations: 7.938 kB / 336 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1343, allocations: 0 / 336 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.1343, allocations: 3.984 kB / 336 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007559/0.135, allocations: 0.5954 MB / 336.6 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-06/0.1351, allocations: 0 / 336.6 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.802e-05/0.1351, allocations: 20 kB / 336.6 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1351, allocations: 0 / 336.6 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.1352, allocations: 11.98 kB / 336.6 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.1352, allocations: 3.984 kB / 336.7 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1352, allocations: 0 / 336.7 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000305/0.1355, allocations: 271.2 kB / 336.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.309e-05/0.1356, allocations: 104.8 kB / 337 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.767e-05/0.1356, allocations: 4 kB / 337 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.726e-05/0.1357, allocations: 7.938 kB / 337 MB, free: 11.6 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.72e-05/0.1358, allocations: 23.97 kB / 337.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.1358, allocations: 7.984 kB / 337.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.187e-05/0.1359, allocations: 100.4 kB / 337.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1359, allocations: 0 / 337.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003056/0.1362, allocations: 55.75 kB / 337.2 MB, free: 11.42 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,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: 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.0001634/0.1364, allocations: 111.1 kB / 337.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003147/0.1367, allocations: 179.7 kB / 337.5 MB, free: 11.12 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1367, allocations: 0 / 337.5 MB, free: 11.12 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.1368, allocations: 75.92 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.0002957/0.1371, 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.0006948/0.1378, allocations: 418.1 kB / 338 MB, free: 10.59 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/0.1383, allocations: 0.7328 MB / 338.7 MB, free: 9.828 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.876e-05/0.1383, allocations: 23.44 kB / 338.8 MB, free: 9.805 MB / 286.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1383, allocations: 3.938 kB / 338.8 MB, free: 9.801 MB / 286.1 MB Notification: Performance of Templates: time 0.004692/0.1431, allocations: 2.376 MB / 341.1 MB, free: 7.426 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile make -j1 -f Modelica_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2CalcHelperMain.o OMCppModelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2CalcHelperMain.o] Error 1