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.08146/0.08146, allocations: 12.59 MB / 28.22 MB, free: 0.7578 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.001188/0.001188, allocations: 115.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 1.282/1.282, allocations: 205.1 MB / 240.4 MB, free: 12.36 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.001396/0.001396, allocations: 184.5 kB / 290.7 MB, free: 13.4 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4022/0.4022, allocations: 78.51 MB / 419.3 MB, free: 11.27 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.00364/0.003641, allocations: 136.4 kB / 0.5554 GB, free: 28.78 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1067, allocations: 68.13 MB / 0.6219 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005314/0.1121, allocations: 4.428 MB / 0.6262 GB, free: 11.53 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.1145, allocations: 1.205 MB / 0.6274 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002556/0.1148, allocations: 4 kB / 0.6274 GB, free: 10.31 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003734/0.1152, allocations: 150.8 kB / 0.6275 GB, free: 10.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005139/0.1157, allocations: 230 kB / 0.6278 GB, free: 9.938 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00127/0.117, allocations: 0.5761 MB / 0.6283 GB, free: 9.363 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008774/0.1179, allocations: 0.8018 MB / 0.6291 GB, free: 8.555 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003278/0.1182, allocations: 198 kB / 0.6293 GB, free: 8.344 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003457/0.1186, allocations: 346.4 kB / 0.6296 GB, free: 8.004 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000503/0.1191, allocations: 406.1 kB / 0.63 GB, free: 7.605 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.551e-05/0.1192, allocations: 64 kB / 0.6301 GB, free: 7.543 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003032/0.1195, allocations: 124 kB / 0.6302 GB, free: 7.422 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001564/0.1196, allocations: 175.2 kB / 0.6303 GB, free: 7.25 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003549/0.12, allocations: 397.7 kB / 0.6307 GB, free: 6.859 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001021/0.121, allocations: 0.914 MB / 0.6316 GB, free: 5.941 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.121, allocations: 0 / 0.6316 GB, free: 5.941 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1211, allocations: 0 / 0.6316 GB, free: 5.941 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.1211, allocations: 3.938 kB / 0.6316 GB, free: 5.938 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.004296/0.1254, allocations: 1.578 MB / 0.6332 GB, free: 4.305 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.1254, allocations: 11.98 kB / 0.6332 GB, free: 4.293 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/0.1256, allocations: 102.7 kB / 0.6333 GB, free: 4.184 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002498/0.1281, allocations: 431.4 kB / 0.6337 GB, free: 3.762 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006856/0.1288, allocations: 0.5025 MB / 0.6342 GB, free: 3.219 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/0.129, allocations: 197.8 kB / 0.6344 GB, free: 2.992 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.743e-05/0.1291, allocations: 52 kB / 0.6344 GB, free: 2.941 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.1306, allocations: 0.6936 MB / 0.6351 GB, free: 2.242 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.1306, allocations: 3.938 kB / 0.6351 GB, free: 2.238 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.01e-05/0.1307, allocations: 20 kB / 0.6351 GB, free: 2.219 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.1307, allocations: 15.94 kB / 0.6351 GB, free: 2.203 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.1321, allocations: 0.6727 MB / 0.6358 GB, free: 1.531 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003705/0.1359, allocations: 2.145 MB / 0.6379 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007999/0.1439, allocations: 2.261 MB / 0.6401 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.145, allocations: 484.5 kB / 0.6406 GB, free: 12.46 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.006e-05/0.1451, allocations: 12.64 kB / 0.6406 GB, free: 12.45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001232/0.1463, allocations: 0.5235 MB / 0.6411 GB, free: 11.91 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 3.106e-06/0.1463, allocations: 0 / 0.6411 GB, free: 11.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007414/0.1538, allocations: 2.463 MB / 0.6435 GB, free: 9.375 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.475e-05/0.1539, allocations: 60.06 kB / 0.6435 GB, free: 9.301 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006669/0.1545, allocations: 0.5031 MB / 0.644 GB, free: 8.785 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.88e-05/0.1546, allocations: 45.69 kB / 0.6441 GB, free: 8.734 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002825/0.1549, allocations: 329.1 kB / 0.6444 GB, free: 8.41 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002906/0.1552, allocations: 269.7 kB / 0.6446 GB, free: 8.145 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002432/0.1555, allocations: 122.6 kB / 0.6448 GB, free: 8.02 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002079/0.1557, allocations: 378.8 kB / 0.6451 GB, free: 7.641 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009222/0.1566, allocations: 401.8 kB / 0.6455 GB, free: 7.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009978/0.1576, allocations: 0.4946 MB / 0.646 GB, free: 6.723 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009119/0.1667, allocations: 2.514 MB / 0.6484 GB, free: 4.188 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.1668, allocations: 7.875 kB / 0.6485 GB, free: 4.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007269/0.1741, allocations: 2.216 MB / 0.6506 GB, free: 1.941 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.1741, allocations: 15.94 kB / 0.6506 GB, free: 1.926 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.1741, allocations: 0 / 0.6506 GB, free: 1.926 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004058/0.1782, allocations: 0.9975 MB / 0.6516 GB, free: 0.918 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000535/0.1787, allocations: 107.8 kB / 0.6517 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/0.1888, allocations: 4.514 MB / 0.6561 GB, free: 12.17 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007829/0.1897, allocations: 103.4 kB / 0.6562 GB, free: 12.07 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.457e-05/0.1898, allocations: 27.94 kB / 0.6562 GB, free: 12.04 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.0004067/0.1902, allocations: 201.6 kB / 0.6564 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.1904, allocations: 87.41 kB / 0.6565 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004855/0.1952, allocations: 1.686 MB / 0.6582 GB, free: 10.04 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.1953, allocations: 8 kB / 0.6582 GB, free: 10.03 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.1953, allocations: 3.938 kB / 0.6582 GB, free: 10.03 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.1953, allocations: 7.984 kB / 0.6582 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004788/0.2001, allocations: 2.431 MB / 0.6606 GB, free: 7.496 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.2001, allocations: 4 kB / 0.6606 GB, free: 7.492 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003833/0.2005, allocations: 71.91 kB / 0.6606 GB, free: 7.422 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.004222/0.2047, allocations: 1.056 MB / 0.6617 GB, free: 6.355 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.433e-05/0.2048, allocations: 20.17 kB / 0.6617 GB, free: 6.336 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005645/0.2054, allocations: 100.7 kB / 0.6618 GB, free: 6.234 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.2054, allocations: 7.938 kB / 0.6618 GB, free: 6.227 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004612/0.21, allocations: 2.016 MB / 0.6638 GB, free: 4.184 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002222/0.2103, allocations: 160.5 kB / 0.6639 GB, free: 4.008 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.2104, allocations: 15.94 kB / 0.6639 GB, free: 3.992 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006132/0.211, allocations: 59.94 kB / 0.664 GB, free: 3.934 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003074/0.2114, allocations: 120.5 kB / 0.6641 GB, free: 3.816 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.54e-05/0.2114, allocations: 20 kB / 0.6641 GB, free: 3.797 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004342/0.2119, allocations: 354.8 kB / 0.6644 GB, free: 3.453 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2119, allocations: 7.938 kB / 0.6645 GB, free: 3.445 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007011/0.2126, allocations: 227.8 kB / 0.6647 GB, free: 3.223 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.004997/0.2176, allocations: 2.58 MB / 0.6672 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004143/0.2218, allocations: 1.584 MB / 0.6687 GB, free: 14.96 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.2218, allocations: 4.062 kB / 0.6687 GB, free: 14.96 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: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]