Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 108.2 kB / 17.81 MB, free: 5.559 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.001382/0.001382, allocations: 197.9 kB / 18.73 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.013/2.013, allocations: 205.1 MB / 224.6 MB, free: 12.48 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.001079/0.001079, allocations: 43.92 kB / 280.6 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.114, allocations: 46.63 MB / 327.2 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004648/0.1187, allocations: 3.131 MB / 330.4 MB, free: 1.738 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001336/0.12, allocations: 0.776 MB / 331.2 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.1203, allocations: 11.94 kB / 331.2 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.1204, allocations: 39.67 kB / 331.2 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.1206, allocations: 91.25 kB / 331.3 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003794/0.121, allocations: 91.84 kB / 331.4 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003899/0.1214, allocations: 406.1 kB / 331.8 MB, free: 332 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00024/0.1217, allocations: 116.2 kB / 331.9 MB, free: 212 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001985/0.1219, allocations: 147.4 kB / 332 MB, free: 64 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.1221, allocations: 167.4 kB / 332.2 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.674e-05/0.1222, allocations: 24 kB / 332.2 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.039e-05/0.1222, allocations: 24 kB / 332.2 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.888e-05/0.1223, allocations: 67.73 kB / 332.3 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.1225, allocations: 179.1 kB / 332.5 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002888/0.1228, allocations: 311.3 kB / 332.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.1228, allocations: 0 / 332.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.1228, allocations: 0 / 332.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1228, allocations: 7.875 kB / 332.8 MB, free: 15.3 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001064/0.1239, allocations: 0.6471 MB / 333.4 MB, free: 14.6 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.1239, allocations: 8.031 kB / 333.5 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.575e-05/0.124, allocations: 44.55 kB / 333.5 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003497/0.1244, allocations: 285.1 kB / 333.8 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.304e-05/0.1245, allocations: 88.55 kB / 333.9 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.054e-05/0.1246, allocations: 32.38 kB / 333.9 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005476/0.1251, allocations: 334.9 kB / 334.2 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.1251, allocations: 4 kB / 334.2 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.42e-05/0.1252, allocations: 16 kB / 334.2 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.1252, allocations: 8 kB / 334.3 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004091/0.1256, allocations: 218.5 kB / 334.5 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.1274, allocations: 1.364 MB / 335.8 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003545/0.1278, allocations: 170.5 kB / 336 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.128, allocations: 88.77 kB / 336.1 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.128, allocations: 4 kB / 336.1 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004001/0.1284, allocations: 157.9 kB / 336.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.433e-06/0.1284, allocations: 0 / 336.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001138/0.1296, allocations: 403.1 kB / 336.6 MB, free: 11.18 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.253e-05/0.1297, allocations: 110.8 kB / 336.7 MB, free: 11.05 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002864/0.13, allocations: 258.6 kB / 337 MB, free: 10.79 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.13, allocations: 29.7 kB / 337 MB, free: 10.76 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.1302, allocations: 203.9 kB / 337.2 MB, free: 10.55 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.267e-05/0.1303, allocations: 74.98 kB / 337.3 MB, free: 10.48 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.693e-05/0.1304, allocations: 62.03 kB / 337.4 MB, free: 10.41 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1305, allocations: 338.8 kB / 337.7 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/0.1307, allocations: 76.62 kB / 337.8 MB, free: 10 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.1309, allocations: 181.5 kB / 337.9 MB, free: 9.781 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000344/0.1313, allocations: 243.5 kB / 338.2 MB, free: 9.508 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.1313, allocations: 0 / 338.2 MB, free: 9.508 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006678/0.132, allocations: 347.3 kB / 338.5 MB, free: 9.16 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.132, allocations: 8 kB / 338.5 MB, free: 9.152 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.298e-05/0.132, allocations: 4 kB / 338.5 MB, free: 9.148 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002977/0.1323, allocations: 53.16 kB / 338.6 MB, free: 9.094 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002485/0.1326, allocations: 67.84 kB / 338.6 MB, free: 9.027 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/0.1339, allocations: 1.404 MB / 340 MB, free: 7.488 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.1342, allocations: 47.67 kB / 340.1 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.1342, allocations: 11.98 kB / 340.1 MB, free: 7.43 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001752/0.1344, allocations: 153.8 kB / 340.3 MB, free: 7.27 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.839e-05/0.1345, allocations: 31.66 kB / 340.3 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.354e-05/0.1345, allocations: 30.17 kB / 340.3 MB, free: 7.211 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.1345, allocations: 4 kB / 340.3 MB, free: 7.207 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.1346, allocations: 3.938 kB / 340.3 MB, free: 7.203 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.1346, allocations: 0 / 340.3 MB, free: 7.203 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003911/0.135, allocations: 337.4 kB / 340.7 MB, free: 6.824 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.135, allocations: 4 kB / 340.7 MB, free: 6.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000192/0.1352, allocations: 43.92 kB / 340.7 MB, free: 6.777 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001775/0.1354, allocations: 48.81 kB / 340.8 MB, free: 6.727 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.1354, allocations: 4 kB / 340.8 MB, free: 6.723 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/0.1366, allocations: 1.323 MB / 342.1 MB, free: 5.266 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1366, allocations: 0 / 342.1 MB, free: 5.266 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006889/0.1373, allocations: 354.2 kB / 342.4 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.1374, allocations: 124.7 kB / 342.5 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.718e-05/0.1374, allocations: 4 kB / 342.5 MB, free: 4.754 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.1376, allocations: 19.98 kB / 342.6 MB, free: 4.734 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.235e-05/0.1377, allocations: 32.02 kB / 342.6 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.1377, allocations: 4 kB / 342.6 MB, free: 4.699 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001837/0.1379, allocations: 190 kB / 342.8 MB, free: 4.512 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1379, allocations: 0 / 342.8 MB, free: 4.512 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003875/0.1383, allocations: 83.84 kB / 342.9 MB, free: 4.43 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001567/0.1385, allocations: 107.2 kB / 343 MB, free: 4.316 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006487/0.1391, allocations: 314.4 kB / 343.3 MB, free: 3.996 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1392, allocations: 7.875 kB / 343.3 MB, free: 3.988 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002949/0.1395, allocations: 190.6 kB / 343.5 MB, free: 3.789 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.1398, allocations: 33.23 kB / 343.5 MB, free: 3.758 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.1414, allocations: 0.829 MB / 344.3 MB, free: 2.898 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.1419, allocations: 0.7716 MB / 345.1 MB, free: 2.102 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.921e-05/0.142, allocations: 23.44 kB / 345.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.142, allocations: 4 kB / 345.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of Templates: time 0.006647/0.1487, allocations: 4.619 MB / 349.8 MB, free: 13.45 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArcCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArcCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArcCalcHelperMain.o] Error 1