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.001294/0.001294, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.29/1.29, allocations: 222.9 MB / 240.1 MB, free: 4.566 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.001399/0.001399, allocations: 184.5 kB / 290.4 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4325/0.4325, allocations: 78.54 MB / 419.1 MB, free: 3.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 79.81 kB / 0.5543 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2957, allocations: 68.17 MB / 0.6208 GB, free: 9.797 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003665/0.2994, allocations: 4.363 MB / 0.6251 GB, free: 5.863 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.3013, allocations: 1.235 MB / 0.6263 GB, free: 4.625 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002518/0.3016, allocations: 8 kB / 0.6263 GB, free: 4.617 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003105/0.3019, allocations: 138.8 kB / 0.6264 GB, free: 4.48 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004451/0.3024, allocations: 266 kB / 0.6267 GB, free: 4.219 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009744/0.3034, allocations: 0.5815 MB / 0.6273 GB, free: 3.641 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005174/0.3039, allocations: 0.8018 MB / 0.628 GB, free: 2.836 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002491/0.3041, allocations: 209.7 kB / 0.6282 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002167/0.3044, allocations: 330.5 kB / 0.6286 GB, free: 2.297 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003893/0.3048, allocations: 418 kB / 0.629 GB, free: 1.887 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.197e-05/0.3048, allocations: 64 kB / 0.629 GB, free: 1.824 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002392/0.3051, allocations: 124 kB / 0.6291 GB, free: 1.703 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.073e-05/0.3052, allocations: 171.2 kB / 0.6293 GB, free: 1.535 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002062/0.3054, allocations: 389.7 kB / 0.6297 GB, free: 1.152 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005856/0.306, allocations: 0.9124 MB / 0.6306 GB, free: 248 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.306, allocations: 0 / 0.6306 GB, free: 248 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.306, allocations: 4 kB / 0.6306 GB, free: 244 kB / 430.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.306, allocations: 0 / 0.6306 GB, free: 244 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.004039/0.3101, allocations: 1.563 MB / 0.6321 GB, free: 14.62 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3101, allocations: 8.031 kB / 0.6321 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002427/0.3126, allocations: 431 kB / 0.6325 GB, free: 14.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006688/0.3132, allocations: 0.4904 MB / 0.633 GB, free: 13.66 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002181/0.3135, allocations: 201.8 kB / 0.6332 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-05/0.3136, allocations: 55.98 kB / 0.6332 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.3149, allocations: 0.6858 MB / 0.6339 GB, free: 12.69 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.3149, allocations: 4 kB / 0.6339 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.228e-05/0.315, allocations: 24 kB / 0.6339 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.315, allocations: 15.94 kB / 0.634 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.3164, allocations: 0.6727 MB / 0.6346 GB, free: 11.97 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003365/0.3197, allocations: 2.14 MB / 0.6367 GB, free: 9.742 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007422/0.3272, allocations: 2.265 MB / 0.6389 GB, free: 7.359 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009947/0.3282, allocations: 483.1 kB / 0.6394 GB, free: 6.887 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.922e-05/0.3283, allocations: 8.656 kB / 0.6394 GB, free: 6.879 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001099/0.3294, allocations: 0.5313 MB / 0.6399 GB, free: 6.332 MB / 446.1 MB Notification: Performance of pre-optimization done (n=73): time 3.296e-06/0.3294, allocations: 0 / 0.6399 GB, free: 6.332 MB / 446.1 MB Notification: Performance of matching and sorting (n=73): time 0.006727/0.3362, allocations: 2.455 MB / 0.6423 GB, free: 3.809 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.3362, allocations: 64 kB / 0.6424 GB, free: 3.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000574/0.3368, allocations: 0.5109 MB / 0.6429 GB, free: 3.207 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.03e-05/0.3369, allocations: 41.7 kB / 0.6429 GB, free: 3.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002338/0.3371, allocations: 324.6 kB / 0.6432 GB, free: 2.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002228/0.3374, allocations: 248.3 kB / 0.6434 GB, free: 2.594 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002195/0.3376, allocations: 122.6 kB / 0.6436 GB, free: 2.469 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.3378, allocations: 382.8 kB / 0.6439 GB, free: 2.086 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008355/0.3386, allocations: 405.8 kB / 0.6443 GB, free: 1.688 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008751/0.3395, allocations: 0.4907 MB / 0.6448 GB, free: 1.172 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008349/0.3478, allocations: 2.518 MB / 0.6472 GB, free: 14.62 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3479, allocations: 0 / 0.6472 GB, free: 14.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006695/0.3546, allocations: 2.212 MB / 0.6494 GB, free: 12.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.3546, allocations: 8 kB / 0.6494 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.3546, allocations: 4 kB / 0.6494 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003721/0.3584, allocations: 1 MB / 0.6504 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004925/0.3589, allocations: 111.8 kB / 0.6505 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00867/0.3676, allocations: 4.489 MB / 0.6549 GB, free: 6.645 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007514/0.3683, allocations: 111.2 kB / 0.655 GB, free: 6.535 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.99e-05/0.3684, allocations: 24 kB / 0.655 GB, free: 6.512 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.0003386/0.3688, allocations: 214.3 kB / 0.6552 GB, free: 6.297 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.3689, allocations: 71.16 kB / 0.6553 GB, free: 6.227 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004486/0.3734, allocations: 1.698 MB / 0.6569 GB, free: 4.512 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.3734, allocations: 12 kB / 0.657 GB, free: 4.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3734, allocations: 0 / 0.657 GB, free: 4.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.3734, allocations: 7.922 kB / 0.657 GB, free: 4.492 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004367/0.3778, allocations: 2.439 MB / 0.6593 GB, free: 1.961 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3778, allocations: 0 / 0.6593 GB, free: 1.961 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003648/0.3782, allocations: 67.84 kB / 0.6594 GB, free: 1.895 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.003938/0.3821, allocations: 1.073 MB / 0.6605 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.96e-05/0.3822, allocations: 8 kB / 0.6605 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005182/0.3827, allocations: 104.7 kB / 0.6606 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3827, allocations: 0 / 0.6606 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004153/0.3869, allocations: 2.008 MB / 0.6625 GB, free: 14.66 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.3871, allocations: 148.2 kB / 0.6627 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.3872, allocations: 19.94 kB / 0.6627 GB, free: 14.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005745/0.3878, allocations: 55.94 kB / 0.6627 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002834/0.3881, allocations: 124.5 kB / 0.6629 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.722e-05/0.3881, allocations: 20 kB / 0.6629 GB, free: 14.28 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003782/0.3885, allocations: 350.8 kB / 0.6632 GB, free: 13.94 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3885, allocations: 0 / 0.6632 GB, free: 13.94 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007083/0.3892, allocations: 239.7 kB / 0.6634 GB, free: 13.71 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.0002048/0.3895, allocations: 123.1 kB / 0.6636 GB, free: 13.58 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003856/0.3933, allocations: 1.572 MB / 0.6651 GB, free: 11.95 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.3933, allocations: 0 / 0.6651 GB, free: 11.95 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:3522:9-3522: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:1549:5-1549:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:804:5-804:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]