Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json 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/Modelica 4.0.0+maint.om/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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_release_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_release_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008497/0.0008498, allocations: 178.4 kB / 15.42 MB, free: 5.852 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.8 MB / 239 MB, free: 20 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007588/0.0007586, allocations: 86.95 kB / 289.8 MB, free: 4.586 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3124/0.3124, allocations: 78.43 MB / 418.9 MB, free: 48 kB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003595, allocations: 12.77 kB / 498.5 MB, free: 35.38 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3141, allocations: 68.74 MB / 0.554 GB, free: 10.45 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004799/0.3189, allocations: 4.639 MB / 0.5585 GB, free: 7.535 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002284/0.3212, allocations: 1.283 MB / 0.5597 GB, free: 6.617 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002934/0.3215, allocations: 7.312 kB / 0.5598 GB, free: 6.617 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003541/0.3219, allocations: 111.6 kB / 0.5599 GB, free: 6.574 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004639/0.3224, allocations: 183.8 kB / 0.56 GB, free: 6.441 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.3235, allocations: 0.5552 MB / 0.5606 GB, free: 6.102 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006793/0.3242, allocations: 0.7667 MB / 0.5613 GB, free: 5.711 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002621/0.3245, allocations: 167 kB / 0.5615 GB, free: 5.625 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002685/0.3247, allocations: 297.1 kB / 0.5618 GB, free: 5.484 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003965/0.3252, allocations: 386.4 kB / 0.5621 GB, free: 5.297 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.834e-05/0.3252, allocations: 38.19 kB / 0.5622 GB, free: 5.293 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002739/0.3255, allocations: 97 kB / 0.5623 GB, free: 5.27 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.616e-05/0.3256, allocations: 132.7 kB / 0.5624 GB, free: 5.191 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002501/0.3259, allocations: 356.4 kB / 0.5627 GB, free: 4.969 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008955/0.3268, allocations: 0.8614 MB / 0.5636 GB, free: 4.633 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.3268, allocations: 1.062 kB / 0.5636 GB, free: 4.633 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3268, allocations: 0 / 0.5636 GB, free: 4.633 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.3268, allocations: 0 / 0.5636 GB, free: 4.633 MB / 378.7 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.003922/0.3308, allocations: 1.417 MB / 0.565 GB, free: 3.895 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.3308, allocations: 10.5 kB / 0.565 GB, free: 3.895 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001826/0.331, allocations: 97.98 kB / 0.5651 GB, free: 3.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002508/0.3335, allocations: 426 kB / 0.5655 GB, free: 3.734 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000609/0.3341, allocations: 0.4954 MB / 0.566 GB, free: 3.348 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001861/0.3343, allocations: 198.4 kB / 0.5661 GB, free: 3.172 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.65e-05/0.3344, allocations: 55.48 kB / 0.5662 GB, free: 3.152 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.3358, allocations: 0.6965 MB / 0.5669 GB, free: 2.879 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.3358, allocations: 0 / 0.5669 GB, free: 2.879 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.047e-05/0.3359, allocations: 21.39 kB / 0.5669 GB, free: 2.863 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.3359, allocations: 17.06 kB / 0.5669 GB, free: 2.859 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.3372, allocations: 0.6738 MB / 0.5676 GB, free: 2.641 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003503/0.3407, allocations: 2.156 MB / 0.5697 GB, free: 1.422 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007742/0.3485, allocations: 2.271 MB / 0.5719 GB, free: 484 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.3496, allocations: 483.7 kB / 0.5724 GB, free: 300 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.775e-05/0.3497, allocations: 10.02 kB / 0.5724 GB, free: 296 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001116/0.3508, allocations: 0.5223 MB / 0.5729 GB, free: 84 kB / 378.7 MB Notification: Performance of pre-optimization done (n=73): time 3.025e-06/0.3508, allocations: 0 / 0.5729 GB, free: 84 kB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.006862/0.3577, allocations: 2.463 MB / 0.5753 GB, free: 15.03 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.3578, allocations: 58.47 kB / 0.5753 GB, free: 14.97 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007395/0.3585, allocations: 0.5055 MB / 0.5758 GB, free: 14.67 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.25e-05/0.3586, allocations: 41.45 kB / 0.5759 GB, free: 14.63 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002535/0.3589, allocations: 336.1 kB / 0.5762 GB, free: 14.33 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002409/0.3591, allocations: 250.5 kB / 0.5764 GB, free: 14.11 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.3592, allocations: 64.38 kB / 0.5765 GB, free: 14.07 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.3594, allocations: 381.7 kB / 0.5769 GB, free: 13.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008278/0.3602, allocations: 406.9 kB / 0.5772 GB, free: 13.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009273/0.3611, allocations: 0.5015 MB / 0.5777 GB, free: 13.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008513/0.3697, allocations: 2.514 MB / 0.5802 GB, free: 11.93 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.3697, allocations: 5.031 kB / 0.5802 GB, free: 11.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006805/0.3765, allocations: 2.204 MB / 0.5823 GB, free: 10.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.3766, allocations: 10.5 kB / 0.5824 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.3766, allocations: 5.281 kB / 0.5824 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003638/0.3802, allocations: 0.9931 MB / 0.5833 GB, free: 10.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005541/0.3808, allocations: 106.1 kB / 0.5834 GB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008153/0.389, allocations: 4.122 MB / 0.5875 GB, free: 7.414 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008963/0.3899, allocations: 97.81 kB / 0.5875 GB, free: 7.355 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.086e-05/0.39, allocations: 23.34 kB / 0.5876 GB, free: 7.352 MB / 394.7 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.0004181/0.3904, allocations: 210.5 kB / 0.5878 GB, free: 7.168 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.3905, allocations: 71.09 kB / 0.5878 GB, free: 7.133 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/0.3951, allocations: 1.696 MB / 0.5895 GB, free: 6.219 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.3951, allocations: 12.06 kB / 0.5895 GB, free: 6.215 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3951, allocations: 4 kB / 0.5895 GB, free: 6.211 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.3952, allocations: 5.328 kB / 0.5895 GB, free: 6.207 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004391/0.3996, allocations: 2.438 MB / 0.5919 GB, free: 3.859 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.3996, allocations: 0 / 0.5919 GB, free: 3.859 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004535/0.4, allocations: 71.89 kB / 0.592 GB, free: 3.789 MB / 394.7 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.004756/0.4048, allocations: 1.068 MB / 0.593 GB, free: 2.711 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/0.405, allocations: 12 kB / 0.593 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006508/0.4056, allocations: 108.5 kB / 0.5931 GB, free: 2.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4056, allocations: 0 / 0.5931 GB, free: 2.59 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004467/0.4101, allocations: 2.007 MB / 0.5951 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003191/0.4104, allocations: 148.2 kB / 0.5952 GB, free: 404 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.4106, allocations: 19.98 kB / 0.5952 GB, free: 384 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005768/0.4112, allocations: 55.94 kB / 0.5953 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003113/0.4115, allocations: 116.5 kB / 0.5954 GB, free: 212 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.699e-05/0.4115, allocations: 23.98 kB / 0.5954 GB, free: 188 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000437/0.412, allocations: 354.8 kB / 0.5958 GB, free: 15.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.412, allocations: 0 / 0.5958 GB, free: 15.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008385/0.4128, allocations: 235.7 kB / 0.596 GB, free: 15.61 MB / 410.7 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.004314/0.4172, allocations: 2.594 MB / 0.5985 GB, free: 12.98 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00357/0.4207, allocations: 1.568 MB / 0.6001 GB, free: 11.36 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.4208, allocations: 0 / 0.6001 GB, free: 11.36 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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:3397:9-3397: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:1495:5-1495:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:762:5-762:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]