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.08772/0.08772, allocations: 12.36 MB / 31.98 MB, free: 6.523 MB / 26.2 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.001492/0.001492, allocations: 114.4 kB / 38.03 MB, free: 1.207 MB / 26.2 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.471/1.471, allocations: 207.6 MB / 251.6 MB, free: 7.637 MB / 190.1 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.001597/0.001597, allocations: 212.4 kB / 306.9 MB, free: 0.793 MB / 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.3221/0.3221, allocations: 79.73 MB / 441.7 MB, free: 10.55 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="cs",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.003977/0.003977, allocations: 147.8 kB / 0.5883 GB, free: 5.512 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3755/0.3795, allocations: 71.95 MB / 0.6585 GB, free: 14 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.006146/0.3856, allocations: 4.453 MB / 0.6629 GB, free: 9.52 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002597/0.3882, allocations: 1.224 MB / 0.6641 GB, free: 8.289 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002384/0.3885, allocations: 12 kB / 0.6641 GB, free: 8.277 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004045/0.3889, allocations: 142.8 kB / 0.6642 GB, free: 8.137 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005486/0.3894, allocations: 258 kB / 0.6645 GB, free: 7.883 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001231/0.3907, allocations: 0.5449 MB / 0.665 GB, free: 7.344 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000872/0.3915, allocations: 0.8056 MB / 0.6658 GB, free: 6.535 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002674/0.3918, allocations: 138.3 kB / 0.6659 GB, free: 6.387 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003282/0.3921, allocations: 346.5 kB / 0.6663 GB, free: 6.047 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005141/0.3926, allocations: 414 kB / 0.6667 GB, free: 5.641 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.117e-05/0.3927, allocations: 64 kB / 0.6667 GB, free: 5.578 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002867/0.393, allocations: 131.9 kB / 0.6668 GB, free: 5.449 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.3932, allocations: 167.3 kB / 0.667 GB, free: 5.285 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003557/0.3935, allocations: 389.8 kB / 0.6674 GB, free: 4.902 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.3945, allocations: 0.9207 MB / 0.6683 GB, free: 3.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.3945, allocations: 7.938 kB / 0.6683 GB, free: 3.973 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3945, allocations: 0 / 0.6683 GB, free: 3.973 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.3946, allocations: 0 / 0.6683 GB, free: 3.973 MB / 446.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.004518/0.3991, allocations: 1.61 MB / 0.6699 GB, free: 2.324 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.3991, allocations: 8.031 kB / 0.6699 GB, free: 2.316 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.654e-05/0.3991, allocations: 17.19 kB / 0.6699 GB, free: 2.301 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001182/0.3993, allocations: 98.7 kB / 0.67 GB, free: 2.195 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002531/0.4018, allocations: 435.2 kB / 0.6704 GB, free: 1.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006802/0.4025, allocations: 447.4 kB / 0.6708 GB, free: 1.301 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002848/0.4028, allocations: 278.9 kB / 0.6711 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.4029, allocations: 55.94 kB / 0.6711 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.4043, allocations: 0.6935 MB / 0.6718 GB, free: 232 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.4043, allocations: 4 kB / 0.6718 GB, free: 228 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.016e-05/0.4044, allocations: 23.94 kB / 0.6718 GB, free: 204 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.4044, allocations: 16 kB / 0.6718 GB, free: 188 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.406, allocations: 0.6649 MB / 0.6725 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003818/0.4098, allocations: 2.098 MB / 0.6745 GB, free: 13.35 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008021/0.4178, allocations: 1.742 MB / 0.6762 GB, free: 11.59 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.419, allocations: 435.1 kB / 0.6767 GB, free: 11.17 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.58e-05/0.419, allocations: 20.58 kB / 0.6767 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001248/0.4203, allocations: 0.5158 MB / 0.6772 GB, free: 10.62 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 2.555e-06/0.4203, allocations: 0 / 0.6772 GB, free: 10.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007422/0.4277, allocations: 2.214 MB / 0.6793 GB, free: 8.391 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/0.4278, allocations: 64.06 kB / 0.6794 GB, free: 8.316 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006465/0.4284, allocations: 0.5109 MB / 0.6799 GB, free: 7.793 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.336e-05/0.4285, allocations: 37.7 kB / 0.6799 GB, free: 7.75 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002713/0.4287, allocations: 325.2 kB / 0.6803 GB, free: 7.43 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002603/0.429, allocations: 265.7 kB / 0.6805 GB, free: 7.168 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002482/0.4293, allocations: 122.7 kB / 0.6806 GB, free: 7.039 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.4295, allocations: 382.8 kB / 0.681 GB, free: 6.656 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009232/0.4304, allocations: 405.8 kB / 0.6814 GB, free: 6.262 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.4314, allocations: 0.4906 MB / 0.6819 GB, free: 5.742 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009283/0.4407, allocations: 2.522 MB / 0.6843 GB, free: 3.191 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.802e-06/0.4407, allocations: 0 / 0.6843 GB, free: 3.191 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007462/0.4481, allocations: 2.204 MB / 0.6865 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.4482, allocations: 4 kB / 0.6865 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.4482, allocations: 4 kB / 0.6865 GB, free: 0.957 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004248/0.4524, allocations: 0.9975 MB / 0.6875 GB, free: 15.95 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005261/0.4529, allocations: 107.8 kB / 0.6876 GB, free: 15.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/0.4633, allocations: 4.417 MB / 0.6919 GB, free: 11.32 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009205/0.4642, allocations: 99.5 kB / 0.692 GB, free: 11.22 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.4643, allocations: 24 kB / 0.692 GB, free: 11.2 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.0005292/0.4649, allocations: 217.6 kB / 0.6922 GB, free: 10.98 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001937/0.465, allocations: 79.48 kB / 0.6923 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005054/0.4701, allocations: 1.667 MB / 0.6939 GB, free: 9.211 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.4701, allocations: 8 kB / 0.6939 GB, free: 9.203 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.4701, allocations: 3.938 kB / 0.6939 GB, free: 9.199 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.4701, allocations: 7.984 kB / 0.6939 GB, free: 9.191 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004996/0.4751, allocations: 2.387 MB / 0.6962 GB, free: 6.719 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.4751, allocations: 0 / 0.6962 GB, free: 6.719 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003949/0.4755, allocations: 71.91 kB / 0.6963 GB, free: 6.648 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.004329/0.4799, allocations: 1.056 MB / 0.6973 GB, free: 5.582 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.939e-05/0.4799, allocations: 15.98 kB / 0.6974 GB, free: 5.566 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005893/0.4805, allocations: 108.6 kB / 0.6975 GB, free: 5.457 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.4805, allocations: 8 kB / 0.6975 GB, free: 5.449 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004789/0.4853, allocations: 1.989 MB / 0.6994 GB, free: 3.434 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002097/0.4855, allocations: 87.31 kB / 0.6995 GB, free: 3.348 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.4857, allocations: 19.94 kB / 0.6995 GB, free: 3.328 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006729/0.4863, allocations: 55.94 kB / 0.6996 GB, free: 3.273 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003207/0.4867, allocations: 128.4 kB / 0.6997 GB, free: 3.148 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.338e-05/0.4867, allocations: 16.19 kB / 0.6997 GB, free: 3.133 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004462/0.4872, allocations: 358.8 kB / 0.7001 GB, free: 2.785 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4872, allocations: 3.938 kB / 0.7001 GB, free: 2.781 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007883/0.488, allocations: 235.8 kB / 0.7003 GB, free: 2.551 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.00513/0.4931, allocations: 2.552 MB / 0.7028 GB, free: 15.96 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004485/0.4976, allocations: 1.394 MB / 0.7041 GB, free: 14.55 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.4976, allocations: 0 / 0.7041 GB, free: 14.55 MB / 494.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 659] [Calling sys.exit(0), Time elapsed: 3.4388870479306206] Failed to read output from testmodel.py, exit status != 0: 0.5076570569071919 0.5343148099999999 0.135021421 Calling exit ...