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/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/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 Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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/Complex 3.2.3+maint.om/package.mo): time 0.0009816/0.0009816, allocations: 180.9 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.79/1.79, allocations: 205.3 MB / 213.4 MB, free: 13.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009002/0.0008998, allocations: 88.8 kB / 261.4 MB, free: 13.44 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.09156/0.09156, allocations: 12.19 MB / 321.5 MB, free: 1.191 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3114/0.3114, allocations: 78.07 MB / 450.3 MB, free: 3.484 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.031e-05/2.033e-05, allocations: 0 / 0.5142 GB, free: 29.97 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1778, allocations: 69.24 MB / 0.5819 GB, free: 8.852 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5883/0.7662, allocations: 94.07 MB / 0.6737 GB, free: 10.43 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.7665, allocations: 83.2 kB / 0.6738 GB, free: 10.43 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03101/0.7975, allocations: 13.38 MB / 0.6869 GB, free: 2.75 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.7976, allocations: 0 / 0.6869 GB, free: 2.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.778e-05/0.7976, allocations: 12 kB / 0.6869 GB, free: 2.738 MB / 426.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.00265/0.8002, allocations: 1.13 MB / 0.688 GB, free: 1.652 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.8003, allocations: 12.03 kB / 0.688 GB, free: 1.641 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001499/0.8018, allocations: 303.9 kB / 0.6883 GB, free: 1.367 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000562/0.8024, allocations: 449.2 kB / 0.6887 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002108/0.8026, allocations: 185.8 kB / 0.6889 GB, free: 0.7539 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.652e-05/0.8027, allocations: 32 kB / 0.6889 GB, free: 0.7227 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008266/0.8035, allocations: 0.5298 MB / 0.6894 GB, free: 412 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008233/0.8044, allocations: 0.5239 MB / 0.6899 GB, free: 40 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.8044, allocations: 0 / 0.6899 GB, free: 40 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.854e-05/0.8045, allocations: 0 / 0.6899 GB, free: 40 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.8045, allocations: 12.22 kB / 0.69 GB, free: 28 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00373/0.8082, allocations: 2.087 MB / 0.692 GB, free: 14.54 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007928/0.8162, allocations: 2.542 MB / 0.6945 GB, free: 12.19 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006817/0.8169, allocations: 373.2 kB / 0.6948 GB, free: 11.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001007/0.817, allocations: 12.77 kB / 0.6948 GB, free: 11.97 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007252/0.8177, allocations: 404.8 kB / 0.6952 GB, free: 11.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=73): time 5.6e-06/0.8177, allocations: 0 / 0.6952 GB, free: 11.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=73): time 0.004374/0.8221, allocations: 1.505 MB / 0.6967 GB, free: 10.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.8222, allocations: 60.19 kB / 0.6968 GB, free: 10.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006887/0.8229, allocations: 412.7 kB / 0.6972 GB, free: 10.11 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.203e-05/0.823, allocations: 33.06 kB / 0.6972 GB, free: 10.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002891/0.8233, allocations: 318.4 kB / 0.6975 GB, free: 9.863 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003005/0.8236, allocations: 245.2 kB / 0.6977 GB, free: 9.652 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.534e-05/0.8236, allocations: 0 / 0.6977 GB, free: 9.652 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.8238, allocations: 385.1 kB / 0.6981 GB, free: 9.297 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004632/0.8243, allocations: 295.1 kB / 0.6984 GB, free: 9.145 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000494/0.8248, allocations: 385.2 kB / 0.6987 GB, free: 8.887 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004755/0.8253, allocations: 318.7 kB / 0.699 GB, free: 8.715 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.8253, allocations: 4 kB / 0.699 GB, free: 8.711 MB / 442.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00625/0.8316, allocations: 2.17 MB / 0.7012 GB, free: 6.875 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.8316, allocations: 8.938 kB / 0.7012 GB, free: 6.867 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.8317, allocations: 0 / 0.7012 GB, free: 6.867 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00355/0.8352, allocations: 0.9567 MB / 0.7021 GB, free: 6.039 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005847/0.8358, allocations: 107 kB / 0.7022 GB, free: 5.938 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006571/0.8424, allocations: 3.595 MB / 0.7057 GB, free: 3.188 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009073/0.8433, allocations: 99.38 kB / 0.7058 GB, free: 3.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-05/0.8434, allocations: 27.88 kB / 0.7058 GB, free: 3.07 MB / 442.7 MB Warning: Assuming fixed start value for the following 2 variables: load.xq:VARIABLE(start = 0.0 protected = true ) type: Real load.xp:VARIABLE(start = 0.0 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 ($whenCondition1,$whenCondition2,$PRE.ultc.m,ultc.m,ultc.zeroCrossing.y,$PRE.ultc.zeroCrossing.disable,ultc.zeroCrossing.disable,$PRE.ultc.zeroCrossing.u_pos,ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.enable,ultc.zeroCrossing.enable) * Number of discrete 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002784/0.8437, allocations: 128.9 kB / 0.706 GB, free: 2.938 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003835/0.8475, allocations: 1.492 MB / 0.7074 GB, free: 1.746 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.8477, allocations: 83 kB / 0.7075 GB, free: 1.664 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004512/0.8522, allocations: 1.729 MB / 0.7092 GB, free: 296 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.8522, allocations: 8 kB / 0.7092 GB, free: 288 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.8522, allocations: 0 / 0.7092 GB, free: 288 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.8523, allocations: 3.984 kB / 0.7092 GB, free: 284 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003324/0.8556, allocations: 2.094 MB / 0.7112 GB, free: 14.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.8556, allocations: 0 / 0.7112 GB, free: 14.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003893/0.856, allocations: 75.58 kB / 0.7113 GB, free: 14.66 MB / 458.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.003555/0.8596, allocations: 1.005 MB / 0.7123 GB, free: 13.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.459e-05/0.8596, allocations: 8 kB / 0.7123 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006209/0.8603, allocations: 127.6 kB / 0.7124 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.8603, allocations: 3.953 kB / 0.7124 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002919/0.8632, allocations: 1.646 MB / 0.714 GB, free: 12.56 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002607/0.8635, allocations: 158.9 kB / 0.7142 GB, free: 12.39 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.749e-05/0.8636, allocations: 4 kB / 0.7142 GB, free: 12.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00064/0.8642, allocations: 67.94 kB / 0.7143 GB, free: 12.32 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002928/0.8645, allocations: 126.3 kB / 0.7144 GB, free: 12.22 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.8646, allocations: 15.31 kB / 0.7144 GB, free: 12.21 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003981/0.865, allocations: 318.1 kB / 0.7147 GB, free: 11.97 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.865, allocations: 0 / 0.7147 GB, free: 11.97 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000812/0.8658, allocations: 218.2 kB / 0.7149 GB, free: 11.76 MB / 458.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) * 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {16 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.00325/0.8691, allocations: 2.212 MB / 0.7171 GB, free: 10.08 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003257/0.8724, allocations: 1.405 MB / 0.7184 GB, free: 8.949 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.8724, allocations: 4.062 kB / 0.7184 GB, free: 8.945 MB / 458.7 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/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3197:9-3197:50:writable] Error: Internal error function createOdeSystem failed for component torn nonlinear Equationsystem{{{23:9}, {28:8}, {22:7}, {26:5}, {24:3}, {31:66}, {30:33}, {15:29}, {16:67}, {7:20}, {9:21}}, {10, 14, 5, 12, 6, 8, 19, 18, 11, 13, 25, 27, 29, 21, 20, 17:35, 11, 53, 10, 52, 46, 47, 30, 40, 41, 43, 42, 45, 13, 12, 44} Size: 16 [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1369:5-1369:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]