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.09424/0.09424, allocations: 12.59 MB / 28.22 MB, free: 0.7227 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.00136/0.00136, allocations: 107.4 kB / 31.83 MB, free: 3.863 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.365/1.365, 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.001456/0.001456, allocations: 183.3 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 0.4784/0.4784, allocations: 78.51 MB / 419.3 MB, free: 11.22 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.002775/0.002775, allocations: 146.2 kB / 0.5554 GB, free: 28.77 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1261, allocations: 68.13 MB / 0.6219 GB, free: 15.95 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005418/0.1315, allocations: 4.419 MB / 0.6262 GB, free: 11.51 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003271/0.1348, allocations: 1.209 MB / 0.6274 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006319/0.1355, allocations: 8 kB / 0.6274 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004702/0.136, allocations: 138.8 kB / 0.6275 GB, free: 10.15 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008827/0.1369, allocations: 266 kB / 0.6278 GB, free: 9.887 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001359/0.1383, allocations: 0.5723 MB / 0.6283 GB, free: 9.316 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001112/0.1394, allocations: 0.8096 MB / 0.6291 GB, free: 8.5 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003453/0.1398, allocations: 193.8 kB / 0.6293 GB, free: 8.293 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005308/0.1403, allocations: 338.5 kB / 0.6296 GB, free: 7.961 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005728/0.1409, allocations: 410.1 kB / 0.63 GB, free: 7.559 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001551/0.141, allocations: 60 kB / 0.6301 GB, free: 7.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000371/0.1414, allocations: 131.9 kB / 0.6302 GB, free: 7.371 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002777/0.1417, allocations: 167.3 kB / 0.6304 GB, free: 7.207 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004075/0.1421, allocations: 397.7 kB / 0.6307 GB, free: 6.816 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.1432, allocations: 0.9122 MB / 0.6316 GB, free: 5.902 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.1433, allocations: 3.938 kB / 0.6316 GB, free: 5.898 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1433, allocations: 0 / 0.6316 GB, free: 5.898 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.719e-05/0.1433, allocations: 0 / 0.6316 GB, free: 5.898 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.004718/0.148, allocations: 1.563 MB / 0.6332 GB, free: 4.281 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.1481, allocations: 11.98 kB / 0.6332 GB, free: 4.27 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000136/0.1482, allocations: 102.7 kB / 0.6333 GB, free: 4.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002697/0.1509, allocations: 418.9 kB / 0.6337 GB, free: 3.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008142/0.1518, allocations: 0.502 MB / 0.6342 GB, free: 3.207 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/0.152, allocations: 193.8 kB / 0.6344 GB, free: 2.984 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.1521, allocations: 56 kB / 0.6344 GB, free: 2.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.1536, allocations: 0.6975 MB / 0.6351 GB, free: 2.227 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.1536, allocations: 0 / 0.6351 GB, free: 2.227 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.1e-05/0.1537, allocations: 20 kB / 0.6351 GB, free: 2.207 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.1537, allocations: 19.94 kB / 0.6351 GB, free: 2.188 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001445/0.1552, allocations: 0.6727 MB / 0.6358 GB, free: 1.516 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004195/0.1594, allocations: 2.133 MB / 0.6379 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008098/0.1675, allocations: 2.27 MB / 0.6401 GB, free: 12.92 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001169/0.1687, allocations: 480.5 kB / 0.6405 GB, free: 12.45 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001872/0.169, allocations: 12.64 kB / 0.6406 GB, free: 12.44 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001466/0.1704, allocations: 0.5274 MB / 0.6411 GB, free: 11.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 3.456e-06/0.1705, allocations: 4 kB / 0.6411 GB, free: 11.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007464/0.1779, allocations: 2.451 MB / 0.6435 GB, free: 9.371 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.178, allocations: 64.06 kB / 0.6435 GB, free: 9.293 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006535/0.1787, allocations: 0.5069 MB / 0.644 GB, free: 8.773 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.1788, allocations: 45.69 kB / 0.6441 GB, free: 8.723 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003608/0.1792, allocations: 320.6 kB / 0.6444 GB, free: 8.406 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002541/0.1794, allocations: 252.4 kB / 0.6446 GB, free: 8.156 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002472/0.1797, allocations: 122.7 kB / 0.6447 GB, free: 8.031 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1799, allocations: 378.8 kB / 0.6451 GB, free: 7.652 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008865/0.1808, allocations: 401.8 kB / 0.6455 GB, free: 7.262 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009759/0.1818, allocations: 0.4946 MB / 0.646 GB, free: 6.734 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009332/0.1911, allocations: 2.514 MB / 0.6484 GB, free: 4.199 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.1912, allocations: 3.938 kB / 0.6484 GB, free: 4.195 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007214/0.1984, allocations: 2.216 MB / 0.6506 GB, free: 1.957 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.1984, allocations: 6.969 kB / 0.6506 GB, free: 1.953 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.1985, allocations: 4 kB / 0.6506 GB, free: 1.949 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00402/0.2025, allocations: 1.001 MB / 0.6516 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006289/0.2032, allocations: 103.8 kB / 0.6517 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01016/0.2133, allocations: 4.521 MB / 0.6561 GB, free: 12.18 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008945/0.2143, allocations: 99.31 kB / 0.6562 GB, free: 12.08 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002295/0.2145, allocations: 20 kB / 0.6562 GB, free: 12.06 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.0003782/0.2149, allocations: 201.8 kB / 0.6564 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002708/0.2152, allocations: 79.05 kB / 0.6565 GB, free: 11.78 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00478/0.22, allocations: 1.694 MB / 0.6581 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.22, allocations: 8 kB / 0.6581 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.22, allocations: 7.938 kB / 0.6581 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.22, allocations: 3.984 kB / 0.6581 GB, free: 10.04 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004891/0.2249, allocations: 2.431 MB / 0.6605 GB, free: 7.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.225, allocations: 0 / 0.6605 GB, free: 7.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000494/0.2255, allocations: 71.91 kB / 0.6606 GB, free: 7.449 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.004105/0.2296, allocations: 1.068 MB / 0.6616 GB, free: 6.371 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.411e-05/0.2297, allocations: 15.98 kB / 0.6616 GB, free: 6.355 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005583/0.2302, allocations: 100.8 kB / 0.6617 GB, free: 6.254 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2303, allocations: 0 / 0.6617 GB, free: 6.254 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004287/0.2346, allocations: 2.008 MB / 0.6637 GB, free: 4.219 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001919/0.2348, allocations: 156 kB / 0.6638 GB, free: 4.047 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.2349, allocations: 16.12 kB / 0.6639 GB, free: 4.031 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005999/0.2355, allocations: 63.94 kB / 0.6639 GB, free: 3.969 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003759/0.2359, allocations: 128.4 kB / 0.664 GB, free: 3.844 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.489e-05/0.2359, allocations: 23.94 kB / 0.6641 GB, free: 3.82 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003857/0.2363, allocations: 346.8 kB / 0.6644 GB, free: 3.484 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2363, allocations: 0 / 0.6644 GB, free: 3.484 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008335/0.2372, allocations: 239.7 kB / 0.6646 GB, free: 3.25 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.004893/0.2421, allocations: 2.572 MB / 0.6671 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004134/0.2462, allocations: 1.587 MB / 0.6687 GB, free: 15 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.2462, allocations: 0 / 0.6687 GB, free: 15 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]