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.0008795/0.0008795, allocations: 84.17 kB / 9.886 MB, free: 0.8008 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001192/0.002071, allocations: 435.8 kB / 10.31 MB, free: 384 kB / 10.45 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/1, allocations: 158.6 MB / 169.7 MB, free: 2.781 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1922/1.193, allocations: 49.49 MB / 219.1 MB, free: 5.559 MB / 218.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.001419/0.001419, allocations: 156.6 kB / 220 MB, free: 4.684 MB / 218.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001915/0.003333, allocations: 477.7 kB / 220.5 MB, free: 4.215 MB / 218.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.1309/0.1309, allocations: 32.51 MB / 253.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01716/0.148, allocations: 10.85 MB / 264.6 MB, free: 8.047 MB / 266.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: translateModel(OpenIPSL.Examples.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=35000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.Branches.Generic.ULTC") translateModel(OpenIPSL.Examples.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=35000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.Branches.Generic.ULTC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 265.9 MB, free: 6.777 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.676e-05/1.852e-05, allocations: 10.25 kB / 265.9 MB, free: 6.766 MB / 266.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Branches.Generic.ULTC): time 0.004707/0.004725, allocations: 4.247 MB / 270.1 MB, free: 2.492 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002864/0.007589, allocations: 1.216 MB / 271.3 MB, free: 1.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003817/0.007971, allocations: 4 kB / 271.3 MB, free: 1.266 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003632/0.008334, allocations: 150.8 kB / 271.5 MB, free: 1.117 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006776/0.009012, allocations: 281.7 kB / 271.8 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.01019, allocations: 0.5217 MB / 272.3 MB, free: 324 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009779/0.01116, allocations: 0.8288 MB / 273.1 MB, free: 15.48 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003208/0.01148, allocations: 146.9 kB / 273.3 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008028/0.01229, allocations: 0.5522 MB / 273.8 MB, free: 14.77 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004853/0.01277, allocations: 322.9 kB / 274.1 MB, free: 14.45 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.01288, allocations: 64 kB / 274.2 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003501/0.01323, allocations: 135.8 kB / 274.3 MB, free: 14.26 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.01335, allocations: 119.5 kB / 274.4 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002343/0.01358, allocations: 199.5 kB / 274.6 MB, free: 13.95 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007288/0.01431, allocations: 0.6186 MB / 275.2 MB, free: 13.32 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.468e-05/0.01433, allocations: 0 / 275.2 MB, free: 13.32 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.01433, allocations: 0 / 275.2 MB, free: 13.32 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.01435, allocations: 0 / 275.2 MB, free: 13.32 MB / 282.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.003262/0.01761, allocations: 1.729 MB / 277 MB, free: 11.54 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.01764, allocations: 8.031 kB / 277 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002078/0.01972, allocations: 0.5388 MB / 277.5 MB, free: 11 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005536/0.02027, allocations: 360.8 kB / 277.9 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002044/0.02048, allocations: 274.9 kB / 278.1 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.669e-05/0.02056, allocations: 55.98 kB / 278.2 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006677/0.02123, allocations: 423 kB / 278.6 MB, free: 9.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.02125, allocations: 0 / 278.6 MB, free: 9.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.395e-05/0.0213, allocations: 23.98 kB / 278.6 MB, free: 9.797 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.02132, allocations: 19.98 kB / 278.7 MB, free: 9.777 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000449/0.02177, allocations: 209 kB / 278.9 MB, free: 9.57 MB / 282.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002355/0.02412, allocations: 1.066 MB / 279.9 MB, free: 8.492 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003657/0.02778, allocations: 1.185 MB / 281.1 MB, free: 7.293 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002524/0.02803, allocations: 151.2 kB / 281.3 MB, free: 7.145 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.92e-05/0.02809, allocations: 16.66 kB / 281.3 MB, free: 7.129 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004451/0.02853, allocations: 268.2 kB / 281.5 MB, free: 6.855 MB / 282.7 MB Notification: Performance of pre-optimization done (n=73): time 2.495e-06/0.02854, allocations: 4 kB / 281.5 MB, free: 6.852 MB / 282.7 MB Notification: Performance of matching and sorting (n=73): time 0.002884/0.03142, allocations: 1.063 MB / 282.6 MB, free: 5.773 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.03146, allocations: 64 kB / 282.7 MB, free: 5.699 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003749/0.03183, allocations: 483 kB / 283.1 MB, free: 5.215 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.727e-05/0.03188, allocations: 37.7 kB / 283.2 MB, free: 5.172 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.03203, allocations: 258.3 kB / 283.4 MB, free: 4.918 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002007/0.03223, allocations: 261.7 kB / 283.7 MB, free: 4.66 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001931/0.03243, allocations: 122.6 kB / 283.8 MB, free: 4.535 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.03257, allocations: 390.6 kB / 284.2 MB, free: 4.145 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.03278, allocations: 97.97 kB / 284.3 MB, free: 4.051 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.03306, allocations: 214.5 kB / 284.5 MB, free: 3.809 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007421/0.0338, allocations: 0.5145 MB / 285 MB, free: 3.27 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.0338, allocations: 0 / 285 MB, free: 3.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.003197/0.037, allocations: 1.223 MB / 286.2 MB, free: 2.027 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.03701, allocations: 4 kB / 286.2 MB, free: 2.023 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.03702, allocations: 4 kB / 286.2 MB, free: 2.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00299/0.04002, allocations: 0.8333 MB / 287.1 MB, free: 1.176 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004017/0.04042, allocations: 123.8 kB / 287.2 MB, free: 1.055 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003882/0.0443, allocations: 2.351 MB / 289.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004221/0.04472, allocations: 87.48 kB / 289.6 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.715e-05/0.04477, allocations: 20 kB / 289.6 MB, free: 14.51 MB / 298.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.0002145/0.04498, allocations: 157.6 kB / 289.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.04509, allocations: 71.94 kB / 289.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00185/0.04694, allocations: 0.835 MB / 290.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.04695, allocations: 8 kB / 290.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.04695, allocations: 3.984 kB / 290.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.04696, allocations: 3.984 kB / 290.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/0.04875, allocations: 1.004 MB / 291.7 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-06/0.04876, allocations: 3.984 kB / 291.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003096/0.04907, allocations: 79.91 kB / 291.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.344e-05/0.04916, allocations: 75.28 kB / 291.9 MB, free: 12.21 MB / 298.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.002001/0.05116, allocations: 0.666 MB / 292.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.958e-05/0.05121, allocations: 12 kB / 292.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003088/0.05152, allocations: 92.7 kB / 292.6 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.05152, allocations: 4 kB / 292.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001476/0.053, allocations: 0.7908 MB / 293.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.062e-05/0.05308, allocations: 23.98 kB / 293.5 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003599/0.05344, allocations: 43.95 kB / 293.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000252/0.05369, allocations: 124.4 kB / 293.6 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.972e-05/0.05373, allocations: 12 kB / 293.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002127/0.05394, allocations: 212.4 kB / 293.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.05394, allocations: 0 / 293.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005765/0.05452, allocations: 231.8 kB / 294.1 MB, free: 9.977 MB / 298.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.0001579/0.05468, allocations: 104.3 kB / 294.2 MB, free: 9.863 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.05634, allocations: 0.8096 MB / 295 MB, free: 9.035 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/0.05635, allocations: 8 kB / 295 MB, free: 9.027 MB / 298.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:3438:9-3438: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:1486:5-1486:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:743:5-743: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: 1.7407233519479632]