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.0007022/0.0007022, allocations: 76.16 kB / 9.861 MB, free: 0.8281 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001048/0.001751, allocations: 443.8 kB / 10.29 MB, free: 404 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 0.9942/0.9942, allocations: 158.6 MB / 169.6 MB, free: 2.797 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1554/1.15, allocations: 49.5 MB / 219.1 MB, free: 5.57 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.0007436/0.0007436, allocations: 148.6 kB / 220 MB, free: 4.684 MB / 218.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008978/0.001641, allocations: 480.2 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.2808/0.2808, allocations: 32.51 MB / 253.7 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01664/0.2974, allocations: 10.85 MB / 264.6 MB, free: 8.051 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: 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+3.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+3.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 6.11e-07/6.11e-07, allocations: 0 / 265.8 MB, free: 6.816 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.609e-06/5.22e-06, allocations: 2.312 kB / 265.8 MB, free: 6.812 MB / 266.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Branches.Generic.ULTC): time 0.003315/0.00332, allocations: 4.251 MB / 270.1 MB, free: 2.535 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.004599, allocations: 1.22 MB / 271.3 MB, free: 1.309 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.004721, allocations: 7.938 kB / 271.3 MB, free: 1.301 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.004901, allocations: 146.7 kB / 271.4 MB, free: 1.156 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002993/0.005201, allocations: 285.7 kB / 271.7 MB, free: 0.875 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006415/0.005842, allocations: 0.5218 MB / 272.2 MB, free: 360 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005172/0.006359, allocations: 0.821 MB / 273.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.006559, allocations: 154.8 kB / 273.2 MB, free: 15.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003692/0.006929, allocations: 0.5482 MB / 273.8 MB, free: 14.81 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003046/0.007233, allocations: 319 kB / 274.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.082e-05/0.007294, allocations: 60 kB / 274.1 MB, free: 14.44 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000194/0.007488, allocations: 135.8 kB / 274.3 MB, free: 14.3 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.517e-05/0.007563, allocations: 123.5 kB / 274.4 MB, free: 14.18 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.007713, allocations: 199.5 kB / 274.6 MB, free: 13.99 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004785/0.008192, allocations: 0.6225 MB / 275.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.787e-05/0.00821, allocations: 0 / 275.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.21e-07/0.00821, allocations: 0 / 275.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.008222, allocations: 0 / 275.2 MB, free: 13.36 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.002162/0.01038, allocations: 1.733 MB / 276.9 MB, free: 11.58 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.88e-05/0.01041, allocations: 8.031 kB / 276.9 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.707e-05/0.01049, allocations: 102.6 kB / 277 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001279/0.01177, allocations: 0.5348 MB / 277.6 MB, free: 10.93 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003384/0.01211, allocations: 360.8 kB / 277.9 MB, free: 10.54 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/0.01225, allocations: 270.9 kB / 278.2 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.854e-05/0.01232, allocations: 55.98 kB / 278.2 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004478/0.01277, allocations: 427 kB / 278.7 MB, free: 9.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.01278, allocations: 3.938 kB / 278.7 MB, free: 9.746 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.01281, allocations: 24 kB / 278.7 MB, free: 9.723 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.01282, allocations: 12 kB / 278.7 MB, free: 9.711 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002831/0.01311, allocations: 209 kB / 278.9 MB, free: 9.504 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.001579/0.01468, allocations: 1.136 MB / 280 MB, free: 8.344 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002531/0.01721, allocations: 1.189 MB / 281.2 MB, free: 7.141 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.01739, allocations: 147.2 kB / 281.4 MB, free: 6.996 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.264e-05/0.01744, allocations: 16.64 kB / 281.4 MB, free: 6.98 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002868/0.01773, allocations: 268.2 kB / 281.7 MB, free: 6.707 MB / 282.7 MB Notification: Performance of pre-optimization done (n=73): time 1.814e-06/0.01773, allocations: 0 / 281.7 MB, free: 6.707 MB / 282.7 MB Notification: Performance of matching and sorting (n=73): time 0.002007/0.01974, allocations: 1.07 MB / 282.7 MB, free: 5.621 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.01977, allocations: 60.06 kB / 282.8 MB, free: 5.551 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.02003, allocations: 479 kB / 283.3 MB, free: 5.07 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.197e-05/0.02007, allocations: 41.7 kB / 283.3 MB, free: 5.023 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.02018, allocations: 254.3 kB / 283.5 MB, free: 4.773 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.02032, allocations: 265.7 kB / 283.8 MB, free: 4.512 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.02045, allocations: 122.6 kB / 283.9 MB, free: 4.387 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.02056, allocations: 390.6 kB / 284.3 MB, free: 3.996 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.02069, allocations: 106 kB / 284.4 MB, free: 3.895 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.02088, allocations: 198.6 kB / 284.6 MB, free: 3.672 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000505/0.02138, allocations: 0.5184 MB / 285.1 MB, free: 3.125 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.02138, allocations: 3.938 kB / 285.1 MB, free: 3.121 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002163/0.02355, allocations: 1.227 MB / 286.3 MB, free: 1.879 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.02356, allocations: 4 kB / 286.4 MB, free: 1.875 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.02357, allocations: 4 kB / 286.4 MB, free: 1.871 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002006/0.02557, allocations: 0.8333 MB / 287.2 MB, free: 1.027 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002589/0.02583, allocations: 123.8 kB / 287.3 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002741/0.02857, allocations: 2.374 MB / 289.7 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.02882, allocations: 87.53 kB / 289.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.02885, allocations: 23.94 kB / 289.8 MB, free: 14.32 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.0001545/0.02901, allocations: 161.6 kB / 290 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.617e-05/0.02909, allocations: 71.92 kB / 290 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.03034, allocations: 0.8233 MB / 290.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.03035, allocations: 12 kB / 290.9 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.574e-06/0.03035, allocations: 0 / 290.9 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.03036, allocations: 7.984 kB / 290.9 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.03158, allocations: 1.077 MB / 291.9 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.03158, allocations: 0 / 291.9 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001986/0.03178, allocations: 75.91 kB / 292 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.619e-05/0.03184, allocations: 71.39 kB / 292.1 MB, free: 11.95 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.001322/0.03316, allocations: 0.6621 MB / 292.7 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.448e-05/0.03319, allocations: 19.98 kB / 292.8 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002023/0.0334, allocations: 84.73 kB / 292.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.0334, allocations: 7.938 kB / 292.9 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000976/0.03437, allocations: 0.7986 MB / 293.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.24e-05/0.03443, allocations: 16 kB / 293.7 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.03464, allocations: 51.89 kB / 293.7 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.03481, allocations: 128.4 kB / 293.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.03484, allocations: 15.94 kB / 293.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001284/0.03496, allocations: 212.3 kB / 294.1 MB, free: 9.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03496, allocations: 0 / 294.1 MB, free: 9.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003536/0.03532, allocations: 235.8 kB / 294.3 MB, free: 9.699 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.0004174/0.03574, allocations: 0.7238 MB / 295 MB, free: 8.953 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.03684, allocations: 0.7943 MB / 295.8 MB, free: 8.137 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/0.03685, allocations: 16.12 kB / 295.8 MB, free: 8.121 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.8259307034313679]