Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00103/0.00103, allocations: 88.22 kB / 17.63 MB, free: 6.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001251/0.001251, allocations: 197 kB / 18.54 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.642/1.642, allocations: 227.3 MB / 246.6 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003306/0.0003306, allocations: 4 kB / 307.3 MB, free: 1.609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1501, allocations: 51.48 MB / 358.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003915/0.1541, allocations: 2.697 MB / 361.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.1557, allocations: 0.7638 MB / 362.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001625/0.1558, allocations: 11.94 kB / 362.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001803/0.156, allocations: 39.67 kB / 362.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001723/0.1562, allocations: 91.23 kB / 362.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003559/0.1566, allocations: 79.92 kB / 362.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004799/0.1571, allocations: 390 kB / 362.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002444/0.1573, allocations: 103 kB / 362.9 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002734/0.1576, allocations: 139.5 kB / 363.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.1579, allocations: 151.3 kB / 363.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.767e-05/0.1579, allocations: 23.94 kB / 363.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.818e-05/0.158, allocations: 20 kB / 363.3 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.25e-05/0.1581, allocations: 59.77 kB / 363.3 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.1582, allocations: 93.52 kB / 363.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003573/0.1586, allocations: 311.4 kB / 363.7 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.1586, allocations: 0 / 363.7 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1586, allocations: 0 / 363.7 MB, free: 9.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.1586, allocations: 0 / 363.7 MB, free: 9.152 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001319/0.1599, allocations: 0.5963 MB / 364.3 MB, free: 8.504 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.16, allocations: 8.031 kB / 364.3 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002325/0.1602, allocations: 51.52 kB / 364.4 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004257/0.1607, allocations: 276 kB / 364.7 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.1608, allocations: 88.02 kB / 364.7 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.461e-05/0.1609, allocations: 32 kB / 364.8 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005777/0.1614, allocations: 338.7 kB / 365.1 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.1615, allocations: 0 / 365.1 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/0.1615, allocations: 12 kB / 365.1 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.1615, allocations: 8 kB / 365.1 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004227/0.1619, allocations: 226.5 kB / 365.3 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/0.1641, allocations: 1.38 MB / 366.7 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003554/0.1644, allocations: 185.3 kB / 366.9 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.1646, allocations: 88.78 kB / 367 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.1646, allocations: 0 / 367 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003368/0.165, allocations: 163.1 kB / 367.1 MB, free: 5.484 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.165, allocations: 0 / 367.1 MB, free: 5.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001082/0.1661, allocations: 420.8 kB / 367.6 MB, free: 5.047 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.293e-05/0.1662, allocations: 110.8 kB / 367.7 MB, free: 4.914 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002974/0.1665, allocations: 254.6 kB / 367.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/0.1665, allocations: 41.58 kB / 368 MB, free: 4.613 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.1667, allocations: 203.9 kB / 368.2 MB, free: 4.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.1669, allocations: 71 kB / 368.2 MB, free: 4.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.543e-05/0.1669, allocations: 12 kB / 368.2 MB, free: 4.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002288/0.1671, allocations: 334.8 kB / 368.6 MB, free: 3.992 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.1673, allocations: 84.61 kB / 368.6 MB, free: 3.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.1676, allocations: 173.5 kB / 368.8 MB, free: 3.695 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.1678, allocations: 101.1 kB / 368.9 MB, free: 3.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1678, allocations: 0 / 368.9 MB, free: 3.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006568/0.1684, allocations: 346.5 kB / 369.3 MB, free: 3.254 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.1685, allocations: 8 kB / 369.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1685, allocations: 0 / 369.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002867/0.1688, allocations: 60.97 kB / 369.3 MB, free: 3.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.169, allocations: 63.91 kB / 369.4 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.1705, allocations: 1.404 MB / 370.8 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.1708, allocations: 55.8 kB / 370.8 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.486e-05/0.1708, allocations: 12 kB / 370.9 MB, free: 1.512 MB / 302.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 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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 (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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001805/0.171, allocations: 157.6 kB / 371 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.008e-05/0.171, allocations: 27.62 kB / 371 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.379e-05/0.1711, allocations: 34.17 kB / 371.1 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1711, allocations: 0 / 371.1 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.1711, allocations: 3.953 kB / 371.1 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-06/0.1711, allocations: 3.984 kB / 371.1 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003514/0.1715, allocations: 337.5 kB / 371.4 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1715, allocations: 0 / 371.4 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.1717, allocations: 35.98 kB / 371.4 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001685/0.1718, allocations: 52.81 kB / 371.5 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.1719, allocations: 8 kB / 371.5 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.302/0.4739, allocations: 1.314 MB / 372.8 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.474, allocations: 2.719 kB / 372.8 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008978/0.4749, allocations: 363 kB / 373.2 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.475, allocations: 120.2 kB / 373.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.122e-05/0.4751, allocations: 8.797 kB / 373.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.4753, allocations: 23.86 kB / 373.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.4754, allocations: 33.41 kB / 373.4 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.4754, allocations: 5.125 kB / 373.4 MB, free: 18.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002466/0.4757, allocations: 185.6 kB / 373.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4757, allocations: 3.656 kB / 373.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004593/0.4761, allocations: 87.59 kB / 373.6 MB, free: 18.45 MB / 302.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 (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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001458/0.4763, allocations: 107.2 kB / 373.7 MB, free: 18.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006402/0.4769, allocations: 311.5 kB / 374 MB, free: 18.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4769, allocations: 3.844 kB / 374 MB, free: 18.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002906/0.4772, allocations: 197.3 kB / 374.2 MB, free: 18.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.4775, allocations: 36.38 kB / 374.3 MB, free: 18.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.4792, allocations: 0.8662 MB / 375.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.4796, allocations: 0.7742 MB / 375.9 MB, free: 16.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.749e-05/0.4796, allocations: 25.59 kB / 375.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4797, allocations: 1.031 kB / 375.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of Templates: time 0.00966/0.4893, allocations: 4.589 MB / 380.5 MB, free: 16.68 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArcCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArcCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArcCalcHelperMain.o] Error 1