Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.0009766/0.0009766, allocations: 106.8 kB / 17.69 MB, free: 5.52 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.0009515/0.0009515, allocations: 192 kB / 18.63 MB, free: 4.59 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.218/1.218, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.072e-05/2.083e-05, allocations: 9.031 kB / 302 MB, free: 5.215 MB / 238.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004172/0.004207, allocations: 3.125 MB / 305.1 MB, free: 2.086 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.005269, allocations: 0.7643 MB / 305.9 MB, free: 1.32 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.005397, allocations: 8 kB / 305.9 MB, free: 1.312 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.005544, allocations: 55.42 kB / 306 MB, free: 1.258 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.005713, allocations: 103 kB / 306.1 MB, free: 1.156 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002782/0.005997, allocations: 107.7 kB / 306.2 MB, free: 1.051 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003861/0.006392, allocations: 478.1 kB / 306.6 MB, free: 0.582 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002403/0.006639, allocations: 135.8 kB / 306.8 MB, free: 456 kB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.006808, allocations: 155.4 kB / 306.9 MB, free: 300 kB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.006992, allocations: 183.2 kB / 307.1 MB, free: 116 kB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 4.7e-05/0.007045, allocations: 36 kB / 307.1 MB, free: 80 kB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.619e-05/0.007106, allocations: 32 kB / 307.2 MB, free: 48 kB / 238.1 MB Notification: Performance of combineBinaries: time 0.0004212/0.007532, allocations: 0.5718 MB / 307.7 MB, free: 15.47 MB / 254.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001837/0.007722, allocations: 354.7 kB / 308.1 MB, free: 15.12 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 6.572e-05/0.007793, allocations: 63.81 kB / 308.1 MB, free: 15.05 MB / 254.1 MB Notification: Performance of FrontEnd: time 3.099e-05/0.007831, allocations: 16 kB / 308.2 MB, free: 15.04 MB / 254.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 (80) * Number of variables: 80 (80) Notification: Performance of Bindings: time 0.001329/0.009165, allocations: 1.694 MB / 309.9 MB, free: 13.23 MB / 254.1 MB Notification: Performance of FunctionAlias: time 0.0001087/0.00928, allocations: 93.05 kB / 309.9 MB, free: 13.14 MB / 254.1 MB Notification: Performance of Early Inline: time 0.0006977/0.009986, allocations: 0.8351 MB / 310.8 MB, free: 12.28 MB / 254.1 MB Notification: Performance of simplify1: time 7.899e-05/0.01007, allocations: 79.91 kB / 310.9 MB, free: 12.2 MB / 254.1 MB Notification: Performance of Alias: time 0.001658/0.01174, allocations: 1.675 MB / 312.5 MB, free: 10.33 MB / 254.1 MB Notification: Performance of simplify2: time 3.37e-05/0.01178, allocations: 39.95 kB / 312.6 MB, free: 10.29 MB / 254.1 MB Notification: Performance of Events: time 0.0001226/0.01191, allocations: 95.78 kB / 312.7 MB, free: 10.2 MB / 254.1 MB Notification: Performance of Detect States: time 0.0002254/0.01214, allocations: 205.7 kB / 312.9 MB, free: 9.977 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0002429/0.01239, allocations: 247.7 kB / 313.1 MB, free: 9.703 MB / 254.1 MB Notification: Performance of Causalize: time 0.001013/0.01341, allocations: 1.113 MB / 314.2 MB, free: 8.57 MB / 254.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004122/0.01384, allocations: 0.5142 MB / 314.7 MB, free: 8.027 MB / 254.1 MB Notification: Performance of Inline: time 0.0007755/0.01462, allocations: 0.8988 MB / 315.6 MB, free: 7.094 MB / 254.1 MB Notification: Performance of Partitioning: time 5.539e-05/0.01468, allocations: 54.36 kB / 315.7 MB, free: 7.031 MB / 254.1 MB Notification: Performance of Cleanup: time 3.393e-05/0.01472, allocations: 39.94 kB / 315.7 MB, free: 6.992 MB / 254.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) $SEV_1 = switch1.control.v < switch2.level ($RES_EVT_91) slice: {}; Notification: Performance of Causalize: time 0.002157/0.01688, allocations: 2.445 MB / 318.2 MB, free: 4.555 MB / 254.1 MB Error: Internal error NBEquation.Equation.setLHS failed because LHS could not be set for: [-IF-] (1)if switch2.off then [----] [-IF-] (1)if switch2.quenched then [----] [----] [SCAL] (1) inductor2.i = switch2.Goff * switch2.v ($RES_SIM_13) [----] [----] else [----] [----] [SCAL] (1) switch2.v = min(switch2.Vmax, switch2.V0 + switch2.dVdt * (time - switch2.tSwitch)) * sign(inductor2.i) ($RES_SIM_14) [----] [----] end if; [----] else [----] [SCAL] (1) switch2.v = switch2.Ron * inductor2.i ($RES_SIM_15) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!