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-master/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-master/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2145/0.2145, allocations: 12.59 MB / 28.22 MB, free: 0.7695 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.002135/0.002135, allocations: 111.4 kB / 31.84 MB, free: 3.891 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.304/3.304, allocations: 205.1 MB / 240.4 MB, free: 12.38 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.00352/0.003521, allocations: 184.5 kB / 290.7 MB, free: 13.39 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 1.005/1.005, allocations: 78.52 MB / 419.3 MB, free: 11.26 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.006697/0.006697, allocations: 133.8 kB / 0.5553 GB, free: 28.84 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2585, allocations: 68.12 MB / 0.6219 GB, free: 15.97 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.01098/0.2696, allocations: 4.426 MB / 0.6262 GB, free: 11.52 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005685/0.2754, allocations: 1.205 MB / 0.6274 GB, free: 10.31 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001097/0.2765, allocations: 8 kB / 0.6274 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001088/0.2777, allocations: 146.8 kB / 0.6275 GB, free: 10.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001883/0.2797, allocations: 234 kB / 0.6277 GB, free: 9.926 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002998/0.2827, allocations: 0.5683 MB / 0.6283 GB, free: 9.359 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002088/0.2848, allocations: 0.8056 MB / 0.6291 GB, free: 8.547 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007374/0.2856, allocations: 201.8 kB / 0.6293 GB, free: 8.332 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009694/0.2865, allocations: 334.5 kB / 0.6296 GB, free: 8.004 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001299/0.2879, allocations: 410.1 kB / 0.63 GB, free: 7.602 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003451/0.2882, allocations: 64 kB / 0.63 GB, free: 7.539 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008531/0.2891, allocations: 131.9 kB / 0.6302 GB, free: 7.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003785/0.2895, allocations: 171.3 kB / 0.6303 GB, free: 7.242 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001052/0.2906, allocations: 385.7 kB / 0.6307 GB, free: 6.863 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002408/0.293, allocations: 0.9138 MB / 0.6316 GB, free: 5.949 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.087e-05/0.2931, allocations: 0 / 0.6316 GB, free: 5.949 MB / 446.1 MB Notification: Performance of FrontEnd: time 7.193e-06/0.2931, allocations: 0 / 0.6316 GB, free: 5.949 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.618e-05/0.2931, allocations: 3.938 kB / 0.6316 GB, free: 5.945 MB / 446.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.009163/0.3023, allocations: 1.567 MB / 0.6331 GB, free: 4.324 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.977e-05/0.3024, allocations: 15.98 kB / 0.6331 GB, free: 4.309 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000366/0.3028, allocations: 98.7 kB / 0.6332 GB, free: 4.203 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005524/0.3084, allocations: 430.9 kB / 0.6337 GB, free: 3.781 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001515/0.3099, allocations: 0.4941 MB / 0.6341 GB, free: 3.246 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004232/0.3104, allocations: 197.8 kB / 0.6343 GB, free: 3.02 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002769/0.3107, allocations: 56 kB / 0.6344 GB, free: 2.965 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/0.3132, allocations: 0.6858 MB / 0.635 GB, free: 2.273 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.3132, allocations: 0 / 0.635 GB, free: 2.273 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.946e-05/0.3133, allocations: 20 kB / 0.6351 GB, free: 2.254 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.178e-05/0.3133, allocations: 19.94 kB / 0.6351 GB, free: 2.234 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002341/0.3157, allocations: 0.6766 MB / 0.6357 GB, free: 1.559 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006522/0.3222, allocations: 2.136 MB / 0.6378 GB, free: 15.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01306/0.3354, allocations: 2.262 MB / 0.64 GB, free: 12.96 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002552/0.338, allocations: 484.2 kB / 0.6405 GB, free: 12.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001907/0.3383, allocations: 12.64 kB / 0.6405 GB, free: 12.48 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002701/0.341, allocations: 0.5274 MB / 0.641 GB, free: 11.94 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 1.671e-05/0.3411, allocations: 3.984 kB / 0.641 GB, free: 11.94 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.01463/0.3557, allocations: 2.451 MB / 0.6434 GB, free: 9.418 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/0.356, allocations: 60.06 kB / 0.6435 GB, free: 9.344 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001857/0.3579, allocations: 0.5148 MB / 0.644 GB, free: 8.816 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002799/0.3582, allocations: 41.7 kB / 0.644 GB, free: 8.77 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007883/0.359, allocations: 324.6 kB / 0.6443 GB, free: 8.449 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009347/0.36, allocations: 252.3 kB / 0.6446 GB, free: 8.199 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007829/0.3608, allocations: 118.7 kB / 0.6447 GB, free: 8.078 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004601/0.3613, allocations: 382.8 kB / 0.6451 GB, free: 7.695 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001992/0.3633, allocations: 401.8 kB / 0.6454 GB, free: 7.305 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002148/0.3655, allocations: 0.4907 MB / 0.6459 GB, free: 6.781 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01784/0.3834, allocations: 2.521 MB / 0.6484 GB, free: 4.238 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.606e-05/0.3835, allocations: 3.938 kB / 0.6484 GB, free: 4.234 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.01223/0.3958, allocations: 2.216 MB / 0.6505 GB, free: 1.996 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.48e-05/0.396, allocations: 14.75 kB / 0.6506 GB, free: 1.984 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.019e-05/0.396, allocations: 0 / 0.6506 GB, free: 1.984 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006468/0.4025, allocations: 0.9937 MB / 0.6515 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009916/0.4036, allocations: 115.8 kB / 0.6516 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01692/0.4206, allocations: 4.495 MB / 0.656 GB, free: 12.23 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/0.4221, allocations: 99.31 kB / 0.6561 GB, free: 12.14 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002762/0.4224, allocations: 31.94 kB / 0.6562 GB, free: 12.11 MB / 478.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.001097/0.4235, allocations: 205.7 kB / 0.6564 GB, free: 11.89 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004699/0.424, allocations: 75.06 kB / 0.6564 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00818/0.4322, allocations: 1.694 MB / 0.6581 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.7e-05/0.4323, allocations: 8 kB / 0.6581 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/0.4323, allocations: 3.938 kB / 0.6581 GB, free: 10.09 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/0.4323, allocations: 3.984 kB / 0.6581 GB, free: 10.09 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008864/0.4412, allocations: 2.439 MB / 0.6605 GB, free: 7.559 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/0.4413, allocations: 0 / 0.6605 GB, free: 7.559 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006892/0.442, allocations: 71.89 kB / 0.6605 GB, free: 7.488 MB / 478.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.007034/0.4491, allocations: 1.064 MB / 0.6616 GB, free: 6.414 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002447/0.4494, allocations: 12.19 kB / 0.6616 GB, free: 6.402 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009784/0.4504, allocations: 104.8 kB / 0.6617 GB, free: 6.297 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.4504, allocations: 3.938 kB / 0.6617 GB, free: 6.293 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007739/0.4581, allocations: 2.008 MB / 0.6637 GB, free: 4.258 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005624/0.4588, allocations: 156 kB / 0.6638 GB, free: 4.086 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/0.4591, allocations: 19.92 kB / 0.6638 GB, free: 4.066 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.4603, allocations: 55.94 kB / 0.6639 GB, free: 4.012 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004964/0.4608, allocations: 120.5 kB / 0.664 GB, free: 3.895 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.4609, allocations: 20 kB / 0.664 GB, free: 3.875 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008285/0.4618, allocations: 358.8 kB / 0.6644 GB, free: 3.527 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4618, allocations: 3.938 kB / 0.6644 GB, free: 3.523 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001753/0.4635, allocations: 231.7 kB / 0.6646 GB, free: 3.297 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.0128/0.4764, allocations: 2.568 MB / 0.6671 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01005/0.4865, allocations: 1.599 MB / 0.6687 GB, free: 15.04 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.377e-05/0.4867, allocations: 0 / 0.6687 GB, free: 15.04 MB / 494.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/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]