Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/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/Modelica 3.2.3+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 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Running command: translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1509/0.1509, allocations: 12.21 MB / 27.47 MB, free: 0.9297 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009374/0.0009374, allocations: 95.52 kB / 31 MB, free: 4.535 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.608/1.608, allocations: 205.4 MB / 239.8 MB, free: 13.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 176.5 kB / 291 MB, free: 11.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4867/0.4867, allocations: 78.53 MB / 420.5 MB, free: 11.5 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009324/0.0009325, allocations: 28 kB / 0.4901 GB, free: 10.05 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2987, allocations: 69.23 MB / 0.5577 GB, free: 20.92 MB / 382.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003642/0.3024, allocations: 4.28 MB / 0.5619 GB, free: 16.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002639/0.3051, allocations: 1.229 MB / 0.5631 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005441/0.3057, allocations: 12 kB / 0.5631 GB, free: 15.37 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004053/0.3061, allocations: 107.3 kB / 0.5632 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006427/0.3067, allocations: 186.6 kB / 0.5634 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001158/0.3079, allocations: 0.5478 MB / 0.5639 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008262/0.3087, allocations: 0.7589 MB / 0.5647 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003029/0.3091, allocations: 172.8 kB / 0.5648 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003235/0.3094, allocations: 290.5 kB / 0.5651 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004154/0.3098, allocations: 386 kB / 0.5655 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.955e-05/0.3099, allocations: 36 kB / 0.5655 GB, free: 12.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002924/0.3102, allocations: 99.89 kB / 0.5656 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.905e-05/0.3103, allocations: 135.3 kB / 0.5657 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002679/0.3106, allocations: 383.4 kB / 0.5661 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006435/0.3113, allocations: 0.8598 MB / 0.5669 GB, free: 11.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3113, allocations: 0 / 0.5669 GB, free: 11.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3113, allocations: 0 / 0.5669 GB, free: 11.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.641e-05/0.3113, allocations: 0 / 0.5669 GB, free: 11.42 MB / 382.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.003905/0.3152, allocations: 1.451 MB / 0.5684 GB, free: 9.918 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3153, allocations: 11.98 kB / 0.5684 GB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002546/0.3178, allocations: 431.1 kB / 0.5688 GB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008254/0.3187, allocations: 0.4981 MB / 0.5693 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002363/0.3189, allocations: 201.8 kB / 0.5695 GB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.3191, allocations: 52 kB / 0.5695 GB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.3205, allocations: 0.7365 MB / 0.5702 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.3206, allocations: 8 kB / 0.5702 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.54e-05/0.3206, allocations: 20 kB / 0.5702 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.3207, allocations: 15.94 kB / 0.5703 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.322, allocations: 0.7157 MB / 0.571 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003606/0.3256, allocations: 2.168 MB / 0.5731 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007768/0.3334, allocations: 2.757 MB / 0.5758 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009862/0.3344, allocations: 0.5147 MB / 0.5763 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.617e-05/0.3345, allocations: 4.656 kB / 0.5763 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001106/0.3356, allocations: 0.5704 MB / 0.5768 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 5.28e-06/0.3357, allocations: 7.922 kB / 0.5768 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of matching and sorting (n=73): time 0.007746/0.3434, allocations: 2.838 MB / 0.5796 GB, free: 14.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.3435, allocations: 64.05 kB / 0.5797 GB, free: 13.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007092/0.3442, allocations: 0.5109 MB / 0.5802 GB, free: 13.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.993e-05/0.3443, allocations: 45.7 kB / 0.5802 GB, free: 13.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002577/0.3446, allocations: 324.6 kB / 0.5805 GB, free: 13.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002635/0.3449, allocations: 252.3 kB / 0.5808 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.345, allocations: 65.69 kB / 0.5808 GB, free: 12.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3452, allocations: 382.8 kB / 0.5812 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009614/0.3461, allocations: 445.8 kB / 0.5816 GB, free: 11.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.3472, allocations: 0.5375 MB / 0.5821 GB, free: 11.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009751/0.3569, allocations: 2.791 MB / 0.5849 GB, free: 8.531 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/0.357, allocations: 0 / 0.5849 GB, free: 8.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.008158/0.3651, allocations: 2.638 MB / 0.5874 GB, free: 5.871 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.3652, allocations: 4 kB / 0.5875 GB, free: 5.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.3652, allocations: 4 kB / 0.5875 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004452/0.3697, allocations: 1.182 MB / 0.5886 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005475/0.3703, allocations: 111.8 kB / 0.5887 GB, free: 4.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009665/0.3799, allocations: 4.484 MB / 0.5931 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008443/0.3808, allocations: 123.3 kB / 0.5932 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.274e-05/0.3809, allocations: 20 kB / 0.5932 GB, free: 15.81 MB / 414.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.0004106/0.3813, allocations: 213.7 kB / 0.5934 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.3815, allocations: 75.06 kB / 0.5935 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005246/0.3868, allocations: 1.956 MB / 0.5954 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.3868, allocations: 8 kB / 0.5954 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.3868, allocations: 0 / 0.5954 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.3868, allocations: 3.984 kB / 0.5954 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005386/0.3922, allocations: 2.617 MB / 0.598 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.3923, allocations: 3.938 kB / 0.598 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004062/0.3927, allocations: 75.91 kB / 0.5981 GB, free: 10.75 MB / 414.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.004616/0.3973, allocations: 1.249 MB / 0.5993 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.806e-05/0.3974, allocations: 19.98 kB / 0.5993 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006149/0.3981, allocations: 128.7 kB / 0.5994 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.3981, allocations: 0 / 0.5994 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004925/0.403, allocations: 2.222 MB / 0.6016 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002243/0.4033, allocations: 148.2 kB / 0.6017 GB, free: 6.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.4034, allocations: 16 kB / 0.6017 GB, free: 6.914 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007086/0.4041, allocations: 75.94 kB / 0.6018 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002952/0.4044, allocations: 120.4 kB / 0.6019 GB, free: 6.723 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.441e-05/0.4045, allocations: 20 kB / 0.602 GB, free: 6.703 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000407/0.4049, allocations: 346.8 kB / 0.6023 GB, free: 6.367 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4049, allocations: 0 / 0.6023 GB, free: 6.367 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007648/0.4057, allocations: 247.6 kB / 0.6025 GB, free: 6.125 MB / 414.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.0002109/0.4059, allocations: 123.7 kB / 0.6026 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004367/0.4103, allocations: 1.747 MB / 0.6043 GB, free: 4.191 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4103, allocations: 4 kB / 0.6043 GB, free: 4.188 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1497:5-1497:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/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]