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/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.09558/0.09558, allocations: 12.37 MB / 31.95 MB, free: 6.484 MB / 26.18 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 107.1 kB / 37.99 MB, free: 1.168 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.574/1.574, allocations: 207.6 MB / 251.6 MB, free: 7.629 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002069/0.002069, allocations: 212.4 kB / 306.8 MB, free: 0.7383 MB / 238.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.3324/0.3324, allocations: 79.74 MB / 441.7 MB, free: 10.47 MB / 318.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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/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.1.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.1.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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.004165/0.004165, allocations: 155.8 kB / 0.5887 GB, free: 4.953 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4023/0.4065, allocations: 71.96 MB / 0.659 GB, free: 13.87 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.007427/0.4139, allocations: 4.453 MB / 0.6634 GB, free: 9.398 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003151/0.4171, allocations: 1.228 MB / 0.6646 GB, free: 8.164 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006503/0.4177, allocations: 8 kB / 0.6646 GB, free: 8.156 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006365/0.4184, allocations: 138.8 kB / 0.6647 GB, free: 8.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.4194, allocations: 262 kB / 0.6649 GB, free: 7.762 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001597/0.421, allocations: 0.5414 MB / 0.6655 GB, free: 7.223 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001393/0.4224, allocations: 0.8056 MB / 0.6663 GB, free: 6.414 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003834/0.4228, allocations: 138.3 kB / 0.6664 GB, free: 6.266 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005928/0.4234, allocations: 346.5 kB / 0.6667 GB, free: 5.926 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008029/0.4242, allocations: 418 kB / 0.6671 GB, free: 5.516 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002173/0.4244, allocations: 64 kB / 0.6672 GB, free: 5.453 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004989/0.4249, allocations: 128 kB / 0.6673 GB, free: 5.328 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000242/0.4252, allocations: 171.2 kB / 0.6675 GB, free: 5.16 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000569/0.4257, allocations: 381.8 kB / 0.6678 GB, free: 4.785 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.427, allocations: 0.9254 MB / 0.6687 GB, free: 3.859 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.427, allocations: 4 kB / 0.6687 GB, free: 3.855 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.427, allocations: 0 / 0.6687 GB, free: 3.855 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.4271, allocations: 0 / 0.6687 GB, free: 3.855 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.00466/0.4317, allocations: 1.61 MB / 0.6703 GB, free: 2.207 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.4318, allocations: 12.03 kB / 0.6703 GB, free: 2.195 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002611/0.4344, allocations: 431.6 kB / 0.6707 GB, free: 1.773 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008249/0.4352, allocations: 447.4 kB / 0.6712 GB, free: 1.305 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003078/0.4355, allocations: 282.8 kB / 0.6714 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.4356, allocations: 56 kB / 0.6715 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.4371, allocations: 0.6858 MB / 0.6722 GB, free: 240 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.4371, allocations: 0 / 0.6722 GB, free: 240 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.457e-05/0.4372, allocations: 20 kB / 0.6722 GB, free: 220 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.4372, allocations: 23.92 kB / 0.6722 GB, free: 196 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001467/0.4386, allocations: 0.6766 MB / 0.6729 GB, free: 15.51 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00401/0.4426, allocations: 2.083 MB / 0.6749 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007615/0.4503, allocations: 1.75 MB / 0.6766 GB, free: 11.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001137/0.4514, allocations: 443 kB / 0.677 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001175/0.4515, allocations: 12.64 kB / 0.677 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001327/0.4528, allocations: 0.5274 MB / 0.6776 GB, free: 10.61 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 3.476e-06/0.4528, allocations: 0 / 0.6776 GB, free: 10.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007853/0.4607, allocations: 2.21 MB / 0.6797 GB, free: 8.387 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.354e-05/0.4608, allocations: 64.05 kB / 0.6798 GB, free: 8.312 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009668/0.4618, allocations: 0.5109 MB / 0.6803 GB, free: 7.789 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.812e-05/0.4618, allocations: 41.7 kB / 0.6803 GB, free: 7.742 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004354/0.4623, allocations: 325.2 kB / 0.6806 GB, free: 7.422 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003813/0.4627, allocations: 261.7 kB / 0.6809 GB, free: 7.164 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000292/0.463, allocations: 118.7 kB / 0.681 GB, free: 7.043 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002524/0.4632, allocations: 394.7 kB / 0.6814 GB, free: 6.648 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009337/0.4641, allocations: 405.8 kB / 0.6817 GB, free: 6.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.4652, allocations: 0.4907 MB / 0.6822 GB, free: 5.73 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009333/0.4745, allocations: 2.51 MB / 0.6847 GB, free: 3.191 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/0.4745, allocations: 4 kB / 0.6847 GB, free: 3.188 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007514/0.482, allocations: 2.204 MB / 0.6868 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.482, allocations: 11.94 kB / 0.6868 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.4821, allocations: 0 / 0.6868 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004154/0.4862, allocations: 1.001 MB / 0.6878 GB, free: 15.94 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000605/0.4868, allocations: 103.8 kB / 0.6879 GB, free: 15.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/0.4978, allocations: 4.409 MB / 0.6922 GB, free: 11.32 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.4988, allocations: 95.56 kB / 0.6923 GB, free: 11.23 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001641/0.499, allocations: 24 kB / 0.6923 GB, free: 11.2 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.000679/0.4997, allocations: 213.5 kB / 0.6925 GB, free: 10.98 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002782/0.4999, allocations: 79.48 kB / 0.6926 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005369/0.5053, allocations: 1.674 MB / 0.6943 GB, free: 9.211 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/0.5053, allocations: 12 kB / 0.6943 GB, free: 9.199 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.5053, allocations: 0 / 0.6943 GB, free: 9.199 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.5053, allocations: 8.109 kB / 0.6943 GB, free: 9.191 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005549/0.5109, allocations: 2.383 MB / 0.6966 GB, free: 6.723 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.5109, allocations: 3.938 kB / 0.6966 GB, free: 6.719 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00043/0.5113, allocations: 71.89 kB / 0.6967 GB, free: 6.648 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.004428/0.5158, allocations: 1.06 MB / 0.6977 GB, free: 5.578 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.5159, allocations: 16 kB / 0.6977 GB, free: 5.562 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005736/0.5164, allocations: 104.7 kB / 0.6978 GB, free: 5.457 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5164, allocations: 0 / 0.6978 GB, free: 5.457 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005069/0.5215, allocations: 1.997 MB / 0.6998 GB, free: 3.434 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002476/0.5218, allocations: 75.53 kB / 0.6998 GB, free: 3.359 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.5219, allocations: 19.94 kB / 0.6999 GB, free: 3.34 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007035/0.5226, allocations: 63.91 kB / 0.6999 GB, free: 3.277 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003202/0.5229, allocations: 120.4 kB / 0.7 GB, free: 3.16 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.768e-05/0.523, allocations: 23.98 kB / 0.7001 GB, free: 3.137 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00056/0.5236, allocations: 350.8 kB / 0.7004 GB, free: 2.797 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5236, allocations: 0 / 0.7004 GB, free: 2.797 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008875/0.5244, allocations: 239.8 kB / 0.7006 GB, free: 2.562 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.0003043/0.5248, allocations: 119.2 kB / 0.7007 GB, free: 2.438 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004621/0.5294, allocations: 1.386 MB / 0.7021 GB, free: 1.031 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.5294, allocations: 0 / 0.7021 GB, free: 1.031 MB / 478.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3565:9-3565: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1568:5-1568:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:822:5-822:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.704721335088834] Failed to read output from testmodel.py, exit status != 0: 0.5409210240468383 0.558412873 0.12777364800000002 Calling exit ...