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.001188/0.001188, allocations: 72.17 kB / 9.874 MB, free: 0.8125 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001583/0.002771, allocations: 443.8 kB / 10.31 MB, free: 388 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.672/1.672, allocations: 158.6 MB / 169.6 MB, free: 2.281 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.3472/2.019, allocations: 49.49 MB / 219.1 MB, free: 5.477 MB / 218.7 MB " [Timeout remaining time 178] 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.001604/0.001604, allocations: 152.6 kB / 220 MB, free: 4.59 MB / 218.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003124/0.004728, allocations: 476 kB / 220.5 MB, free: 4.129 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.1421/0.1421, allocations: 32.5 MB / 253.7 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0386/0.1807, allocations: 10.85 MB / 264.6 MB, free: 7.969 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 4.529e-06/4.529e-06, allocations: 0 / 265.8 MB, free: 6.734 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 6.299e-05/6.752e-05, allocations: 2.312 kB / 265.8 MB, free: 6.73 MB / 266.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Branches.Generic.ULTC): time 0.02305/0.02312, allocations: 4.267 MB / 270.1 MB, free: 2.438 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01252/0.03565, allocations: 1.208 MB / 271.3 MB, free: 1.223 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002282/0.03793, allocations: 8 kB / 271.3 MB, free: 1.215 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.0395, allocations: 150.7 kB / 271.4 MB, free: 1.066 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002455/0.04195, allocations: 289.7 kB / 271.7 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001761/0.04371, allocations: 0.514 MB / 272.2 MB, free: 272 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001423/0.04513, allocations: 0.8248 MB / 273.1 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003641/0.0455, allocations: 154.8 kB / 273.2 MB, free: 15.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006455/0.04614, allocations: 0.5523 MB / 273.8 MB, free: 14.71 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005653/0.04671, allocations: 319 kB / 274.1 MB, free: 14.4 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001046/0.04681, allocations: 60 kB / 274.1 MB, free: 14.34 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005236/0.04734, allocations: 139.8 kB / 274.3 MB, free: 14.21 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.04745, allocations: 115.5 kB / 274.4 MB, free: 14.09 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.04766, allocations: 199.5 kB / 274.6 MB, free: 13.9 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008969/0.04856, allocations: 0.6187 MB / 275.2 MB, free: 13.28 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.948e-05/0.04859, allocations: 0 / 275.2 MB, free: 13.28 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.496e-06/0.04859, allocations: 3.938 kB / 275.2 MB, free: 13.27 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.694e-05/0.04862, allocations: 0 / 275.2 MB, free: 13.27 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.003433/0.05205, allocations: 1.729 MB / 276.9 MB, free: 11.49 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.336e-05/0.05212, allocations: 8.031 kB / 276.9 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001156/0.05224, allocations: 102.6 kB / 277 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001495/0.05374, allocations: 0.5387 MB / 277.6 MB, free: 10.84 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000581/0.05432, allocations: 360.8 kB / 277.9 MB, free: 10.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002653/0.05458, allocations: 274.9 kB / 278.2 MB, free: 10.14 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.952e-05/0.05466, allocations: 52 kB / 278.3 MB, free: 10.09 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006272/0.05529, allocations: 431 kB / 278.7 MB, free: 9.656 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.05531, allocations: 0 / 278.7 MB, free: 9.656 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.135e-05/0.05535, allocations: 20 kB / 278.7 MB, free: 9.637 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.05536, allocations: 16 kB / 278.7 MB, free: 9.621 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003662/0.05573, allocations: 209 kB / 278.9 MB, free: 9.414 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.002133/0.05786, allocations: 1.136 MB / 280.1 MB, free: 8.254 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002835/0.0607, allocations: 1.201 MB / 281.3 MB, free: 7.039 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002582/0.06095, allocations: 151.2 kB / 281.4 MB, free: 6.891 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.335e-05/0.06103, allocations: 12.66 kB / 281.4 MB, free: 6.879 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004044/0.06143, allocations: 272.2 kB / 281.7 MB, free: 6.602 MB / 282.7 MB Notification: Performance of pre-optimization done (n=73): time 3.386e-06/0.06144, allocations: 0 / 281.7 MB, free: 6.602 MB / 282.7 MB Notification: Performance of matching and sorting (n=73): time 0.002425/0.06386, allocations: 1.066 MB / 282.7 MB, free: 5.52 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003681/0.06423, allocations: 60.06 kB / 282.8 MB, free: 5.449 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004336/0.06466, allocations: 483 kB / 283.3 MB, free: 4.965 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.576e-05/0.06472, allocations: 41.7 kB / 283.3 MB, free: 4.918 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.06491, allocations: 250.3 kB / 283.6 MB, free: 4.672 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002012/0.06511, allocations: 261.7 kB / 283.8 MB, free: 4.414 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.06529, allocations: 122.6 kB / 283.9 MB, free: 4.289 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.06548, allocations: 394.6 kB / 284.3 MB, free: 3.895 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.06565, allocations: 102 kB / 284.4 MB, free: 3.797 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000249/0.0659, allocations: 206.5 kB / 284.6 MB, free: 3.562 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006477/0.06654, allocations: 0.5145 MB / 285.1 MB, free: 3.023 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.06655, allocations: 0 / 285.1 MB, free: 3.023 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002625/0.06917, allocations: 1.227 MB / 286.4 MB, free: 1.777 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.352e-05/0.06921, allocations: 4 kB / 286.4 MB, free: 1.773 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.06922, allocations: 7.984 kB / 286.4 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002456/0.07168, allocations: 0.8256 MB / 287.2 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003582/0.07204, allocations: 123.8 kB / 287.3 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004283/0.07632, allocations: 2.366 MB / 289.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004648/0.07679, allocations: 91.53 kB / 289.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.085e-05/0.07683, allocations: 23.94 kB / 289.8 MB, free: 14.23 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.0006363/0.07746, allocations: 161.6 kB / 290 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.07757, allocations: 75.86 kB / 290 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/0.07921, allocations: 0.8311 MB / 290.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.07922, allocations: 8 kB / 290.9 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.07922, allocations: 4 kB / 290.9 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.07923, allocations: 3.984 kB / 290.9 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.08104, allocations: 1.073 MB / 292 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.08105, allocations: 0 / 292 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002423/0.08129, allocations: 83.89 kB / 292 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.163e-05/0.08138, allocations: 71.39 kB / 292.1 MB, free: 11.85 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.001495/0.08288, allocations: 0.6621 MB / 292.8 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.423e-05/0.08293, allocations: 16 kB / 292.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002208/0.08315, allocations: 88.72 kB / 292.9 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.08316, allocations: 4 kB / 292.9 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/0.08438, allocations: 0.7986 MB / 293.7 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.858e-05/0.08445, allocations: 16 kB / 293.7 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.08467, allocations: 47.95 kB / 293.7 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002389/0.08491, allocations: 124.4 kB / 293.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.515e-05/0.08495, allocations: 19.98 kB / 293.9 MB, free: 10.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001966/0.08515, allocations: 212.3 kB / 294.1 MB, free: 9.832 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.08515, allocations: 3.938 kB / 294.1 MB, free: 9.828 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006603/0.08581, allocations: 235.8 kB / 294.3 MB, free: 9.598 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.0007424/0.08655, allocations: 0.7238 MB / 295 MB, free: 8.852 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001518/0.08807, allocations: 0.7942 MB / 295.8 MB, free: 8.035 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.416e-05/0.08808, allocations: 8.062 kB / 295.8 MB, free: 8.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: 2.7392491241917014]