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.08618/0.08618, allocations: 12.6 MB / 28.24 MB, free: 84 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 111.4 kB / 31.83 MB, free: 3.414 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.419/1.419, 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.001557/0.001557, allocations: 192.5 kB / 290.7 MB, free: 13.38 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4499/0.4499, allocations: 78.5 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.002622/0.002622, allocations: 135.3 kB / 0.5553 GB, free: 28.81 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1389, allocations: 68.13 MB / 0.6219 GB, free: 15.94 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005406/0.1444, allocations: 4.417 MB / 0.6262 GB, free: 11.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002346/0.1468, allocations: 1.209 MB / 0.6274 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002355/0.147, allocations: 4 kB / 0.6274 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004127/0.1474, allocations: 150.8 kB / 0.6275 GB, free: 10.14 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005494/0.148, allocations: 258 kB / 0.6278 GB, free: 9.883 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001233/0.1493, allocations: 0.5763 MB / 0.6283 GB, free: 9.309 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000766/0.1501, allocations: 0.8057 MB / 0.6291 GB, free: 8.496 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003209/0.1504, allocations: 198 kB / 0.6293 GB, free: 8.285 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000298/0.1507, allocations: 334.5 kB / 0.6296 GB, free: 7.957 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004621/0.1512, allocations: 414.1 kB / 0.63 GB, free: 7.551 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.542e-05/0.1513, allocations: 67.94 kB / 0.6301 GB, free: 7.484 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002957/0.1516, allocations: 135.9 kB / 0.6302 GB, free: 7.352 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.1517, allocations: 163.3 kB / 0.6304 GB, free: 7.191 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003219/0.1521, allocations: 389.7 kB / 0.6307 GB, free: 6.809 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009382/0.153, allocations: 0.9179 MB / 0.6316 GB, free: 5.887 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.153, allocations: 3.938 kB / 0.6316 GB, free: 5.883 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.153, allocations: 0 / 0.6316 GB, free: 5.883 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.153, allocations: 0 / 0.6316 GB, free: 5.883 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.004359/0.1574, allocations: 1.578 MB / 0.6332 GB, free: 4.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.1575, allocations: 11.98 kB / 0.6332 GB, free: 4.238 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001214/0.1576, allocations: 102.7 kB / 0.6333 GB, free: 4.129 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002542/0.1601, allocations: 435.3 kB / 0.6337 GB, free: 3.703 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006373/0.1608, allocations: 0.5025 MB / 0.6342 GB, free: 3.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002285/0.161, allocations: 197.8 kB / 0.6344 GB, free: 2.934 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.1611, allocations: 55.98 kB / 0.6344 GB, free: 2.879 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.1625, allocations: 0.6897 MB / 0.6351 GB, free: 2.184 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.1625, allocations: 0 / 0.6351 GB, free: 2.184 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.799e-05/0.1626, allocations: 20 kB / 0.6351 GB, free: 2.164 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.1626, allocations: 23.94 kB / 0.6352 GB, free: 2.141 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.164, allocations: 0.6727 MB / 0.6358 GB, free: 1.469 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003511/0.1676, allocations: 2.141 MB / 0.6379 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007717/0.1753, allocations: 2.261 MB / 0.6401 GB, free: 12.87 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009421/0.1762, allocations: 480.5 kB / 0.6406 GB, free: 12.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.939e-05/0.1763, allocations: 12.64 kB / 0.6406 GB, free: 12.39 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001107/0.1774, allocations: 0.5274 MB / 0.6411 GB, free: 11.85 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 4.308e-06/0.1775, allocations: 11.98 kB / 0.6411 GB, free: 11.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.0069/0.1844, allocations: 2.451 MB / 0.6435 GB, free: 9.316 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.1844, allocations: 68 kB / 0.6436 GB, free: 9.234 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005509/0.185, allocations: 0.507 MB / 0.6441 GB, free: 8.715 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.363e-05/0.1851, allocations: 41.7 kB / 0.6441 GB, free: 8.668 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002258/0.1853, allocations: 329.1 kB / 0.6444 GB, free: 8.344 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000212/0.1855, allocations: 261.7 kB / 0.6447 GB, free: 8.086 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.1857, allocations: 122.6 kB / 0.6448 GB, free: 7.961 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1859, allocations: 382.8 kB / 0.6452 GB, free: 7.578 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008509/0.1868, allocations: 405.8 kB / 0.6455 GB, free: 7.184 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009241/0.1877, allocations: 0.4907 MB / 0.646 GB, free: 6.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008746/0.1964, allocations: 2.518 MB / 0.6485 GB, free: 4.121 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.1965, allocations: 3.938 kB / 0.6485 GB, free: 4.117 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007063/0.2036, allocations: 2.216 MB / 0.6506 GB, free: 1.879 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.2036, allocations: 8 kB / 0.6507 GB, free: 1.871 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.2036, allocations: 0 / 0.6507 GB, free: 1.871 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003922/0.2075, allocations: 1.001 MB / 0.6516 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004995/0.2081, allocations: 107.8 kB / 0.6517 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009635/0.2177, allocations: 4.518 MB / 0.6561 GB, free: 12.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000813/0.2185, allocations: 99.5 kB / 0.6562 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.2187, allocations: 24 kB / 0.6563 GB, free: 11.98 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.0004105/0.2191, allocations: 205.8 kB / 0.6565 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/0.2193, allocations: 79.48 kB / 0.6565 GB, free: 11.69 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004753/0.224, allocations: 1.694 MB / 0.6582 GB, free: 9.977 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.2241, allocations: 4 kB / 0.6582 GB, free: 9.973 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.2241, allocations: 7.938 kB / 0.6582 GB, free: 9.965 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.2241, allocations: 7.984 kB / 0.6582 GB, free: 9.957 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004562/0.2287, allocations: 2.423 MB / 0.6606 GB, free: 7.441 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.2287, allocations: 4 kB / 0.6606 GB, free: 7.438 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003885/0.2291, allocations: 71.84 kB / 0.6606 GB, free: 7.367 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.004144/0.2332, allocations: 1.072 MB / 0.6617 GB, free: 6.285 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-05/0.2333, allocations: 12 kB / 0.6617 GB, free: 6.273 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005523/0.2339, allocations: 104.7 kB / 0.6618 GB, free: 6.168 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2339, allocations: 192 / 0.6618 GB, free: 6.168 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004447/0.2383, allocations: 2.016 MB / 0.6638 GB, free: 4.125 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002273/0.2386, allocations: 160.4 kB / 0.6639 GB, free: 3.949 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.2387, allocations: 19.94 kB / 0.6639 GB, free: 3.93 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006558/0.2394, allocations: 51.94 kB / 0.664 GB, free: 3.879 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002915/0.2397, allocations: 128.5 kB / 0.6641 GB, free: 3.754 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.034e-05/0.2398, allocations: 19.94 kB / 0.6641 GB, free: 3.734 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003987/0.2402, allocations: 354.8 kB / 0.6645 GB, free: 3.391 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2402, allocations: 0 / 0.6645 GB, free: 3.391 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008247/0.241, allocations: 235.8 kB / 0.6647 GB, free: 3.16 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.005021/0.246, allocations: 2.572 MB / 0.6672 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004144/0.2502, allocations: 1.587 MB / 0.6688 GB, free: 14.91 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.2502, allocations: 4 kB / 0.6688 GB, free: 14.91 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]