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.09327/0.09327, allocations: 12.37 MB / 31.19 MB, free: 24 kB / 19.63 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.001426/0.001426, allocations: 120.9 kB / 37.25 MB, free: 1.242 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.512/1.512, allocations: 207.6 MB / 250.8 MB, free: 7.363 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.001815/0.001815, allocations: 220.4 kB / 306.1 MB, free: 496 kB / 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.3281/0.3281, allocations: 79.74 MB / 440.9 MB, free: 12.48 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: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) [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.006698/0.006698, allocations: 151.8 kB / 0.5875 GB, free: 7.645 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4584/0.4651, allocations: 71.95 MB / 0.6578 GB, free: 2.512 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005552/0.4707, allocations: 4.461 MB / 0.6621 GB, free: 15.29 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002829/0.4735, allocations: 1.219 MB / 0.6633 GB, free: 14.42 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003049/0.4738, allocations: 5.844 kB / 0.6633 GB, free: 14.42 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004364/0.4743, allocations: 144.2 kB / 0.6635 GB, free: 14.34 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006033/0.4749, allocations: 268.3 kB / 0.6637 GB, free: 14.14 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001377/0.4763, allocations: 0.5318 MB / 0.6642 GB, free: 13.84 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.4773, allocations: 0.8076 MB / 0.665 GB, free: 13.42 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003058/0.4776, allocations: 137.9 kB / 0.6652 GB, free: 13.34 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004404/0.478, allocations: 345.9 kB / 0.6655 GB, free: 13.16 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006204/0.4786, allocations: 414.9 kB / 0.6659 GB, free: 12.95 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.4787, allocations: 62.31 kB / 0.6659 GB, free: 12.95 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003579/0.4791, allocations: 134.1 kB / 0.6661 GB, free: 12.93 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.4793, allocations: 168.9 kB / 0.6662 GB, free: 12.81 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004101/0.4797, allocations: 385.1 kB / 0.6666 GB, free: 12.56 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001333/0.481, allocations: 0.9267 MB / 0.6675 GB, free: 12.13 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.481, allocations: 0 / 0.6675 GB, free: 12.13 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.481, allocations: 1.219 kB / 0.6675 GB, free: 12.13 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.481, allocations: 0 / 0.6675 GB, free: 12.13 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.004964/0.486, allocations: 1.607 MB / 0.6691 GB, free: 11.33 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.4861, allocations: 9.656 kB / 0.6691 GB, free: 11.33 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001474/0.4862, allocations: 101.9 kB / 0.6692 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002712/0.4889, allocations: 436.9 kB / 0.6696 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008363/0.4898, allocations: 453 kB / 0.67 GB, free: 10.81 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003364/0.4901, allocations: 280.3 kB / 0.6703 GB, free: 10.54 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.4902, allocations: 51.09 kB / 0.6703 GB, free: 10.52 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.4918, allocations: 0.6921 MB / 0.671 GB, free: 10.26 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.4918, allocations: 0 / 0.671 GB, free: 10.26 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.019e-05/0.4919, allocations: 22.08 kB / 0.671 GB, free: 10.24 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.4919, allocations: 17.58 kB / 0.6711 GB, free: 10.24 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.4934, allocations: 0.6729 MB / 0.6717 GB, free: 10.02 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004151/0.4976, allocations: 2.099 MB / 0.6738 GB, free: 8.414 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00758/0.5052, allocations: 1.742 MB / 0.6755 GB, free: 7.629 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.5062, allocations: 433 kB / 0.6759 GB, free: 7.418 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.302e-05/0.5063, allocations: 20.64 kB / 0.6759 GB, free: 7.406 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/0.5075, allocations: 0.5236 MB / 0.6764 GB, free: 7.082 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 3.016e-06/0.5075, allocations: 0 / 0.6764 GB, free: 7.082 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007267/0.5148, allocations: 2.211 MB / 0.6786 GB, free: 6.004 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.5149, allocations: 60.16 kB / 0.6786 GB, free: 5.941 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006975/0.5156, allocations: 0.5083 MB / 0.6791 GB, free: 5.633 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.325e-05/0.5156, allocations: 45.83 kB / 0.6792 GB, free: 5.586 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002726/0.5159, allocations: 324.9 kB / 0.6795 GB, free: 5.301 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002739/0.5162, allocations: 263.9 kB / 0.6797 GB, free: 5.07 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002359/0.5164, allocations: 122.8 kB / 0.6798 GB, free: 4.992 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.5166, allocations: 387.2 kB / 0.6802 GB, free: 4.621 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009005/0.5175, allocations: 406.1 kB / 0.6806 GB, free: 4.422 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009753/0.5185, allocations: 0.49 MB / 0.6811 GB, free: 4.125 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009429/0.5279, allocations: 2.514 MB / 0.6835 GB, free: 2.859 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.5279, allocations: 3.938 kB / 0.6835 GB, free: 2.855 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007429/0.5354, allocations: 2.203 MB / 0.6857 GB, free: 1.754 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.5354, allocations: 5.5 kB / 0.6857 GB, free: 1.754 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.5354, allocations: 2.625 kB / 0.6857 GB, free: 1.754 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004012/0.5394, allocations: 0.9897 MB / 0.6867 GB, free: 1.293 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005656/0.54, allocations: 112.8 kB / 0.6868 GB, free: 1.262 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009917/0.5499, allocations: 4.408 MB / 0.6911 GB, free: 14.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009069/0.5508, allocations: 103 kB / 0.6912 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.551e-05/0.5509, allocations: 21.88 kB / 0.6912 GB, free: 14.14 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.0004584/0.5513, allocations: 218.6 kB / 0.6914 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.5515, allocations: 79.14 kB / 0.6915 GB, free: 13.91 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00488/0.5564, allocations: 1.673 MB / 0.6931 GB, free: 13 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.5564, allocations: 6.844 kB / 0.6931 GB, free: 13 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.5564, allocations: 5.062 kB / 0.6931 GB, free: 13 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.5564, allocations: 3.984 kB / 0.6931 GB, free: 13 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00497/0.5614, allocations: 2.388 MB / 0.6955 GB, free: 11.28 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.5614, allocations: 0 / 0.6955 GB, free: 11.28 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004102/0.5618, allocations: 67.91 kB / 0.6955 GB, free: 11.21 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.004349/0.5661, allocations: 1.068 MB / 0.6966 GB, free: 10.14 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.001e-05/0.5662, allocations: 11.98 kB / 0.6966 GB, free: 10.12 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005843/0.5668, allocations: 104.7 kB / 0.6967 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5668, allocations: 4 kB / 0.6967 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004769/0.5716, allocations: 1.989 MB / 0.6986 GB, free: 8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002483/0.5718, allocations: 95.31 kB / 0.6987 GB, free: 7.906 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/0.5719, allocations: 19.94 kB / 0.6987 GB, free: 7.887 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006999/0.5726, allocations: 55.94 kB / 0.6988 GB, free: 7.832 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003214/0.573, allocations: 124.4 kB / 0.6989 GB, free: 7.711 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.927e-05/0.573, allocations: 16 kB / 0.6989 GB, free: 7.695 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004812/0.5735, allocations: 358.8 kB / 0.6993 GB, free: 7.348 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5735, allocations: 0 / 0.6993 GB, free: 7.348 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008733/0.5744, allocations: 235.8 kB / 0.6995 GB, free: 7.117 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.005135/0.5795, allocations: 2.56 MB / 0.702 GB, free: 4.52 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004303/0.5838, allocations: 1.382 MB / 0.7033 GB, free: 3.121 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.5838, allocations: 4.062 kB / 0.7033 GB, free: 3.117 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.6756065997760743] Failed to read output from testmodel.py, exit status != 0: 0.5950146061368287 0.610879712 0.126619583 Calling exit ...