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.004891/0.004891, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.336/1.336, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001349/0.001349, allocations: 192.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4308/0.4308, allocations: 78.52 MB / 418.4 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001564, allocations: 79.86 kB / 0.5536 GB, free: 1.023 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2942, allocations: 68.15 MB / 0.6202 GB, free: 9.668 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003681/0.298, allocations: 4.373 MB / 0.6244 GB, free: 5.879 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001672/0.2997, allocations: 1.235 MB / 0.6256 GB, free: 4.641 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001981/0.2999, allocations: 4 kB / 0.6256 GB, free: 4.637 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002976/0.3002, allocations: 150.8 kB / 0.6258 GB, free: 4.488 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004006/0.3006, allocations: 230 kB / 0.626 GB, free: 4.262 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009881/0.3016, allocations: 0.5777 MB / 0.6266 GB, free: 3.688 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005109/0.3021, allocations: 0.8017 MB / 0.6273 GB, free: 2.883 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002677/0.3024, allocations: 201.8 kB / 0.6275 GB, free: 2.676 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/0.3026, allocations: 338.5 kB / 0.6279 GB, free: 2.344 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003576/0.303, allocations: 414 kB / 0.6283 GB, free: 1.938 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.677e-05/0.3031, allocations: 64 kB / 0.6283 GB, free: 1.875 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002436/0.3033, allocations: 131.9 kB / 0.6284 GB, free: 1.746 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.384e-05/0.3034, allocations: 171.3 kB / 0.6286 GB, free: 1.578 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002225/0.3037, allocations: 389.7 kB / 0.629 GB, free: 1.195 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006274/0.3043, allocations: 0.9193 MB / 0.6299 GB, free: 284 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3043, allocations: 0 / 0.6299 GB, free: 284 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3043, allocations: 0 / 0.6299 GB, free: 284 kB / 430.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.3043, allocations: 0 / 0.6299 GB, free: 284 kB / 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.004191/0.3085, allocations: 1.588 MB / 0.6314 GB, free: 14.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.3086, allocations: 8.031 kB / 0.6314 GB, free: 14.63 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002606/0.3112, allocations: 443.5 kB / 0.6319 GB, free: 14.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005998/0.3118, allocations: 0.5025 MB / 0.6323 GB, free: 13.65 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000228/0.312, allocations: 197.8 kB / 0.6325 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.971e-05/0.3121, allocations: 52 kB / 0.6326 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.3135, allocations: 0.6936 MB / 0.6333 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.3136, allocations: 0 / 0.6333 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-05/0.3136, allocations: 24 kB / 0.6333 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.3137, allocations: 15.94 kB / 0.6333 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.3151, allocations: 0.6727 MB / 0.634 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00349/0.3186, allocations: 2.133 MB / 0.636 GB, free: 9.746 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007758/0.3264, allocations: 2.263 MB / 0.6382 GB, free: 7.363 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.3274, allocations: 487.1 kB / 0.6387 GB, free: 6.887 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.341e-05/0.3275, allocations: 8.656 kB / 0.6387 GB, free: 6.879 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001134/0.3287, allocations: 0.5196 MB / 0.6392 GB, free: 6.344 MB / 446.1 MB Notification: Performance of pre-optimization done (n=73): time 3.016e-06/0.3287, allocations: 3.938 kB / 0.6392 GB, free: 6.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=73): time 0.007122/0.3358, allocations: 2.455 MB / 0.6416 GB, free: 3.816 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.911e-05/0.3359, allocations: 64.05 kB / 0.6417 GB, free: 3.738 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005588/0.3365, allocations: 0.507 MB / 0.6422 GB, free: 3.219 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.865e-05/0.3365, allocations: 41.7 kB / 0.6422 GB, free: 3.172 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.3368, allocations: 337 kB / 0.6425 GB, free: 2.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002303/0.337, allocations: 253.8 kB / 0.6428 GB, free: 2.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002283/0.3373, allocations: 118.7 kB / 0.6429 GB, free: 2.469 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3374, allocations: 386.7 kB / 0.6433 GB, free: 2.082 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008755/0.3383, allocations: 413.7 kB / 0.6437 GB, free: 1.676 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000936/0.3392, allocations: 0.4946 MB / 0.6441 GB, free: 1.156 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008953/0.3482, allocations: 2.51 MB / 0.6466 GB, free: 14.62 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3482, allocations: 0 / 0.6466 GB, free: 14.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007128/0.3554, allocations: 2.22 MB / 0.6488 GB, free: 12.38 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.3554, allocations: 6.344 kB / 0.6488 GB, free: 12.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.3555, allocations: 11.94 kB / 0.6488 GB, free: 12.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003986/0.3595, allocations: 0.9937 MB / 0.6498 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005209/0.36, allocations: 103.8 kB / 0.6499 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009354/0.3694, allocations: 4.52 MB / 0.6543 GB, free: 6.609 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007881/0.3702, allocations: 99.45 kB / 0.6544 GB, free: 6.512 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.2e-05/0.3702, allocations: 24 kB / 0.6544 GB, free: 6.488 MB / 462.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.000341/0.3706, allocations: 203.9 kB / 0.6546 GB, free: 6.281 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.3707, allocations: 75.53 kB / 0.6547 GB, free: 6.207 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004713/0.3754, allocations: 1.698 MB / 0.6563 GB, free: 4.492 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.3755, allocations: 8 kB / 0.6563 GB, free: 4.484 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3755, allocations: 3.938 kB / 0.6563 GB, free: 4.48 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.3755, allocations: 7.922 kB / 0.6563 GB, free: 4.473 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004399/0.3799, allocations: 2.435 MB / 0.6587 GB, free: 1.945 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.3799, allocations: 3.984 kB / 0.6587 GB, free: 1.941 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003729/0.3803, allocations: 71.91 kB / 0.6588 GB, free: 1.871 MB / 462.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.004022/0.3843, allocations: 1.073 MB / 0.6598 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.3845, allocations: 15.98 kB / 0.6598 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005673/0.385, allocations: 96.94 kB / 0.6599 GB, free: 0.6758 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3851, allocations: 4 kB / 0.6599 GB, free: 0.6719 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004473/0.3895, allocations: 2.013 MB / 0.6619 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002456/0.3898, allocations: 160.5 kB / 0.6621 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.3899, allocations: 19.94 kB / 0.6621 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006198/0.3905, allocations: 51.94 kB / 0.6621 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003324/0.3909, allocations: 120.5 kB / 0.6622 GB, free: 14.26 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.455e-05/0.391, allocations: 19.98 kB / 0.6623 GB, free: 14.24 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004219/0.3914, allocations: 354.8 kB / 0.6626 GB, free: 13.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3914, allocations: 4 kB / 0.6626 GB, free: 13.89 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007836/0.3922, allocations: 235.8 kB / 0.6628 GB, free: 13.66 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.0002137/0.3924, allocations: 119.2 kB / 0.6629 GB, free: 13.54 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003836/0.3962, allocations: 1.587 MB / 0.6645 GB, free: 11.89 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3963, allocations: 4 kB / 0.6645 GB, free: 11.89 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3521:9-3521: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1548:5-1548:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]