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.00135/0.00135, allocations: 102.1 kB / 16.41 MB, free: 6.5 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.506/1.506, allocations: 222.9 MB / 240.1 MB, free: 4.523 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.002595/0.002595, allocations: 184.5 kB / 290.4 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5366/0.5366, allocations: 78.54 MB / 419.1 MB, free: 3.125 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 83.88 kB / 0.5543 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4238/0.4256, allocations: 68.17 MB / 0.6208 GB, free: 9.652 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004446/0.4301, allocations: 4.368 MB / 0.6251 GB, free: 5.859 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.4324, allocations: 1.232 MB / 0.6263 GB, free: 4.625 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003063/0.4327, allocations: 8 kB / 0.6263 GB, free: 4.617 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003704/0.4331, allocations: 142.8 kB / 0.6264 GB, free: 4.477 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004783/0.4336, allocations: 238 kB / 0.6267 GB, free: 4.242 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.4347, allocations: 0.5699 MB / 0.6272 GB, free: 3.676 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005754/0.4353, allocations: 0.8056 MB / 0.628 GB, free: 2.867 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002925/0.4356, allocations: 201.8 kB / 0.6282 GB, free: 2.66 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002215/0.4359, allocations: 338.5 kB / 0.6285 GB, free: 2.328 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003941/0.4363, allocations: 418 kB / 0.6289 GB, free: 1.918 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.228e-05/0.4364, allocations: 60 kB / 0.629 GB, free: 1.859 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002885/0.4366, allocations: 131.9 kB / 0.6291 GB, free: 1.73 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.838e-05/0.4368, allocations: 163.3 kB / 0.6293 GB, free: 1.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002314/0.437, allocations: 389.7 kB / 0.6296 GB, free: 1.188 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006624/0.4377, allocations: 0.9164 MB / 0.6305 GB, free: 280 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.4377, allocations: 4 kB / 0.6305 GB, free: 276 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4377, allocations: 0 / 0.6305 GB, free: 276 kB / 430.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.4377, allocations: 0 / 0.6305 GB, free: 276 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.004464/0.4422, allocations: 1.556 MB / 0.6321 GB, free: 14.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.4422, allocations: 16.03 kB / 0.6321 GB, free: 14.65 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002582/0.4448, allocations: 423.1 kB / 0.6325 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006892/0.4455, allocations: 0.502 MB / 0.633 GB, free: 13.69 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002315/0.4458, allocations: 201.8 kB / 0.6332 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.4459, allocations: 52 kB / 0.6332 GB, free: 13.41 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.4473, allocations: 0.6936 MB / 0.6339 GB, free: 12.71 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.4474, allocations: 0 / 0.6339 GB, free: 12.71 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.982e-05/0.4474, allocations: 20 kB / 0.6339 GB, free: 12.69 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.4475, allocations: 15.94 kB / 0.6339 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.4489, allocations: 0.6727 MB / 0.6346 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003729/0.4527, allocations: 2.136 MB / 0.6367 GB, free: 9.777 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007989/0.4607, allocations: 2.264 MB / 0.6389 GB, free: 7.398 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00109/0.4618, allocations: 487.1 kB / 0.6393 GB, free: 6.922 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.55e-05/0.4619, allocations: 8.656 kB / 0.6393 GB, free: 6.914 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001187/0.4631, allocations: 0.5196 MB / 0.6399 GB, free: 6.379 MB / 446.1 MB Notification: Performance of pre-optimization done (n=73): time 3.296e-06/0.4631, allocations: 0 / 0.6399 GB, free: 6.379 MB / 446.1 MB Notification: Performance of matching and sorting (n=73): time 0.007441/0.4705, allocations: 2.459 MB / 0.6423 GB, free: 3.852 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.46e-05/0.4707, allocations: 64.05 kB / 0.6423 GB, free: 3.773 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006721/0.4713, allocations: 0.5031 MB / 0.6428 GB, free: 3.258 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.468e-05/0.4714, allocations: 41.7 kB / 0.6428 GB, free: 3.211 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002831/0.4717, allocations: 328.6 kB / 0.6432 GB, free: 2.887 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002625/0.472, allocations: 252.3 kB / 0.6434 GB, free: 2.637 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002325/0.4722, allocations: 118.7 kB / 0.6435 GB, free: 2.516 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.4724, allocations: 390.7 kB / 0.6439 GB, free: 2.125 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/0.4738, allocations: 401.8 kB / 0.6443 GB, free: 1.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/0.4753, allocations: 0.4984 MB / 0.6448 GB, free: 1.207 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0154/0.4907, allocations: 2.514 MB / 0.6472 GB, free: 14.66 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/0.4908, allocations: 0 / 0.6472 GB, free: 14.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.01151/0.5023, allocations: 2.216 MB / 0.6494 GB, free: 12.43 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/0.5024, allocations: 8 kB / 0.6494 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.5025, allocations: 0 / 0.6494 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006874/0.5093, allocations: 1.005 MB / 0.6504 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008192/0.5102, allocations: 107.8 kB / 0.6505 GB, free: 11.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01347/0.5237, allocations: 4.499 MB / 0.6549 GB, free: 6.676 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.5249, allocations: 107.2 kB / 0.655 GB, free: 6.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.5251, allocations: 20 kB / 0.655 GB, free: 6.551 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.0005248/0.5256, allocations: 211.8 kB / 0.6552 GB, free: 6.336 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002158/0.5258, allocations: 71.34 kB / 0.6553 GB, free: 6.266 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005049/0.5309, allocations: 1.698 MB / 0.6569 GB, free: 4.551 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.5309, allocations: 11.94 kB / 0.6569 GB, free: 4.539 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/0.5309, allocations: 4 kB / 0.6569 GB, free: 4.535 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.745e-05/0.531, allocations: 7.922 kB / 0.6569 GB, free: 4.527 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005072/0.536, allocations: 2.435 MB / 0.6593 GB, free: 2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.5361, allocations: 0 / 0.6593 GB, free: 2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004152/0.5365, allocations: 67.91 kB / 0.6594 GB, free: 1.934 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.004311/0.5408, allocations: 1.073 MB / 0.6604 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.541, allocations: 15.98 kB / 0.6604 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005829/0.5416, allocations: 100.7 kB / 0.6605 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5416, allocations: 0 / 0.6605 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004857/0.5464, allocations: 2.012 MB / 0.6625 GB, free: 14.69 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000308/0.5468, allocations: 144.2 kB / 0.6626 GB, free: 14.53 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001765/0.547, allocations: 23.94 kB / 0.6627 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007001/0.5477, allocations: 55.94 kB / 0.6627 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003299/0.548, allocations: 116.5 kB / 0.6628 GB, free: 14.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.578e-05/0.5481, allocations: 27.98 kB / 0.6629 GB, free: 14.31 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004922/0.5486, allocations: 350.8 kB / 0.6632 GB, free: 13.97 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5486, allocations: 0 / 0.6632 GB, free: 13.97 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008692/0.5495, allocations: 235.7 kB / 0.6634 GB, free: 13.74 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.0002741/0.5497, allocations: 125.4 kB / 0.6635 GB, free: 13.61 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004343/0.5541, allocations: 1.575 MB / 0.6651 GB, free: 11.98 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5541, allocations: 0 / 0.6651 GB, free: 11.98 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/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1548:5-1548:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/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]