Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_release_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Tests.Branches.Generic.ULTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 169.3 kB / 16.1 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.3 MB / 240.1 MB, free: 9.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008124/0.0008124, allocations: 94.86 kB / 291.3 MB, free: 10.55 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4989/0.4989, allocations: 78.61 MB / 421 MB, free: 9.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004384/0.0004386, allocations: 16 kB / 0.4894 GB, free: 9.207 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3338, allocations: 69.34 MB / 0.5571 GB, free: 18.77 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003252/0.3371, allocations: 4.225 MB / 0.5613 GB, free: 14.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.3389, allocations: 1.263 MB / 0.5625 GB, free: 13.26 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001929/0.3391, allocations: 4 kB / 0.5625 GB, free: 13.25 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002812/0.3394, allocations: 119.3 kB / 0.5626 GB, free: 13.14 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003818/0.3398, allocations: 194.6 kB / 0.5628 GB, free: 12.95 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000967/0.3408, allocations: 0.521 MB / 0.5633 GB, free: 12.43 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004776/0.3412, allocations: 0.7704 MB / 0.5641 GB, free: 11.65 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.3415, allocations: 170.2 kB / 0.5642 GB, free: 11.48 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001898/0.3417, allocations: 302.5 kB / 0.5645 GB, free: 11.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.342, allocations: 382 kB / 0.5649 GB, free: 10.8 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.456e-05/0.3421, allocations: 36 kB / 0.5649 GB, free: 10.77 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002347/0.3423, allocations: 91.97 kB / 0.565 GB, free: 10.68 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.2e-05/0.3424, allocations: 139.2 kB / 0.5651 GB, free: 10.54 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002181/0.3426, allocations: 383.4 kB / 0.5655 GB, free: 10.16 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004358/0.3431, allocations: 0.6604 MB / 0.5661 GB, free: 9.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3431, allocations: 3.984 kB / 0.5661 GB, free: 9.496 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3431, allocations: 3.938 kB / 0.5661 GB, free: 9.492 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.3431, allocations: 3.938 kB / 0.5662 GB, free: 9.488 MB / 378.7 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.003364/0.3465, allocations: 1.449 MB / 0.5676 GB, free: 7.992 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.3465, allocations: 15.97 kB / 0.5676 GB, free: 7.977 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002192/0.3487, allocations: 427.1 kB / 0.568 GB, free: 7.559 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005154/0.3492, allocations: 0.4943 MB / 0.5685 GB, free: 7.023 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001883/0.3494, allocations: 205.8 kB / 0.5687 GB, free: 6.793 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.726e-05/0.3495, allocations: 52 kB / 0.5687 GB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.3507, allocations: 0.7327 MB / 0.5694 GB, free: 6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.3508, allocations: 0 / 0.5694 GB, free: 6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.893e-05/0.3508, allocations: 31.97 kB / 0.5695 GB, free: 5.969 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.3508, allocations: 15.94 kB / 0.5695 GB, free: 5.953 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.352, allocations: 0.7234 MB / 0.5702 GB, free: 5.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.3551, allocations: 2.172 MB / 0.5723 GB, free: 2.977 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007223/0.3623, allocations: 2.745 MB / 0.575 GB, free: 120 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001174/0.3635, allocations: 0.5108 MB / 0.5755 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.3636, allocations: 24.56 kB / 0.5755 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001359/0.365, allocations: 0.5587 MB / 0.5761 GB, free: 15.01 MB / 394.7 MB Notification: Performance of pre-optimization done (n=73): time 3.286e-06/0.365, allocations: 0 / 0.5761 GB, free: 15.01 MB / 394.7 MB Notification: Performance of matching and sorting (n=73): time 0.008071/0.3731, allocations: 2.846 MB / 0.5788 GB, free: 12.09 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.3732, allocations: 60.06 kB / 0.5789 GB, free: 12.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005577/0.3737, allocations: 0.507 MB / 0.5794 GB, free: 11.51 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.973e-05/0.3738, allocations: 41.7 kB / 0.5794 GB, free: 11.46 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002549/0.3741, allocations: 324.5 kB / 0.5797 GB, free: 11.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/0.3743, allocations: 256.4 kB / 0.58 GB, free: 10.89 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.961e-05/0.3744, allocations: 65.67 kB / 0.58 GB, free: 10.82 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3746, allocations: 382.8 kB / 0.5804 GB, free: 10.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008984/0.3755, allocations: 445.8 kB / 0.5808 GB, free: 9.996 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009704/0.3765, allocations: 0.5376 MB / 0.5814 GB, free: 9.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008863/0.3853, allocations: 2.795 MB / 0.5841 GB, free: 6.609 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.3854, allocations: 0 / 0.5841 GB, free: 6.609 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007206/0.3926, allocations: 2.638 MB / 0.5867 GB, free: 3.949 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.3926, allocations: 4 kB / 0.5867 GB, free: 3.945 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3926, allocations: 4 kB / 0.5867 GB, free: 3.941 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003883/0.3965, allocations: 1.186 MB / 0.5878 GB, free: 2.746 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004676/0.397, allocations: 103.9 kB / 0.5879 GB, free: 2.645 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008907/0.4059, allocations: 4.484 MB / 0.5923 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007459/0.4067, allocations: 119.3 kB / 0.5924 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.353e-05/0.4068, allocations: 35.98 kB / 0.5925 GB, free: 13.88 MB / 410.7 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.0003736/0.4072, allocations: 197.7 kB / 0.5926 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.4073, allocations: 75.06 kB / 0.5927 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004833/0.4121, allocations: 1.967 MB / 0.5946 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.4122, allocations: 4 kB / 0.5946 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4122, allocations: 8 kB / 0.5946 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.4122, allocations: 3.984 kB / 0.5947 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00478/0.417, allocations: 2.597 MB / 0.5972 GB, free: 8.918 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.417, allocations: 7.875 kB / 0.5972 GB, free: 8.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003895/0.4174, allocations: 79.89 kB / 0.5973 GB, free: 8.832 MB / 410.7 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.004126/0.4215, allocations: 1.256 MB / 0.5985 GB, free: 7.566 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.604e-05/0.4216, allocations: 16 kB / 0.5985 GB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005618/0.4222, allocations: 132.6 kB / 0.5986 GB, free: 7.418 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.4222, allocations: 0 / 0.5986 GB, free: 7.418 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004532/0.4267, allocations: 2.218 MB / 0.6008 GB, free: 5.176 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.427, allocations: 152.1 kB / 0.601 GB, free: 5.008 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.4271, allocations: 19.98 kB / 0.601 GB, free: 4.988 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006252/0.4277, allocations: 75.94 kB / 0.601 GB, free: 4.914 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003001/0.428, allocations: 120.5 kB / 0.6012 GB, free: 4.797 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.399e-05/0.4281, allocations: 19.98 kB / 0.6012 GB, free: 4.777 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004224/0.4285, allocations: 354.8 kB / 0.6015 GB, free: 4.434 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4285, allocations: 0 / 0.6015 GB, free: 4.434 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007391/0.4293, allocations: 243.6 kB / 0.6017 GB, free: 4.195 MB / 410.7 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.0002244/0.4295, allocations: 119.2 kB / 0.6019 GB, free: 4.066 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004086/0.4336, allocations: 1.751 MB / 0.6036 GB, free: 2.258 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.4336, allocations: 4 kB / 0.6036 GB, free: 2.254 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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:3399:9-3399: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:1497:5-1497:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:764:5-764:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]