Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 94.91 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.001257/0.001257, allocations: 176.2 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.701/1.701, allocations: 223.2 MB / 241.8 MB, free: 264 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002923, allocations: 11.94 kB / 301.5 MB, free: 6.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1262, allocations: 50.42 MB / 351.9 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004377/0.1306, allocations: 3.498 MB / 355.4 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.1328, allocations: 0.9625 MB / 356.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005652/0.1334, allocations: 8 kB / 356.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003343/0.1338, allocations: 59.52 kB / 356.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006419/0.1345, allocations: 150.7 kB / 356.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005693/0.135, allocations: 135.8 kB / 356.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009072/0.136, allocations: 0.7158 MB / 357.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002893/0.1363, allocations: 144 kB / 357.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003506/0.1366, allocations: 243.1 kB / 357.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003711/0.137, allocations: 306.8 kB / 358.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.37e-05/0.1371, allocations: 32 kB / 358.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.851e-05/0.1372, allocations: 36 kB / 358.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.1373, allocations: 107.6 kB / 358.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.1374, allocations: 129.4 kB / 358.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005614/0.138, allocations: 0.6273 MB / 359 MB, free: 12.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.138, allocations: 0 / 359 MB, free: 12.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.138, allocations: 0 / 359 MB, free: 12.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.138, allocations: 0 / 359 MB, free: 12.85 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002248/0.1403, allocations: 1.003 MB / 360 MB, free: 11.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.1403, allocations: 8.031 kB / 360 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.1405, allocations: 55.34 kB / 360.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004937/0.141, allocations: 401 kB / 360.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.719e-05/0.141, allocations: 29 kB / 360.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.276e-05/0.1411, allocations: 39.91 kB / 360.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.1424, allocations: 0.6341 MB / 361.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1425, allocations: 0 / 361.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.031e-05/0.1425, allocations: 19.95 kB / 361.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.1425, allocations: 8 kB / 361.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001746/0.1443, allocations: 0.7104 MB / 361.9 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003515/0.1478, allocations: 2.204 MB / 364.1 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003607/0.1514, allocations: 0.9961 MB / 365.1 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009718/0.1524, allocations: 432.7 kB / 365.5 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.627e-05/0.1525, allocations: 8.312 kB / 365.5 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/0.1536, allocations: 470.7 kB / 366 MB, free: 5.613 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.545e-06/0.1536, allocations: 0 / 366 MB, free: 5.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01288/0.1665, allocations: 2.629 MB / 368.6 MB, free: 2.953 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.121e-05/0.1666, allocations: 85.11 kB / 368.7 MB, free: 2.852 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005689/0.1672, allocations: 406 kB / 369.1 MB, free: 2.449 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.5e-05/0.1673, allocations: 37.7 kB / 369.1 MB, free: 2.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001926/0.1675, allocations: 228.6 kB / 369.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.1676, allocations: 134 kB / 369.5 MB, free: 2.043 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.265e-05/0.1677, allocations: 8 kB / 369.5 MB, free: 2.035 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002391/0.1679, allocations: 362.7 kB / 369.8 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008933/0.1688, allocations: 332.6 kB / 370.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008708/0.1697, allocations: 374.1 kB / 370.5 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008939/0.1706, allocations: 351.6 kB / 370.9 MB, free: 0.625 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1706, allocations: 0 / 370.9 MB, free: 0.625 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.2923/0.4629, allocations: 0.9614 MB / 371.8 MB, free: 24.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.888e-05/0.463, allocations: 34.5 kB / 371.9 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/0.4631, allocations: 3.328 kB / 371.9 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001465/0.4645, allocations: 428.9 kB / 372.3 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006218/0.4652, allocations: 109.1 kB / 372.4 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008765/0.4739, allocations: 3.485 MB / 375.9 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000863/0.4749, allocations: 113.4 kB / 376 MB, free: 23.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.244e-05/0.4749, allocations: 14.67 kB / 376 MB, free: 23.54 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003299/0.4753, allocations: 173.5 kB / 376.2 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.4754, allocations: 52.41 kB / 376.2 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001392/0.4755, allocations: 56.75 kB / 376.3 MB, free: 23.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.4755, allocations: 3.812 kB / 376.3 MB, free: 23.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.4755, allocations: 1.281 kB / 376.3 MB, free: 23.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.4756, allocations: 2.531 kB / 376.3 MB, free: 23.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009264/0.4765, allocations: 0.6101 MB / 376.9 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.4765, allocations: 0 / 376.9 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005496/0.4771, allocations: 107.5 kB / 377 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001302/0.4784, allocations: 426.2 kB / 377.4 MB, free: 22.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-05/0.4784, allocations: 7.438 kB / 377.4 MB, free: 22.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008143/0.4866, allocations: 3.479 MB / 380.9 MB, free: 20.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.4866, allocations: 4.703 kB / 380.9 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006182/0.4928, allocations: 1.656 MB / 382.6 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003811/0.4933, allocations: 176.2 kB / 382.7 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.189e-05/0.4934, allocations: 11.14 kB / 382.8 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005826/0.4939, allocations: 94.22 kB / 382.8 MB, free: 20.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/0.4942, allocations: 52.97 kB / 382.9 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-05/0.4942, allocations: 17.67 kB / 382.9 MB, free: 19.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000426/0.4946, allocations: 290.8 kB / 383.2 MB, free: 19.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4947, allocations: 0 / 383.2 MB, free: 19.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008506/0.4955, allocations: 172.1 kB / 383.4 MB, free: 19.82 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002105/0.4957, allocations: 108 kB / 383.5 MB, free: 19.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002827/0.4986, allocations: 0.9988 MB / 384.5 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4986, allocations: 1.031 kB / 384.5 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001584/0.5002, allocations: 0.6065 MB / 385.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006122/0.5008, allocations: 89.05 kB / 385.2 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003567/0.5044, allocations: 1.444 MB / 386.6 MB, free: 18.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005683/0.505, allocations: 0.8365 MB / 387.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.5052, allocations: 31.77 kB / 387.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of SimCode: time 2.084e-06/0.5052, allocations: 0 / 387.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of Templates: time 0.01702/0.5222, allocations: 9.812 MB / 397.3 MB, free: 11.41 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.Electrical.Analog.Examples.SimpleTriacCircuitCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuitCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuitCalcHelperMain.o] Error 1