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.007221/0.007221, allocations: 96.19 kB / 15.87 MB, free: 6.289 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.45/1.45, allocations: 222.9 MB / 239.5 MB, free: 4.816 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.001698/0.001697, allocations: 192.4 kB / 289.8 MB, free: 2.555 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5123/0.5123, allocations: 78.53 MB / 418.4 MB, free: 3.344 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 75.86 kB / 497.4 MB, free: 6.883 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1711, allocations: 68.17 MB / 0.5523 GB, free: 2.668 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.3147/0.4859, allocations: 4.639 MB / 0.5568 GB, free: 37.08 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002942/0.4889, allocations: 1.271 MB / 0.5581 GB, free: 36.69 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000294/0.4892, allocations: 7.656 kB / 0.5581 GB, free: 36.69 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004507/0.4897, allocations: 116.1 kB / 0.5582 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005232/0.4903, allocations: 186.7 kB / 0.5584 GB, free: 36.65 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00123/0.4915, allocations: 0.5437 MB / 0.5589 GB, free: 36.53 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006715/0.4922, allocations: 0.764 MB / 0.5597 GB, free: 36.49 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00029/0.4925, allocations: 168.7 kB / 0.5598 GB, free: 36.45 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002562/0.4928, allocations: 312.8 kB / 0.5601 GB, free: 36.37 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004352/0.4932, allocations: 401.7 kB / 0.5605 GB, free: 36.26 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.365e-05/0.4933, allocations: 40.84 kB / 0.5605 GB, free: 36.26 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003076/0.4936, allocations: 101.3 kB / 0.5606 GB, free: 36.26 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.4938, allocations: 149.8 kB / 0.5608 GB, free: 36.22 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000288/0.494, allocations: 365.3 kB / 0.5611 GB, free: 36.09 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006295/0.4947, allocations: 0.6902 MB / 0.5618 GB, free: 35.98 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.4947, allocations: 0.6875 kB / 0.5618 GB, free: 35.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.4947, allocations: 0 / 0.5618 GB, free: 35.98 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.4947, allocations: 2.562 kB / 0.5618 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.004342/0.4991, allocations: 1.563 MB / 0.5633 GB, free: 35.32 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.693e-05/0.4991, allocations: 9.188 kB / 0.5633 GB, free: 35.32 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002547/0.5017, allocations: 431.7 kB / 0.5638 GB, free: 35.26 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000774/0.5025, allocations: 0.4906 MB / 0.5642 GB, free: 34.97 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002642/0.5028, allocations: 204.9 kB / 0.5644 GB, free: 34.81 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.5029, allocations: 54.81 kB / 0.5645 GB, free: 34.81 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.5045, allocations: 0.6865 MB / 0.5652 GB, free: 34.76 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.5045, allocations: 3.094 kB / 0.5652 GB, free: 34.76 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-05/0.5046, allocations: 23.27 kB / 0.5652 GB, free: 34.76 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.5046, allocations: 16.91 kB / 0.5652 GB, free: 34.75 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0014/0.506, allocations: 0.6754 MB / 0.5659 GB, free: 34.75 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003648/0.5097, allocations: 2.15 MB / 0.568 GB, free: 34.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007986/0.5177, allocations: 2.274 MB / 0.5702 GB, free: 33.64 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.5187, allocations: 482.1 kB / 0.5706 GB, free: 33.63 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.524e-05/0.5188, allocations: 7.125 kB / 0.5706 GB, free: 33.63 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001173/0.52, allocations: 0.5255 MB / 0.5712 GB, free: 33.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 3.727e-06/0.52, allocations: 0 / 0.5712 GB, free: 33.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006853/0.5269, allocations: 2.457 MB / 0.5736 GB, free: 33.14 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.527, allocations: 57.88 kB / 0.5736 GB, free: 33.08 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006394/0.5276, allocations: 0.5081 MB / 0.5741 GB, free: 32.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.399e-05/0.5277, allocations: 44.06 kB / 0.5741 GB, free: 32.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002187/0.5279, allocations: 322.3 kB / 0.5745 GB, free: 32.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002285/0.5282, allocations: 259 kB / 0.5747 GB, free: 32.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.5284, allocations: 119.3 kB / 0.5748 GB, free: 32.59 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.5285, allocations: 380 kB / 0.5752 GB, free: 32.28 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007954/0.5293, allocations: 405.7 kB / 0.5756 GB, free: 32.27 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008297/0.5302, allocations: 0.4924 MB / 0.576 GB, free: 32.19 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008487/0.5386, allocations: 2.516 MB / 0.5785 GB, free: 31.85 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.5387, allocations: 0.6562 kB / 0.5785 GB, free: 31.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007187/0.5459, allocations: 2.212 MB / 0.5807 GB, free: 31.27 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/0.5459, allocations: 6.719 kB / 0.5807 GB, free: 31.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.546, allocations: 6.844 kB / 0.5807 GB, free: 31.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003832/0.5498, allocations: 0.9952 MB / 0.5816 GB, free: 31.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000596/0.5504, allocations: 110.5 kB / 0.5818 GB, free: 31.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008478/0.5589, allocations: 4.132 MB / 0.5858 GB, free: 28.69 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000909/0.5598, allocations: 97 kB / 0.5859 GB, free: 28.64 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.56, allocations: 29.5 kB / 0.5859 GB, free: 28.64 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.0004829/0.5605, allocations: 204.1 kB / 0.5861 GB, free: 28.47 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001941/0.5607, allocations: 71.62 kB / 0.5862 GB, free: 28.43 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00456/0.5652, allocations: 1.702 MB / 0.5878 GB, free: 27.88 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.5653, allocations: 9.922 kB / 0.5878 GB, free: 27.88 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.5653, allocations: 4 kB / 0.5878 GB, free: 27.88 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.5653, allocations: 4.5 kB / 0.5878 GB, free: 27.88 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004587/0.5699, allocations: 2.435 MB / 0.5902 GB, free: 26.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.5699, allocations: 5.188 kB / 0.5902 GB, free: 26.67 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003951/0.5703, allocations: 70 kB / 0.5903 GB, free: 26.67 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.004282/0.5746, allocations: 1.071 MB / 0.5913 GB, free: 26.45 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.09e-05/0.5747, allocations: 12.14 kB / 0.5914 GB, free: 26.44 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005492/0.5752, allocations: 101.7 kB / 0.5915 GB, free: 26.42 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.5753, allocations: 0.6562 kB / 0.5915 GB, free: 26.42 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004604/0.5799, allocations: 2.011 MB / 0.5934 GB, free: 25.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.5801, allocations: 152.2 kB / 0.5936 GB, free: 25.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001379/0.5802, allocations: 13.14 kB / 0.5936 GB, free: 25.42 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006539/0.5809, allocations: 63.47 kB / 0.5936 GB, free: 25.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000358/0.5812, allocations: 116.5 kB / 0.5937 GB, free: 25.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.64e-05/0.5813, allocations: 18.98 kB / 0.5938 GB, free: 25.38 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00051/0.5818, allocations: 357 kB / 0.5941 GB, free: 25.22 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5818, allocations: 0 / 0.5941 GB, free: 25.22 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001099/0.5829, allocations: 242 kB / 0.5943 GB, free: 25.18 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.0002327/0.5832, allocations: 116.7 kB / 0.5944 GB, free: 25.08 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004284/0.5875, allocations: 1.573 MB / 0.596 GB, free: 24.37 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.5875, allocations: 0 / 0.596 GB, free: 24.37 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/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1519:5-1519:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/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]