Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.Branches.Generic.ULTC.conf.json 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.0009226/0.0009226, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 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 0.9464/0.9464, allocations: 158.6 MB / 180.9 MB, free: 3.234 MB / 170.7 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.001374/0.001374, allocations: 168.5 kB / 233.3 MB, free: 15.47 MB / 234.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-beta.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-beta.1/package.mo): time 0.2444/0.2444, allocations: 32.52 MB / 318 MB, free: 39.46 MB / 282.7 MB " [Timeout remaining time 180] Using package OpenIPSL with version 2.0.0-beta.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-beta.1/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) Running command: setCommandLineOptions("--fmiFlags=s:cvode") Running command: "" <> buildModelFMU(OpenIPSL.Examples.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_Branches_Generic_ULTC",fmuType="me_cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_Branches_Generic_ULTC",fmuType="me_cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 454 MB, free: 29.64 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.467e-05/1.622e-05, allocations: 9.125 kB / 454 MB, free: 29.64 MB / 362.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Branches.Generic.ULTC): time 0.002829/0.002845, allocations: 3.962 MB / 457.9 MB, free: 26.95 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.004211, allocations: 1.158 MB / 459.1 MB, free: 26.14 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001776/0.004389, allocations: 6.125 kB / 459.1 MB, free: 26.14 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002611/0.00465, allocations: 139 kB / 459.2 MB, free: 26.07 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003333/0.004983, allocations: 278.8 kB / 459.5 MB, free: 25.86 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007365/0.00572, allocations: 0.5162 MB / 460 MB, free: 25.57 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005307/0.00625, allocations: 0.8341 MB / 460.9 MB, free: 25.13 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002204/0.006471, allocations: 135.8 kB / 461 MB, free: 25.05 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003193/0.00679, allocations: 482.4 kB / 461.5 MB, free: 24.84 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003491/0.007139, allocations: 312.7 kB / 461.8 MB, free: 24.73 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.366e-05/0.007223, allocations: 61.5 kB / 461.8 MB, free: 24.73 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.00746, allocations: 128.2 kB / 462 MB, free: 24.71 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.804e-05/0.007538, allocations: 170.4 kB / 462.1 MB, free: 24.6 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001713/0.007709, allocations: 259.6 kB / 462.4 MB, free: 24.47 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006239/0.008333, allocations: 0.9311 MB / 463.3 MB, free: 24.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.008336, allocations: 0 / 463.3 MB, free: 24.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.008337, allocations: 0 / 463.3 MB, free: 24.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.008347, allocations: 0 / 463.3 MB, free: 24.07 MB / 362.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.002408/0.01076, allocations: 1.608 MB / 464.9 MB, free: 23.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.0108, allocations: 13.58 kB / 464.9 MB, free: 23.25 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.422e-05/0.01087, allocations: 99.08 kB / 465 MB, free: 23.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001356/0.01223, allocations: 435.7 kB / 465.4 MB, free: 23.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004166/0.01264, allocations: 444.5 kB / 465.9 MB, free: 22.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.01278, allocations: 278.6 kB / 466.2 MB, free: 22.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.84e-05/0.01285, allocations: 49.59 kB / 466.2 MB, free: 22.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008081/0.01366, allocations: 0.6941 MB / 466.9 MB, free: 22.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.01367, allocations: 0 / 466.9 MB, free: 22.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.339e-05/0.01371, allocations: 25.88 kB / 466.9 MB, free: 22.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.01372, allocations: 16.95 kB / 466.9 MB, free: 22.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008188/0.01454, allocations: 0.6634 MB / 467.6 MB, free: 21.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002252/0.01679, allocations: 1.768 MB / 469.4 MB, free: 20.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003721/0.02052, allocations: 1.747 MB / 471.1 MB, free: 20.62 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005412/0.02106, allocations: 442.9 kB / 471.5 MB, free: 20.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.168e-05/0.02112, allocations: 9.969 kB / 471.6 MB, free: 20.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006277/0.02175, allocations: 0.5198 MB / 472.1 MB, free: 20.26 MB / 362.7 MB Notification: Performance of pre-optimization done (n=73): time 1.733e-06/0.02175, allocations: 0 / 472.1 MB, free: 20.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.003732/0.02548, allocations: 2.21 MB / 474.3 MB, free: 19.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.02551, allocations: 64.06 kB / 474.4 MB, free: 19.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003678/0.02588, allocations: 0.5161 MB / 474.9 MB, free: 19.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.079e-05/0.02592, allocations: 38.45 kB / 474.9 MB, free: 19.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.02605, allocations: 329.9 kB / 475.2 MB, free: 19.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.02617, allocations: 261.2 kB / 475.5 MB, free: 18.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/0.02631, allocations: 123.2 kB / 475.6 MB, free: 18.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.041e-05/0.02638, allocations: 379.8 kB / 476 MB, free: 18.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005096/0.02689, allocations: 404.6 kB / 476.4 MB, free: 18.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005366/0.02743, allocations: 0.498 MB / 476.9 MB, free: 18.01 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004604/0.03203, allocations: 2.516 MB / 479.4 MB, free: 17.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.03204, allocations: 1.094 kB / 479.4 MB, free: 17.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.003954/0.03599, allocations: 2.202 MB / 481.6 MB, free: 16.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.03601, allocations: 14.19 kB / 481.6 MB, free: 16.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.03602, allocations: 1.688 kB / 481.6 MB, free: 16.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002101/0.03812, allocations: 0.9978 MB / 482.6 MB, free: 16.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.03838, allocations: 105.3 kB / 482.7 MB, free: 16.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005877/0.04426, allocations: 4.301 MB / 487 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004089/0.04467, allocations: 98.67 kB / 487.1 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.057e-05/0.04471, allocations: 30.91 kB / 487.1 MB, free: 13.91 MB / 362.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.0002813/0.04499, allocations: 209 kB / 487.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.975e-05/0.04508, allocations: 79.67 kB / 487.4 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003131/0.04821, allocations: 1.678 MB / 489.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/0.04822, allocations: 7.969 kB / 489.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.04822, allocations: 0 / 489.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.04823, allocations: 4.391 kB / 489.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00339/0.05163, allocations: 2.123 MB / 491.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.05163, allocations: 0 / 491.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002195/0.05185, allocations: 71.81 kB / 491.3 MB, free: 12.15 MB / 362.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.00238/0.05423, allocations: 1.062 MB / 492.4 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.247e-05/0.05427, allocations: 12.61 kB / 492.4 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002913/0.05456, allocations: 106.7 kB / 492.5 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.05456, allocations: 0 / 492.5 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002979/0.05754, allocations: 1.998 MB / 494.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.539e-05/0.05762, allocations: 75.11 kB / 494.5 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.319e-05/0.05768, allocations: 13.5 kB / 494.6 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002851/0.05797, allocations: 60.12 kB / 494.6 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002116/0.05818, allocations: 131.4 kB / 494.7 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-05/0.05821, allocations: 16 kB / 494.8 MB, free: 10.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002566/0.05846, allocations: 354.8 kB / 495.1 MB, free: 10.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.05846, allocations: 4 kB / 495.1 MB, free: 10.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000638/0.0591, allocations: 239.8 kB / 495.3 MB, free: 10.03 MB / 362.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.002817/0.06192, allocations: 2.557 MB / 497.9 MB, free: 7.441 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002138/0.06406, allocations: 1.374 MB / 499.3 MB, free: 6.043 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.06406, allocations: 0 / 499.3 MB, free: 6.043 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-beta.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3532:9-3532: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1556:5-1556:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:843:5-843: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.2181806350126863]