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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 97.69 kB / 19.59 MB, free: 2.336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.546/1.546, allocations: 225.6 MB / 248.2 MB, free: 3.082 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.001527/0.001527, allocations: 190.8 kB / 303.6 MB, free: 3.438 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.3742/0.3742, allocations: 79.73 MB / 438.6 MB, free: 7.02 MB / 366.1 MB " [Timeout remaining time 179] 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=35000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=35000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002375/0.002375, allocations: 88.12 kB / 0.5843 GB, free: 7.762 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4127/0.4151, allocations: 72.11 MB / 0.6547 GB, free: 18.42 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004868/0.42, allocations: 4.388 MB / 0.659 GB, free: 15.25 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.4224, allocations: 1.252 MB / 0.6602 GB, free: 14.36 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002873/0.4227, allocations: 5.938 kB / 0.6602 GB, free: 14.36 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004187/0.4231, allocations: 140.9 kB / 0.6604 GB, free: 14.29 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005556/0.4237, allocations: 275.6 kB / 0.6606 GB, free: 14.08 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.4249, allocations: 0.5805 MB / 0.6612 GB, free: 13.74 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007098/0.4257, allocations: 0.809 MB / 0.662 GB, free: 13.32 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002491/0.4259, allocations: 137.4 kB / 0.6621 GB, free: 13.24 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003386/0.4262, allocations: 341.4 kB / 0.6624 GB, free: 13.07 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005529/0.4268, allocations: 418 kB / 0.6628 GB, free: 12.86 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.4269, allocations: 62.44 kB / 0.6629 GB, free: 12.86 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003594/0.4273, allocations: 130.6 kB / 0.663 GB, free: 12.84 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.4274, allocations: 168.6 kB / 0.6632 GB, free: 12.72 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003451/0.4278, allocations: 392.3 kB / 0.6636 GB, free: 12.46 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.429, allocations: 0.9187 MB / 0.6645 GB, free: 12.04 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.429, allocations: 0 / 0.6645 GB, free: 12.04 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.429, allocations: 0.5625 kB / 0.6645 GB, free: 12.04 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.429, allocations: 0 / 0.6645 GB, free: 12.04 MB / 462.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.004664/0.4337, allocations: 1.618 MB / 0.666 GB, free: 11.23 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.4337, allocations: 15.11 kB / 0.6661 GB, free: 11.23 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002664/0.4364, allocations: 439 kB / 0.6665 GB, free: 11.12 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007041/0.4371, allocations: 441.7 kB / 0.6669 GB, free: 10.8 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.4373, allocations: 198.4 kB / 0.6671 GB, free: 10.62 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.4374, allocations: 54.44 kB / 0.6671 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.4389, allocations: 0.6937 MB / 0.6678 GB, free: 10.34 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.4389, allocations: 0 / 0.6678 GB, free: 10.34 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-05/0.439, allocations: 21.47 kB / 0.6678 GB, free: 10.32 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.439, allocations: 16.72 kB / 0.6679 GB, free: 10.32 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001426/0.4404, allocations: 0.6734 MB / 0.6685 GB, free: 10.07 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003481/0.4439, allocations: 2.09 MB / 0.6705 GB, free: 8.453 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007645/0.4516, allocations: 1.738 MB / 0.6722 GB, free: 7.676 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009449/0.4525, allocations: 436.1 kB / 0.6727 GB, free: 7.465 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.463e-05/0.4526, allocations: 8.375 kB / 0.6727 GB, free: 7.461 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001159/0.4537, allocations: 0.5322 MB / 0.6732 GB, free: 7.133 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 3.887e-06/0.4537, allocations: 0 / 0.6732 GB, free: 7.133 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007287/0.461, allocations: 2.22 MB / 0.6754 GB, free: 6.043 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.4611, allocations: 58.94 kB / 0.6754 GB, free: 5.98 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006213/0.4617, allocations: 0.5132 MB / 0.6759 GB, free: 5.668 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.26e-05/0.4618, allocations: 41.11 kB / 0.676 GB, free: 5.625 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001893/0.462, allocations: 328.4 kB / 0.6763 GB, free: 5.336 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002084/0.4622, allocations: 260 kB / 0.6765 GB, free: 5.109 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/0.4624, allocations: 124.4 kB / 0.6766 GB, free: 5.031 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.4625, allocations: 383 kB / 0.677 GB, free: 4.664 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008427/0.4633, allocations: 405.5 kB / 0.6774 GB, free: 4.469 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008646/0.4642, allocations: 0.4948 MB / 0.6779 GB, free: 4.164 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008834/0.473, allocations: 2.509 MB / 0.6803 GB, free: 2.902 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.4731, allocations: 4 kB / 0.6803 GB, free: 2.898 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007434/0.4805, allocations: 2.203 MB / 0.6825 GB, free: 1.797 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.4805, allocations: 7.438 kB / 0.6825 GB, free: 1.797 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.4805, allocations: 1.906 kB / 0.6825 GB, free: 1.797 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004178/0.4847, allocations: 0.9945 MB / 0.6835 GB, free: 1.332 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000614/0.4853, allocations: 110.4 kB / 0.6836 GB, free: 1.305 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0109/0.4962, allocations: 4.414 MB / 0.6879 GB, free: 13.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.4973, allocations: 103.5 kB / 0.688 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001761/0.4975, allocations: 27.98 kB / 0.688 GB, free: 13.57 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.0006165/0.4981, allocations: 202.2 kB / 0.6882 GB, free: 13.36 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002929/0.4984, allocations: 75.53 kB / 0.6883 GB, free: 13.29 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005529/0.5039, allocations: 1.667 MB / 0.6899 GB, free: 11.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.5039, allocations: 8 kB / 0.6899 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.5039, allocations: 4 kB / 0.6899 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.504, allocations: 7.922 kB / 0.6899 GB, free: 11.58 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005456/0.5094, allocations: 2.391 MB / 0.6922 GB, free: 9.105 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.5094, allocations: 0 / 0.6922 GB, free: 9.105 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004222/0.5098, allocations: 71.91 kB / 0.6923 GB, free: 9.035 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.004539/0.5144, allocations: 1.068 MB / 0.6934 GB, free: 7.957 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.5145, allocations: 12 kB / 0.6934 GB, free: 7.945 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006104/0.5151, allocations: 96.75 kB / 0.6935 GB, free: 7.848 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/0.5151, allocations: 3.938 kB / 0.6935 GB, free: 7.844 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0053/0.5204, allocations: 2.001 MB / 0.6954 GB, free: 5.816 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003089/0.5207, allocations: 75.44 kB / 0.6955 GB, free: 5.742 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002025/0.5209, allocations: 19.94 kB / 0.6955 GB, free: 5.723 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007864/0.5217, allocations: 59.94 kB / 0.6956 GB, free: 5.664 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004152/0.5221, allocations: 128.4 kB / 0.6957 GB, free: 5.539 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.919e-05/0.5222, allocations: 19.98 kB / 0.6957 GB, free: 5.52 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005457/0.5227, allocations: 350.8 kB / 0.696 GB, free: 5.18 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5227, allocations: 0 / 0.696 GB, free: 5.18 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0009972/0.5237, allocations: 243.8 kB / 0.6963 GB, free: 4.941 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.0002642/0.524, allocations: 115.2 kB / 0.6964 GB, free: 4.82 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004515/0.5285, allocations: 1.382 MB / 0.6977 GB, free: 3.414 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.5285, allocations: 8.062 kB / 0.6977 GB, free: 3.406 MB / 478.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/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1567:5-1567:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/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 659] [Calling sys.exit(0), Time elapsed: 3.6979227080009878] Failed to read output from testmodel.py, exit status != 0: 0.5389642369991634 0.5548877369999999 0.12269175700000001 Calling exit ...