Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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_dev_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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.001727/0.001727, allocations: 182 kB / 15.98 MB, free: 5.766 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.315/1.315, allocations: 222.9 MB / 239.6 MB, free: 11 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.001115/0.001115, allocations: 112.5 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.425/0.425, allocations: 78.48 MB / 418.5 MB, free: 8.859 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 71.89 kB / 497.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2698, allocations: 68.11 MB / 0.5523 GB, free: 20.26 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003645/0.2735, allocations: 4.649 MB / 0.5568 GB, free: 15.58 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001694/0.2752, allocations: 1.274 MB / 0.5581 GB, free: 14.3 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002122/0.2755, allocations: 4 kB / 0.5581 GB, free: 14.3 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002891/0.2758, allocations: 111.3 kB / 0.5582 GB, free: 14.19 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003777/0.2762, allocations: 198.5 kB / 0.5584 GB, free: 14 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000946/0.2771, allocations: 0.5324 MB / 0.5589 GB, free: 13.47 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004725/0.2776, allocations: 0.7822 MB / 0.5597 GB, free: 12.68 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.2778, allocations: 174.2 kB / 0.5598 GB, free: 12.5 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.278, allocations: 310.5 kB / 0.5601 GB, free: 12.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.2784, allocations: 402 kB / 0.5605 GB, free: 11.8 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.067e-05/0.2784, allocations: 44 kB / 0.5606 GB, free: 11.76 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002369/0.2787, allocations: 108 kB / 0.5607 GB, free: 11.65 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.507e-05/0.2788, allocations: 147.2 kB / 0.5608 GB, free: 11.51 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000208/0.279, allocations: 369.7 kB / 0.5612 GB, free: 11.14 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005394/0.2795, allocations: 0.8739 MB / 0.562 GB, free: 10.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2795, allocations: 0 / 0.562 GB, free: 10.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.2796, allocations: 0 / 0.562 GB, free: 10.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.2796, allocations: 0 / 0.562 GB, free: 10.27 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.003876/0.2834, allocations: 1.567 MB / 0.5635 GB, free: 8.652 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.2835, allocations: 12.03 kB / 0.5635 GB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002377/0.2859, allocations: 427 kB / 0.564 GB, free: 8.223 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005602/0.2864, allocations: 0.4981 MB / 0.5644 GB, free: 7.684 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/0.2866, allocations: 201.7 kB / 0.5646 GB, free: 7.457 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-05/0.2867, allocations: 48 kB / 0.5647 GB, free: 7.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.288, allocations: 0.6936 MB / 0.5654 GB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.2881, allocations: 0 / 0.5654 GB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.89e-05/0.2881, allocations: 23.98 kB / 0.5654 GB, free: 6.684 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.2881, allocations: 15.94 kB / 0.5654 GB, free: 6.668 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.2894, allocations: 0.6727 MB / 0.5661 GB, free: 5.996 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003101/0.2925, allocations: 2.148 MB / 0.5681 GB, free: 3.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00758/0.3001, allocations: 2.269 MB / 0.5704 GB, free: 1.387 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008631/0.301, allocations: 491.1 kB / 0.5708 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.933e-05/0.3011, allocations: 12.64 kB / 0.5708 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009922/0.3021, allocations: 0.5235 MB / 0.5714 GB, free: 368 kB / 378.7 MB Notification: Performance of pre-optimization done (n=73): time 3.175e-06/0.3021, allocations: 0 / 0.5714 GB, free: 368 kB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.007184/0.3093, allocations: 2.459 MB / 0.5738 GB, free: 13.83 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.3093, allocations: 60 kB / 0.5738 GB, free: 13.76 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005274/0.3099, allocations: 0.5109 MB / 0.5743 GB, free: 13.24 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.636e-05/0.3099, allocations: 41.7 kB / 0.5744 GB, free: 13.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.3101, allocations: 328.6 kB / 0.5747 GB, free: 12.87 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.3103, allocations: 252.3 kB / 0.5749 GB, free: 12.62 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002223/0.3105, allocations: 122.7 kB / 0.575 GB, free: 12.49 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.3107, allocations: 382.8 kB / 0.5754 GB, free: 12.11 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008696/0.3116, allocations: 405.8 kB / 0.5758 GB, free: 11.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009058/0.3125, allocations: 0.4907 MB / 0.5763 GB, free: 11.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009001/0.3215, allocations: 2.506 MB / 0.5787 GB, free: 8.656 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.3215, allocations: 8 kB / 0.5787 GB, free: 8.648 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007214/0.3287, allocations: 2.216 MB / 0.5809 GB, free: 6.414 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3288, allocations: 4 kB / 0.5809 GB, free: 6.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.3288, allocations: 4 kB / 0.5809 GB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004005/0.3328, allocations: 0.9951 MB / 0.5819 GB, free: 5.402 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000508/0.3333, allocations: 107.8 kB / 0.582 GB, free: 5.297 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00879/0.3421, allocations: 4.14 MB / 0.586 GB, free: 1.031 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000769/0.3429, allocations: 99.31 kB / 0.5861 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.287e-05/0.343, allocations: 24 kB / 0.5861 GB, free: 0.9102 MB / 394.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.0003453/0.3434, allocations: 213.7 kB / 0.5863 GB, free: 0.6914 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.3435, allocations: 71.16 kB / 0.5864 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004754/0.3483, allocations: 1.702 MB / 0.5881 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.3483, allocations: 4 kB / 0.5881 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3483, allocations: 4 kB / 0.5881 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3483, allocations: 7.984 kB / 0.5881 GB, free: 14.88 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004428/0.3528, allocations: 2.437 MB / 0.5904 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.3528, allocations: 3.938 kB / 0.5904 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003862/0.3532, allocations: 63.91 kB / 0.5905 GB, free: 12.29 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.004278/0.3575, allocations: 1.084 MB / 0.5916 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.356e-05/0.3575, allocations: 8 kB / 0.5916 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005755/0.3581, allocations: 100.8 kB / 0.5917 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3581, allocations: 0 / 0.5917 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03411/0.3923, allocations: 14.04 MB / 0.6054 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001505/0.3924, allocations: 156 kB / 0.6055 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.3926, allocations: 15.98 kB / 0.6055 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006628/0.3932, allocations: 59.94 kB / 0.6056 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003125/0.3936, allocations: 116.5 kB / 0.6057 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-05/0.3936, allocations: 23.98 kB / 0.6057 GB, free: 12.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003735/0.394, allocations: 354.8 kB / 0.6061 GB, free: 12.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.394, allocations: 0 / 0.6061 GB, free: 12.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009373/0.395, allocations: 339.6 kB / 0.6064 GB, free: 11.68 MB / 426.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.0001923/0.3952, allocations: 127.2 kB / 0.6065 GB, free: 11.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003913/0.3991, allocations: 1.568 MB / 0.6081 GB, free: 9.926 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3991, allocations: 0 / 0.6081 GB, free: 9.926 MB / 426.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/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1519:5-1519:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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]