Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1092/0.1092, allocations: 12.78 MB / 31.61 MB, free: 6.184 MB / 26.18 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 112.1 kB / 37.74 MB, free: 0.7695 MB / 26.18 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.93/1.93, allocations: 207.6 MB / 251.4 MB, free: 2.734 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 188.4 kB / 306.7 MB, free: 11.26 MB / 254.1 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4909/0.4909, allocations: 79.72 MB / 441.6 MB, free: 11.35 MB / 302.1 MB
"
[Timeout remaining time 179]
Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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)
Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo)
Running command: translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=35000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC")
translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=35000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") [Timeout 660]
"Notification: Modelica_Synchronous 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: 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: OpenIPSL 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: Performance of FrontEnd - loaded program: time 0.004141/0.004141, allocations: 151.2 kB / 0.5889 GB, free: 8 kB / 446.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3623, allocations: 72.04 MB / 0.6592 GB, free: 11.8 MB / 446.1 MB
Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005631/0.3679, allocations: 4.458 MB / 0.6636 GB, free: 7.312 MB / 446.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002779/0.3707, allocations: 1.217 MB / 0.6647 GB, free: 6.09 MB / 446.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0004243/0.3711, allocations: 4 kB / 0.6648 GB, free: 6.086 MB / 446.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003863/0.3715, allocations: 142.8 kB / 0.6649 GB, free: 5.945 MB / 446.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000564/0.3721, allocations: 274 kB / 0.6652 GB, free: 5.676 MB / 446.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.3734, allocations: 0.575 MB / 0.6657 GB, free: 5.102 MB / 446.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0006368/0.374, allocations: 0.8095 MB / 0.6665 GB, free: 4.285 MB / 446.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002643/0.3743, allocations: 134.3 kB / 0.6666 GB, free: 4.141 MB / 446.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002259/0.3745, allocations: 354.5 kB / 0.667 GB, free: 3.793 MB / 446.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003807/0.3749, allocations: 410.1 kB / 0.6674 GB, free: 3.391 MB / 446.1 MB
Notification: Performance of NFPackage.collectConstants: time 7.519e-05/0.3749, allocations: 67.94 kB / 0.6674 GB, free: 3.324 MB / 446.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.000283/0.3752, allocations: 124 kB / 0.6675 GB, free: 3.203 MB / 446.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.3753, allocations: 171.2 kB / 0.6677 GB, free: 3.035 MB / 446.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002416/0.3756, allocations: 393.7 kB / 0.6681 GB, free: 2.648 MB / 446.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0007403/0.3763, allocations: 0.9152 MB / 0.669 GB, free: 1.738 MB / 446.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3763, allocations: 0 / 0.669 GB, free: 1.738 MB / 446.1 MB
Notification: Performance of FrontEnd: time 1.613e-06/0.3763, allocations: 0 / 0.669 GB, free: 1.738 MB / 446.1 MB
Notification: Performance of Transformations before backend: time 9.688e-06/0.3763, allocations: 0 / 0.669 GB, free: 1.738 MB / 446.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 134
 * Number of variables: 134
Notification: Performance of Generate backend data structure: time 0.004387/0.3807, allocations: 1.618 MB / 0.6706 GB, free: 84 kB / 446.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.3808, allocations: 12.03 kB / 0.6706 GB, free: 72 kB / 446.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002717/0.3835, allocations: 427.7 kB / 0.671 GB, free: 15.65 MB / 462.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008194/0.3843, allocations: 459.2 kB / 0.6714 GB, free: 15.17 MB / 462.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00028/0.3846, allocations: 193.8 kB / 0.6716 GB, free: 14.95 MB / 462.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.3847, allocations: 52 kB / 0.6716 GB, free: 14.9 MB / 462.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.3863, allocations: 0.6897 MB / 0.6723 GB, free: 14.21 MB / 462.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.3863, allocations: 0 / 0.6723 GB, free: 14.21 MB / 462.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.729e-05/0.3864, allocations: 24 kB / 0.6723 GB, free: 14.18 MB / 462.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.3864, allocations: 15.94 kB / 0.6724 GB, free: 14.17 MB / 462.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.388, allocations: 0.6766 MB / 0.673 GB, free: 13.49 MB / 462.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00424/0.3923, allocations: 2.094 MB / 0.6751 GB, free: 11.32 MB / 462.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.008548/0.4008, allocations: 1.752 MB / 0.6768 GB, free: 9.559 MB / 462.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001134/0.4019, allocations: 438.8 kB / 0.6772 GB, free: 9.133 MB / 462.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 7.231e-05/0.402, allocations: 4.656 kB / 0.6772 GB, free: 9.129 MB / 462.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/0.4033, allocations: 0.5352 MB / 0.6777 GB, free: 8.578 MB / 462.1 MB
Notification: Performance of pre-optimization done (n=73): time 2.976e-06/0.4033, allocations: 0 / 0.6777 GB, free: 8.578 MB / 462.1 MB
Notification: Performance of matching and sorting (n=73): time 0.008015/0.4113, allocations: 2.206 MB / 0.6799 GB, free: 6.359 MB / 462.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/0.4114, allocations: 64 kB / 0.6799 GB, free: 6.285 MB / 462.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007241/0.4121, allocations: 0.5147 MB / 0.6804 GB, free: 5.758 MB / 462.1 MB
Notification: Performance of collectPreVariables (initialization): time 8.041e-05/0.4122, allocations: 41.7 kB / 0.6805 GB, free: 5.711 MB / 462.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002949/0.4125, allocations: 325.2 kB / 0.6808 GB, free: 5.391 MB / 462.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002851/0.4128, allocations: 269.7 kB / 0.681 GB, free: 5.125 MB / 462.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.000258/0.413, allocations: 122.7 kB / 0.6812 GB, free: 5 MB / 462.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002102/0.4133, allocations: 382.8 kB / 0.6815 GB, free: 4.617 MB / 462.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009912/0.4142, allocations: 401.8 kB / 0.6819 GB, free: 4.223 MB / 462.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.4153, allocations: 0.4946 MB / 0.6824 GB, free: 3.703 MB / 462.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.01/0.4253, allocations: 2.51 MB / 0.6848 GB, free: 1.16 MB / 462.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.4253, allocations: 4 kB / 0.6848 GB, free: 1.156 MB / 462.1 MB
Notification: Performance of matching and sorting (n=94) (initialization): time 0.008057/0.4334, allocations: 2.208 MB / 0.687 GB, free: 14.93 MB / 478.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.4334, allocations: 6.188 kB / 0.687 GB, free: 14.93 MB / 478.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.4334, allocations: 4 kB / 0.687 GB, free: 14.92 MB / 478.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.00446/0.4379, allocations: 0.9898 MB / 0.688 GB, free: 13.92 MB / 478.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006766/0.4386, allocations: 111.8 kB / 0.6881 GB, free: 13.81 MB / 478.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01079/0.4493, allocations: 4.409 MB / 0.6924 GB, free: 9.289 MB / 478.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008732/0.4502, allocations: 95.56 kB / 0.6925 GB, free: 9.195 MB / 478.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.011e-05/0.4503, allocations: 31.98 kB / 0.6925 GB, free: 9.164 MB / 478.1 MB
Warning: Assuming fixed start value for the following 2 variables:
         load.xp:VARIABLE(start = 0.0 fixed = true protected = true )  type: Real
         load.xq:VARIABLE(start = 0.0 fixed = true protected = true )  type: Real
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 9
 * Number of states: 0 ()
 * Number of discrete variables: 11 ($PRE.ultc.zeroCrossing.enable,$PRE.ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.disable,ultc.zeroCrossing.enable,ultc.zeroCrossing.u_pos,ultc.zeroCrossing.disable,ultc.zeroCrossing.y,ultc.m,$PRE.ultc.m,$whenCondition2,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (72):
 * Single equations (assignments): 69
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 2
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 2 systems
   {(2,100.0%), (2,100.0%)}
 * Non-linear Jacobian (size): 0 systems
 * Without analytic Jacobian (size): 0 systems
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
   {(10,11)}
Notification: Performance of prepare postOptimizeDAE: time 0.0004068/0.4507, allocations: 209.7 kB / 0.6927 GB, free: 8.949 MB / 478.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.4508, allocations: 79.48 kB / 0.6928 GB, free: 8.871 MB / 478.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005273/0.4561, allocations: 1.674 MB / 0.6944 GB, free: 7.176 MB / 478.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.4561, allocations: 11.98 kB / 0.6944 GB, free: 7.164 MB / 478.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.4561, allocations: 0 / 0.6944 GB, free: 7.164 MB / 478.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/0.4561, allocations: 3.938 kB / 0.6944 GB, free: 7.16 MB / 478.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005159/0.4613, allocations: 2.387 MB / 0.6968 GB, free: 4.688 MB / 478.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.4613, allocations: 0 / 0.6968 GB, free: 4.688 MB / 478.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004184/0.4617, allocations: 79.78 kB / 0.6968 GB, free: 4.609 MB / 478.1 MB
Warning: The tearing heuristic was not able to avoid discrete iteration variables because otherwise the system could not have been torn. This may lead to problems during simulation.
Notification: Performance of postOpt tearingSystem (simulation): time 0.00469/0.4664, allocations: 1.069 MB / 0.6979 GB, free: 3.531 MB / 478.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.234e-05/0.4665, allocations: 12 kB / 0.6979 GB, free: 3.52 MB / 478.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006176/0.4671, allocations: 100.7 kB / 0.698 GB, free: 3.418 MB / 478.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.4671, allocations: 0 / 0.698 GB, free: 3.418 MB / 478.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005095/0.4722, allocations: 1.997 MB / 0.7 GB, free: 1.395 MB / 478.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002213/0.4724, allocations: 75.44 kB / 0.7 GB, free: 1.32 MB / 478.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.4726, allocations: 23.94 kB / 0.7 GB, free: 1.297 MB / 478.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006708/0.4732, allocations: 55.92 kB / 0.7001 GB, free: 1.242 MB / 478.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003362/0.4736, allocations: 124.4 kB / 0.7002 GB, free: 1.121 MB / 478.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.089e-05/0.4736, allocations: 19.98 kB / 0.7002 GB, free: 1.102 MB / 478.1 MB
Notification: Performance of sorting global known variables: time 0.0004939/0.4741, allocations: 354.8 kB / 0.7006 GB, free: 0.7578 MB / 478.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.4741, allocations: 0 / 0.7006 GB, free: 0.7578 MB / 478.1 MB
Notification: Performance of remove unused functions: time 0.0008606/0.475, allocations: 235.8 kB / 0.7008 GB, free: 0.5273 MB / 478.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 3 (ultc.x1,load.xp,load.xq)
 * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,ultc.m,ultc.zeroCrossing.y,ultc.zeroCrossing.disable,ultc.zeroCrossing.u_pos)
 * Number of discrete states: 3 (ultc.zeroCrossing.u_pos,ultc.zeroCrossing.disable,ultc.m)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (45):
 * Single equations (assignments): 42
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 2
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 2 systems
   {(2,100.0%), (2,100.0%)}
 * Non-linear Jacobian (size): 0 systems
 * Without analytic Jacobian (size): 0 systems
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
   {(16,11)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0002857/0.4753, allocations: 127.1 kB / 0.7009 GB, free: 404 kB / 478.1 MB
Notification: Performance of simCode: created initialization part: time 0.00447/0.4797, allocations: 1.386 MB / 0.7023 GB, free: 14.99 MB / 494.1 MB
Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.4797, allocations: 4.062 kB / 0.7023 GB, free: 14.99 MB / 494.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/Electrical/Branches/Generic/ULTC.mo:57:5-57:24:writable] Error: The language feature non-linear equations within when-equations is not supported. Suggested workaround: Perform non-linear operations outside the when-equation (this is slower, but works)
Error: Internal error function createNonlinearResidualEquations failed
[/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3564:9-3564:50:writable] Error: Internal error function createOdeSystem failed for component torn nonlinear Equationsystem{{{23:9}, {27:8}, {26:7}, {24:3}, {30:5}, {21:66}, {20:33}, {14:29}, {15:67}, {9:20}, {5:21}},
{8, 6, 7, 13, 22, 31, 25, 29, 28, 12, 10, 11, 18, 19, 17, 16:35, 53, 11, 52, 10, 47, 46, 30, 12, 13, 40, 41, 43, 42, 45, 44} Size: 16
[/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1567:5-1567:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed
[/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:821:5-821:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]
"
[Timeout remaining time 660]
[Calling sys.exit(0), Time elapsed: 4.104773263446987]
Failed to read output from testmodel.py, exit status != 0:
0.49030366633087397 0.505484815 0.125796669
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f96a41457b0>