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.0009386/0.0009388, allocations: 96.64 kB / 17.96 MB, free: 5.77 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.0008951/0.000895, allocations: 179.2 kB / 18.86 MB, free: 4.906 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.001/2.001, allocations: 205.4 MB / 225 MB, free: 13.08 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.0005802/0.0005802, allocations: 8.328 kB / 282 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1302, allocations: 47.59 MB / 329.6 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004163/0.1345, allocations: 2.757 MB / 332.4 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002137/0.1366, allocations: 0.7682 MB / 333.1 MB, free: 220 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000445/0.1371, allocations: 11.94 kB / 333.1 MB, free: 208 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003028/0.1374, allocations: 43.67 kB / 333.2 MB, free: 164 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005/0.138, allocations: 79.31 kB / 333.3 MB, free: 84 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005819/0.1386, allocations: 99.92 kB / 333.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005385/0.1391, allocations: 402.1 kB / 333.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002687/0.1394, allocations: 116.1 kB / 333.9 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002408/0.1396, allocations: 143.4 kB / 334 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.1399, allocations: 155.2 kB / 334.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.87e-05/0.1399, allocations: 20 kB / 334.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.335e-05/0.14, allocations: 24 kB / 334.2 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.853e-05/0.1401, allocations: 59.75 kB / 334.3 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002012/0.1403, allocations: 192.8 kB / 334.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003204/0.1406, allocations: 303.4 kB / 334.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1406, allocations: 0 / 334.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1406, allocations: 7.938 kB / 334.8 MB, free: 14.58 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.004e-06/0.1406, allocations: 0 / 334.8 MB, free: 14.58 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.001155/0.1418, allocations: 0.5965 MB / 335.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.1419, allocations: 8.031 kB / 335.4 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.627e-05/0.142, allocations: 44.47 kB / 335.4 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.1423, allocations: 281.2 kB / 335.7 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.1425, allocations: 76.61 kB / 335.8 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.109e-05/0.1425, allocations: 36.38 kB / 335.8 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005851/0.1431, allocations: 338.8 kB / 336.1 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.1432, allocations: 0 / 336.1 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.358e-05/0.1432, allocations: 19.94 kB / 336.1 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.1432, allocations: 12 kB / 336.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004338/0.1437, allocations: 222.5 kB / 336.4 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.1456, allocations: 1.383 MB / 337.7 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003344/0.1459, allocations: 170.6 kB / 337.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.1461, allocations: 92.77 kB / 338 MB, free: 11.09 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.1461, allocations: 3.938 kB / 338 MB, free: 11.09 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003578/0.1465, allocations: 153.8 kB / 338.2 MB, free: 10.91 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.1465, allocations: 8 kB / 338.2 MB, free: 10.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001152/0.1477, allocations: 423.1 kB / 338.6 MB, free: 10.46 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.139e-05/0.1478, allocations: 110.8 kB / 338.7 MB, free: 10.33 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.1481, allocations: 258.7 kB / 338.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.1481, allocations: 33.7 kB / 339 MB, free: 10.04 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.1483, allocations: 203.8 kB / 339.2 MB, free: 9.832 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.922e-05/0.1483, allocations: 71.08 kB / 339.2 MB, free: 9.762 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.208e-05/0.1484, allocations: 37.7 kB / 339.3 MB, free: 9.719 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1485, allocations: 334.8 kB / 339.6 MB, free: 9.383 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.1487, allocations: 80.62 kB / 339.7 MB, free: 9.305 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.1489, allocations: 185.5 kB / 339.9 MB, free: 9.082 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003753/0.1493, allocations: 243.5 kB / 340.1 MB, free: 8.809 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1493, allocations: 4 kB / 340.1 MB, free: 8.805 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006745/0.15, allocations: 351.6 kB / 340.5 MB, free: 8.453 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.1501, allocations: 4 kB / 340.5 MB, free: 8.449 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.1501, allocations: 4 kB / 340.5 MB, free: 8.445 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002988/0.1504, allocations: 60.97 kB / 340.5 MB, free: 8.383 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002568/0.1507, allocations: 67.91 kB / 340.6 MB, free: 8.316 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/0.1521, allocations: 1.404 MB / 342 MB, free: 6.777 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002427/0.1524, allocations: 47.67 kB / 342 MB, free: 6.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.411e-05/0.1524, allocations: 12 kB / 342 MB, free: 6.719 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.000153/0.1526, allocations: 161.8 kB / 342.2 MB, free: 6.551 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/0.1526, allocations: 27.66 kB / 342.2 MB, free: 6.523 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.193e-05/0.1527, allocations: 30.17 kB / 342.3 MB, free: 6.496 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1527, allocations: 4 kB / 342.3 MB, free: 6.492 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1527, allocations: 3.938 kB / 342.3 MB, free: 6.488 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.1527, allocations: 3.984 kB / 342.3 MB, free: 6.484 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003296/0.1531, allocations: 333.4 kB / 342.6 MB, free: 6.109 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1531, allocations: 0 / 342.6 MB, free: 6.109 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.1533, allocations: 47.91 kB / 342.6 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001921/0.1535, allocations: 56.81 kB / 342.7 MB, free: 6.004 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.1535, allocations: 0 / 342.7 MB, free: 6.004 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.1545, allocations: 1.335 MB / 344 MB, free: 4.535 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.1545, allocations: 3.938 kB / 344 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006817/0.1552, allocations: 354.3 kB / 344.4 MB, free: 4.164 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.635e-05/0.1553, allocations: 120.8 kB / 344.5 MB, free: 4.027 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.1554, allocations: 8 kB / 344.5 MB, free: 4.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.1556, allocations: 19.98 kB / 344.5 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.9e-05/0.1556, allocations: 31.94 kB / 344.6 MB, free: 3.969 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.1557, allocations: 4 kB / 344.6 MB, free: 3.965 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001698/0.1558, allocations: 182 kB / 344.7 MB, free: 3.785 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1559, allocations: 4 kB / 344.7 MB, free: 3.781 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003957/0.1563, allocations: 87.75 kB / 344.8 MB, free: 3.695 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.0001554/0.1564, allocations: 115.2 kB / 344.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006508/0.1571, allocations: 311 kB / 345.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1571, allocations: 4.125 kB / 345.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003422/0.1574, allocations: 198.6 kB / 345.4 MB, free: 3.047 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000342/0.1578, allocations: 32.5 kB / 345.5 MB, free: 3.016 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/0.1596, allocations: 0.8964 MB / 346.4 MB, free: 2.086 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004758/0.1601, allocations: 0.7755 MB / 347.2 MB, free: 1.285 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.445e-05/0.1602, allocations: 23.42 kB / 347.2 MB, free: 1.262 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1602, allocations: 0 / 347.2 MB, free: 1.262 MB / 286.1 MB Notification: Performance of Templates: time 0.007307/0.1675, allocations: 4.579 MB / 351.8 MB, free: 12.68 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