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/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07629/0.07629, allocations: 12.37 MB / 31.2 MB, free: 24 kB / 19.63 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 124.9 kB / 37.25 MB, free: 1.242 MB / 26.18 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.215/1.215, allocations: 207.6 MB / 250.8 MB, free: 7.344 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 208.4 kB / 306.1 MB, free: 476 kB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2928/0.2928, allocations: 79.73 MB / 440.9 MB, free: 12.45 MB / 318.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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/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"}) [Timeout 660] "Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.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.1.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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003794/0.003794, allocations: 147.8 kB / 0.5875 GB, free: 7.629 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3043, allocations: 71.95 MB / 0.6578 GB, free: 2.652 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004206/0.3085, allocations: 4.466 MB / 0.6621 GB, free: 15.43 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.3104, allocations: 1.223 MB / 0.6633 GB, free: 14.55 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.3106, allocations: 5.938 kB / 0.6633 GB, free: 14.55 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003202/0.3109, allocations: 140.2 kB / 0.6635 GB, free: 14.48 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004739/0.3114, allocations: 266.6 kB / 0.6637 GB, free: 14.28 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.3125, allocations: 0.5424 MB / 0.6643 GB, free: 13.97 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000782/0.3133, allocations: 0.8055 MB / 0.665 GB, free: 13.55 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002471/0.3135, allocations: 141.5 kB / 0.6652 GB, free: 13.46 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000314/0.3138, allocations: 344.9 kB / 0.6655 GB, free: 13.29 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005194/0.3143, allocations: 415.5 kB / 0.6659 GB, free: 13.08 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.365e-05/0.3144, allocations: 61.88 kB / 0.666 GB, free: 13.08 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002548/0.3147, allocations: 130.4 kB / 0.6661 GB, free: 13.06 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.3148, allocations: 173.5 kB / 0.6662 GB, free: 12.94 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003326/0.3152, allocations: 384 kB / 0.6666 GB, free: 12.69 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009528/0.3161, allocations: 0.9259 MB / 0.6675 GB, free: 12.26 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3161, allocations: 0 / 0.6675 GB, free: 12.26 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3161, allocations: 0 / 0.6675 GB, free: 12.26 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.3161, allocations: 0 / 0.6675 GB, free: 12.26 MB / 462.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.004055/0.3202, allocations: 1.613 MB / 0.6691 GB, free: 11.45 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.3202, allocations: 10.36 kB / 0.6691 GB, free: 11.45 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001193/0.3203, allocations: 97.5 kB / 0.6692 GB, free: 11.38 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002372/0.3227, allocations: 432.9 kB / 0.6696 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006323/0.3233, allocations: 449.5 kB / 0.67 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002605/0.3236, allocations: 274.8 kB / 0.6703 GB, free: 10.68 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.676e-05/0.3237, allocations: 51.88 kB / 0.6703 GB, free: 10.66 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.325, allocations: 0.6994 MB / 0.671 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.325, allocations: 1.656 kB / 0.671 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.281e-05/0.3251, allocations: 21.14 kB / 0.6711 GB, free: 10.38 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.3251, allocations: 17.53 kB / 0.6711 GB, free: 10.37 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.3264, allocations: 0.6726 MB / 0.6717 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003478/0.3299, allocations: 2.095 MB / 0.6738 GB, free: 8.527 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006835/0.3368, allocations: 1.742 MB / 0.6755 GB, free: 7.742 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008421/0.3376, allocations: 437.3 kB / 0.6759 GB, free: 7.527 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.175e-05/0.3377, allocations: 8.562 kB / 0.6759 GB, free: 7.527 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001071/0.3387, allocations: 0.5197 MB / 0.6764 GB, free: 7.207 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 1.934e-06/0.3387, allocations: 3.938 kB / 0.6764 GB, free: 7.203 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.006387/0.3451, allocations: 2.215 MB / 0.6786 GB, free: 6.121 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/0.3452, allocations: 62.92 kB / 0.6786 GB, free: 6.055 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005022/0.3457, allocations: 0.5135 MB / 0.6791 GB, free: 5.742 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.431e-05/0.3458, allocations: 37.83 kB / 0.6792 GB, free: 5.703 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002338/0.346, allocations: 328.9 kB / 0.6795 GB, free: 5.414 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000221/0.3462, allocations: 264 kB / 0.6797 GB, free: 5.184 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/0.3464, allocations: 118.5 kB / 0.6798 GB, free: 5.109 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.3466, allocations: 387.2 kB / 0.6802 GB, free: 4.738 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008145/0.3474, allocations: 402.2 kB / 0.6806 GB, free: 4.543 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008781/0.3483, allocations: 0.494 MB / 0.6811 GB, free: 4.242 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008175/0.3565, allocations: 2.525 MB / 0.6836 GB, free: 2.965 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.3565, allocations: 5.062 kB / 0.6836 GB, free: 2.961 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006451/0.3629, allocations: 2.195 MB / 0.6857 GB, free: 1.867 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.3629, allocations: 14.28 kB / 0.6857 GB, free: 1.859 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3629, allocations: 1.344 kB / 0.6857 GB, free: 1.859 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003574/0.3665, allocations: 0.9895 MB / 0.6867 GB, free: 1.398 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004277/0.3669, allocations: 114.6 kB / 0.6868 GB, free: 1.367 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008649/0.3756, allocations: 4.396 MB / 0.6911 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006927/0.3763, allocations: 102.2 kB / 0.6912 GB, free: 14.26 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.598e-05/0.3763, allocations: 29.7 kB / 0.6912 GB, free: 14.25 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.0003384/0.3767, allocations: 207.1 kB / 0.6914 GB, free: 14.07 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.3768, allocations: 78.98 kB / 0.6915 GB, free: 14.03 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004314/0.3811, allocations: 1.672 MB / 0.6931 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.3811, allocations: 8 kB / 0.6931 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.3811, allocations: 9.438 kB / 0.6931 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.3811, allocations: 3.984 kB / 0.6931 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004268/0.3854, allocations: 2.39 MB / 0.6955 GB, free: 11.42 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.3854, allocations: 0 / 0.6955 GB, free: 11.42 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003603/0.3858, allocations: 71.91 kB / 0.6955 GB, free: 11.35 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.003827/0.3896, allocations: 1.06 MB / 0.6966 GB, free: 10.28 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.989e-05/0.3896, allocations: 8 kB / 0.6966 GB, free: 10.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005108/0.3901, allocations: 108.7 kB / 0.6967 GB, free: 10.16 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3901, allocations: 0 / 0.6967 GB, free: 10.16 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004099/0.3942, allocations: 1.997 MB / 0.6986 GB, free: 8.137 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.3944, allocations: 87.31 kB / 0.6987 GB, free: 8.051 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.474e-05/0.3945, allocations: 23.94 kB / 0.6987 GB, free: 8.027 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005505/0.395, allocations: 51.94 kB / 0.6988 GB, free: 7.977 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002724/0.3953, allocations: 124.4 kB / 0.6989 GB, free: 7.855 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.868e-05/0.3954, allocations: 23.98 kB / 0.6989 GB, free: 7.832 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003694/0.3957, allocations: 354.8 kB / 0.6993 GB, free: 7.488 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3957, allocations: 0 / 0.6993 GB, free: 7.488 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0006662/0.3964, allocations: 239.8 kB / 0.6995 GB, free: 7.254 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.004479/0.4009, allocations: 2.56 MB / 0.702 GB, free: 4.656 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003623/0.4045, allocations: 1.382 MB / 0.7033 GB, free: 3.258 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4045, allocations: 0.5 kB / 0.7033 GB, free: 3.258 MB / 478.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:3565:9-3565: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:1568:5-1568:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:822:5-822:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.888933119000285] Failed to read output from testmodel.py, exit status != 0: 0.41222975500204484 0.425947995 0.10713293900000001 Calling exit ...