Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC.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/Modelica 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/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009451/0.000945, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.241/1.241, allocations: 222.9 MB / 238.8 MB, free: 4.707 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 200.3 kB / 289.1 MB, free: 2.453 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4133/0.4133, allocations: 78.51 MB / 417.8 MB, free: 3.367 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 72.2 kB / 496.8 MB, free: 6.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1455, allocations: 68.18 MB / 0.5517 GB, free: 2.578 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2417/0.3873, allocations: 4.638 MB / 0.5562 GB, free: 37.18 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0029/0.3902, allocations: 1.272 MB / 0.5575 GB, free: 36.79 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000318/0.3906, allocations: 8.156 kB / 0.5575 GB, free: 36.79 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004039/0.391, allocations: 111.7 kB / 0.5576 GB, free: 36.79 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004647/0.3915, allocations: 195.1 kB / 0.5578 GB, free: 36.75 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.3926, allocations: 0.5374 MB / 0.5583 GB, free: 36.63 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005914/0.3932, allocations: 0.7615 MB / 0.559 GB, free: 36.59 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000268/0.3934, allocations: 170 kB / 0.5592 GB, free: 36.55 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002595/0.3937, allocations: 314 kB / 0.5595 GB, free: 36.47 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003745/0.3941, allocations: 399.2 kB / 0.5599 GB, free: 36.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.57e-05/0.3942, allocations: 40.06 kB / 0.5599 GB, free: 36.36 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002692/0.3944, allocations: 106.6 kB / 0.56 GB, free: 36.36 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.3946, allocations: 152 kB / 0.5602 GB, free: 36.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002391/0.3948, allocations: 370.8 kB / 0.5605 GB, free: 36.18 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006417/0.3955, allocations: 0.8783 MB / 0.5614 GB, free: 35.98 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3955, allocations: 6.047 kB / 0.5614 GB, free: 35.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3955, allocations: 0 / 0.5614 GB, free: 35.98 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.3955, allocations: 0 / 0.5614 GB, free: 35.98 MB / 430.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.003664/0.3992, allocations: 1.563 MB / 0.5629 GB, free: 35.32 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3992, allocations: 13.06 kB / 0.5629 GB, free: 35.32 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002305/0.4015, allocations: 425 kB / 0.5633 GB, free: 35.26 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005294/0.4021, allocations: 0.4965 MB / 0.5638 GB, free: 34.96 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001724/0.4023, allocations: 192.1 kB / 0.564 GB, free: 34.81 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.594e-05/0.4024, allocations: 54.28 kB / 0.564 GB, free: 34.81 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.4036, allocations: 0.6984 MB / 0.5647 GB, free: 34.76 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.4036, allocations: 1.781 kB / 0.5647 GB, free: 34.76 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.346e-05/0.4037, allocations: 24.72 kB / 0.5648 GB, free: 34.76 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.4037, allocations: 15.44 kB / 0.5648 GB, free: 34.75 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001186/0.4049, allocations: 0.6708 MB / 0.5654 GB, free: 34.75 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002931/0.4078, allocations: 2.149 MB / 0.5675 GB, free: 34.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006768/0.4146, allocations: 2.269 MB / 0.5697 GB, free: 33.64 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007833/0.4154, allocations: 488.9 kB / 0.5702 GB, free: 33.63 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-05/0.4155, allocations: 9.281 kB / 0.5702 GB, free: 33.63 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001057/0.4166, allocations: 0.5231 MB / 0.5707 GB, free: 33.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 3.847e-06/0.4166, allocations: 0.6094 kB / 0.5707 GB, free: 33.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006103/0.4227, allocations: 2.454 MB / 0.5731 GB, free: 33.14 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.4227, allocations: 61.03 kB / 0.5732 GB, free: 33.08 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005108/0.4233, allocations: 0.5078 MB / 0.5737 GB, free: 32.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.014e-05/0.4233, allocations: 42.33 kB / 0.5737 GB, free: 32.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.4235, allocations: 321 kB / 0.574 GB, free: 32.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001664/0.4237, allocations: 252.7 kB / 0.5743 GB, free: 32.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.4239, allocations: 121.3 kB / 0.5744 GB, free: 32.59 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.688e-05/0.424, allocations: 387.8 kB / 0.5747 GB, free: 32.28 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007291/0.4247, allocations: 402.3 kB / 0.5751 GB, free: 32.28 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007489/0.4255, allocations: 0.4928 MB / 0.5756 GB, free: 32.19 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007668/0.4331, allocations: 2.515 MB / 0.5781 GB, free: 31.56 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.4332, allocations: 1.281 kB / 0.5781 GB, free: 31.56 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006301/0.4395, allocations: 2.216 MB / 0.5802 GB, free: 30.98 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.4395, allocations: 5.281 kB / 0.5802 GB, free: 30.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.4395, allocations: 2.156 kB / 0.5802 GB, free: 30.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003449/0.443, allocations: 1 MB / 0.5812 GB, free: 30.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004974/0.4435, allocations: 106.3 kB / 0.5813 GB, free: 30.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007716/0.4512, allocations: 4.132 MB / 0.5854 GB, free: 28.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008176/0.4521, allocations: 99.09 kB / 0.5854 GB, free: 28.36 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.4522, allocations: 25.41 kB / 0.5855 GB, free: 28.35 MB / 430.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.0003739/0.4526, allocations: 209.3 kB / 0.5857 GB, free: 28.18 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/0.4528, allocations: 70.91 kB / 0.5857 GB, free: 28.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004172/0.4569, allocations: 1.696 MB / 0.5874 GB, free: 27.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.457, allocations: 7.781 kB / 0.5874 GB, free: 27.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.457, allocations: 0 / 0.5874 GB, free: 27.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.457, allocations: 9.359 kB / 0.5874 GB, free: 27.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004097/0.4611, allocations: 2.439 MB / 0.5898 GB, free: 26.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.4611, allocations: 3.938 kB / 0.5898 GB, free: 26.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003751/0.4615, allocations: 70.05 kB / 0.5899 GB, free: 26.38 MB / 430.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.003847/0.4654, allocations: 1.071 MB / 0.5909 GB, free: 26.16 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-05/0.4654, allocations: 14.03 kB / 0.5909 GB, free: 26.15 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000546/0.466, allocations: 96.44 kB / 0.591 GB, free: 26.14 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.466, allocations: 5.828 kB / 0.591 GB, free: 26.13 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004299/0.4703, allocations: 2.006 MB / 0.593 GB, free: 25.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.4705, allocations: 150.8 kB / 0.5931 GB, free: 25.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001278/0.4707, allocations: 19.58 kB / 0.5931 GB, free: 25.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006256/0.4713, allocations: 53.23 kB / 0.5932 GB, free: 25.12 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003396/0.4716, allocations: 121.3 kB / 0.5933 GB, free: 25.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.835e-05/0.4717, allocations: 21.97 kB / 0.5933 GB, free: 25.09 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004445/0.4722, allocations: 351.6 kB / 0.5937 GB, free: 24.94 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4722, allocations: 0 / 0.5937 GB, free: 24.94 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008151/0.473, allocations: 241.7 kB / 0.5939 GB, free: 24.89 MB / 430.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.0002069/0.4732, allocations: 125.7 kB / 0.594 GB, free: 24.79 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003957/0.4772, allocations: 1.567 MB / 0.5955 GB, free: 24.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.4772, allocations: 3.031 kB / 0.5955 GB, free: 24.09 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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:3446:9-3446: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:1519:5-1519:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:774:5-774:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]