Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json 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 4.0.0+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 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008252/0.0008252, allocations: 92.23 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 223.3 MB / 239.4 MB, free: 5.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008648/0.0008649, allocations: 180.4 kB / 290.6 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4046/0.4046, allocations: 78.55 MB / 420.3 MB, free: 4.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003183/0.0003183, allocations: 15.98 kB / 0.4888 GB, free: 5.906 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1106, allocations: 69.35 MB / 0.5565 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.1903/0.3009, allocations: 4.228 MB / 0.5606 GB, free: 36.93 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002195/0.3032, allocations: 1.255 MB / 0.5618 GB, free: 36.4 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004722/0.3037, allocations: 6.938 kB / 0.5618 GB, free: 36.4 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003732/0.3041, allocations: 111 kB / 0.562 GB, free: 36.36 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005471/0.3046, allocations: 202.7 kB / 0.5621 GB, free: 36.24 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009859/0.3056, allocations: 0.5246 MB / 0.5627 GB, free: 36.09 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006607/0.3063, allocations: 0.7641 MB / 0.5634 GB, free: 35.89 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.3065, allocations: 167.4 kB / 0.5636 GB, free: 35.85 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002881/0.3068, allocations: 299.2 kB / 0.5638 GB, free: 35.75 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003812/0.3072, allocations: 382.5 kB / 0.5642 GB, free: 35.64 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.454e-05/0.3073, allocations: 34.09 kB / 0.5642 GB, free: 35.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002489/0.3076, allocations: 95.42 kB / 0.5643 GB, free: 35.63 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.59e-05/0.3077, allocations: 137.8 kB / 0.5645 GB, free: 35.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002375/0.3079, allocations: 386.3 kB / 0.5648 GB, free: 35.41 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005791/0.3085, allocations: 0.8613 MB / 0.5657 GB, free: 35.19 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3085, allocations: 2 kB / 0.5657 GB, free: 35.19 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3085, allocations: 0 / 0.5657 GB, free: 35.19 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.98e-05/0.3085, allocations: 0 / 0.5657 GB, free: 35.19 MB / 430.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.003584/0.3121, allocations: 1.442 MB / 0.5671 GB, free: 34.55 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.3122, allocations: 13.28 kB / 0.5671 GB, free: 34.55 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001245/0.3123, allocations: 101.8 kB / 0.5672 GB, free: 34.51 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002325/0.3146, allocations: 434.2 kB / 0.5676 GB, free: 34.46 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004651/0.3151, allocations: 0.4914 MB / 0.5681 GB, free: 34.15 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.3153, allocations: 209.3 kB / 0.5683 GB, free: 33.99 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.664e-05/0.3154, allocations: 52.34 kB / 0.5683 GB, free: 33.99 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.3166, allocations: 0.7329 MB / 0.5691 GB, free: 33.94 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.3166, allocations: 2.078 kB / 0.5691 GB, free: 33.94 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.017e-05/0.3167, allocations: 21.25 kB / 0.5691 GB, free: 33.94 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.3167, allocations: 16.5 kB / 0.5691 GB, free: 33.94 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.3179, allocations: 0.7266 MB / 0.5698 GB, free: 33.93 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002801/0.3207, allocations: 2.169 MB / 0.5719 GB, free: 33.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007327/0.328, allocations: 2.752 MB / 0.5746 GB, free: 32.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008013/0.3289, allocations: 0.51 MB / 0.5751 GB, free: 32.71 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.821e-05/0.3289, allocations: 9.375 kB / 0.5751 GB, free: 32.71 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009512/0.3299, allocations: 0.5759 MB / 0.5757 GB, free: 32.63 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 2.004e-06/0.3299, allocations: 0 / 0.5757 GB, free: 32.63 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006579/0.3365, allocations: 2.845 MB / 0.5785 GB, free: 32.15 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.734e-05/0.3365, allocations: 61.78 kB / 0.5785 GB, free: 32.09 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003828/0.3369, allocations: 0.5106 MB / 0.579 GB, free: 31.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.214e-05/0.337, allocations: 42.33 kB / 0.5791 GB, free: 31.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.3371, allocations: 325.7 kB / 0.5794 GB, free: 31.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.3372, allocations: 250 kB / 0.5796 GB, free: 31.62 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.939e-05/0.3373, allocations: 65.06 kB / 0.5797 GB, free: 31.6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.451e-05/0.3374, allocations: 381.6 kB / 0.58 GB, free: 31.29 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007676/0.3382, allocations: 450.1 kB / 0.5805 GB, free: 31.28 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008364/0.339, allocations: 0.5258 MB / 0.581 GB, free: 31.19 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008425/0.3474, allocations: 2.806 MB / 0.5837 GB, free: 30.63 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3474, allocations: 3.938 kB / 0.5837 GB, free: 30.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00709/0.3545, allocations: 2.63 MB / 0.5863 GB, free: 29.97 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.3546, allocations: 5.75 kB / 0.5863 GB, free: 29.97 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3546, allocations: 2.188 kB / 0.5863 GB, free: 29.97 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00391/0.3585, allocations: 1.183 MB / 0.5874 GB, free: 29.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004207/0.3589, allocations: 112.3 kB / 0.5876 GB, free: 29.74 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008023/0.367, allocations: 4.483 MB / 0.5919 GB, free: 27.31 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006594/0.3676, allocations: 117.2 kB / 0.592 GB, free: 27.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.465e-05/0.3677, allocations: 26.48 kB / 0.5921 GB, free: 27.26 MB / 430.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.0002826/0.368, allocations: 211.8 kB / 0.5923 GB, free: 27.08 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.548e-05/0.3681, allocations: 75.47 kB / 0.5923 GB, free: 27.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004566/0.3727, allocations: 1.956 MB / 0.5943 GB, free: 26.46 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.3727, allocations: 8.094 kB / 0.5943 GB, free: 26.46 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.3727, allocations: 3.156 kB / 0.5943 GB, free: 26.46 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.3727, allocations: 3.844 kB / 0.5943 GB, free: 26.46 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004038/0.3767, allocations: 2.609 MB / 0.5968 GB, free: 25.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3768, allocations: 0 / 0.5968 GB, free: 25.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003454/0.3771, allocations: 72.81 kB / 0.5969 GB, free: 25.22 MB / 430.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.004163/0.3813, allocations: 1.256 MB / 0.5981 GB, free: 24.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.049e-05/0.3813, allocations: 17.31 kB / 0.5981 GB, free: 24.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005622/0.3819, allocations: 125.7 kB / 0.5983 GB, free: 24.95 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3819, allocations: 3.938 kB / 0.5983 GB, free: 24.94 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004263/0.3862, allocations: 2.222 MB / 0.6004 GB, free: 24.06 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.3863, allocations: 151.7 kB / 0.6006 GB, free: 23.92 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.725e-05/0.3864, allocations: 18.92 kB / 0.6006 GB, free: 23.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005917/0.387, allocations: 76.88 kB / 0.6007 GB, free: 23.89 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002765/0.3873, allocations: 115.7 kB / 0.6008 GB, free: 23.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-05/0.3873, allocations: 25.88 kB / 0.6008 GB, free: 23.87 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003425/0.3877, allocations: 355.1 kB / 0.6011 GB, free: 23.71 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3877, allocations: 0 / 0.6011 GB, free: 23.71 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006455/0.3883, allocations: 241.9 kB / 0.6014 GB, free: 23.67 MB / 430.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.004512/0.3929, allocations: 2.778 MB / 0.6041 GB, free: 22.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003823/0.3967, allocations: 1.751 MB / 0.6058 GB, free: 21.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3967, allocations: 0 / 0.6058 GB, free: 21.5 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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:3399:9-3399: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:1497:5-1497:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:764:5-764:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]