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.08255/0.08255, allocations: 12.36 MB / 31.22 MB, free: 6.41 MB / 26.18 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.001255/0.001255, allocations: 109 kB / 37.25 MB, free: 1.102 MB / 26.18 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.382/1.382, allocations: 207.7 MB / 250.9 MB, free: 7.277 MB / 190.1 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.001668/0.001668, allocations: 208.4 kB / 306.1 MB, free: 300 kB / 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.3274/0.3274, allocations: 79.72 MB / 440.9 MB, free: 12.27 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",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.004228/0.004228, allocations: 144.9 kB / 0.5875 GB, free: 7.512 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3682, allocations: 71.96 MB / 0.6577 GB, free: 2.52 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004586/0.3728, allocations: 3.965 MB / 0.6616 GB, free: 15.83 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.3754, allocations: 1.162 MB / 0.6628 GB, free: 15.02 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000228/0.3756, allocations: 5.5 kB / 0.6628 GB, free: 15.02 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003982/0.376, allocations: 137.7 kB / 0.6629 GB, free: 14.95 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006614/0.3766, allocations: 265 kB / 0.6631 GB, free: 14.75 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.3779, allocations: 0.5161 MB / 0.6636 GB, free: 14.46 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008344/0.3787, allocations: 0.8115 MB / 0.6644 GB, free: 14.04 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002541/0.379, allocations: 133.4 kB / 0.6646 GB, free: 13.96 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003606/0.3793, allocations: 343.8 kB / 0.6649 GB, free: 13.79 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005569/0.3799, allocations: 373.6 kB / 0.6653 GB, free: 13.62 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.38, allocations: 62.78 kB / 0.6653 GB, free: 13.62 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003031/0.3803, allocations: 125 kB / 0.6654 GB, free: 13.6 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001699/0.3805, allocations: 166.2 kB / 0.6656 GB, free: 13.49 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003607/0.3808, allocations: 313.3 kB / 0.6659 GB, free: 13.31 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0011/0.3819, allocations: 0.9319 MB / 0.6668 GB, free: 12.88 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3819, allocations: 1.406 kB / 0.6668 GB, free: 12.88 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3819, allocations: 4 kB / 0.6668 GB, free: 12.88 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.3819, allocations: 3.938 kB / 0.6668 GB, free: 12.87 MB / 462.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.004636/0.3866, allocations: 1.607 MB / 0.6684 GB, free: 12.07 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.3866, allocations: 9.938 kB / 0.6684 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/0.3867, allocations: 98.95 kB / 0.6685 GB, free: 12 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002591/0.3893, allocations: 432.1 kB / 0.6689 GB, free: 11.9 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007884/0.3901, allocations: 452.4 kB / 0.6693 GB, free: 11.56 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003015/0.3904, allocations: 280.4 kB / 0.6696 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.3905, allocations: 59.38 kB / 0.6696 GB, free: 11.26 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.392, allocations: 0.6849 MB / 0.6703 GB, free: 11.01 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.3921, allocations: 0 / 0.6703 GB, free: 11.01 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.899e-05/0.3921, allocations: 25.39 kB / 0.6703 GB, free: 10.99 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.3921, allocations: 17.5 kB / 0.6704 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.3936, allocations: 0.6644 MB / 0.671 GB, free: 10.72 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003812/0.3974, allocations: 1.769 MB / 0.6727 GB, free: 9.457 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007741/0.4052, allocations: 1.745 MB / 0.6744 GB, free: 8.668 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.4062, allocations: 433.2 kB / 0.6748 GB, free: 8.457 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.197e-05/0.4063, allocations: 8.906 kB / 0.6749 GB, free: 8.457 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001254/0.4075, allocations: 0.5282 MB / 0.6754 GB, free: 8.129 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 3.156e-06/0.4075, allocations: 0 / 0.6754 GB, free: 8.129 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007385/0.4149, allocations: 2.212 MB / 0.6775 GB, free: 7.051 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/0.415, allocations: 58.94 kB / 0.6776 GB, free: 6.988 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006723/0.4157, allocations: 0.5148 MB / 0.6781 GB, free: 6.676 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.217e-05/0.4157, allocations: 41.83 kB / 0.6781 GB, free: 6.633 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002846/0.416, allocations: 332.2 kB / 0.6785 GB, free: 6.34 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002761/0.4163, allocations: 256.4 kB / 0.6787 GB, free: 6.117 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002419/0.4165, allocations: 127.5 kB / 0.6788 GB, free: 6.035 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002102/0.4168, allocations: 383.7 kB / 0.6792 GB, free: 5.668 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009103/0.4177, allocations: 410.9 kB / 0.6796 GB, free: 5.465 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009913/0.4187, allocations: 0.4902 MB / 0.6801 GB, free: 5.172 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009031/0.4277, allocations: 2.516 MB / 0.6825 GB, free: 3.902 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.4277, allocations: 3.938 kB / 0.6825 GB, free: 3.898 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007232/0.4349, allocations: 2.203 MB / 0.6847 GB, free: 2.801 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.4349, allocations: 6.312 kB / 0.6847 GB, free: 2.801 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.435, allocations: 3.25 kB / 0.6847 GB, free: 2.801 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004008/0.439, allocations: 0.9924 MB / 0.6856 GB, free: 2.336 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005074/0.4395, allocations: 113.4 kB / 0.6858 GB, free: 2.305 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009719/0.4492, allocations: 4.308 MB / 0.69 GB, free: 15.35 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008674/0.4501, allocations: 103.4 kB / 0.6901 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.296e-05/0.4501, allocations: 25.59 kB / 0.6901 GB, free: 15.28 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.0004065/0.4505, allocations: 210.9 kB / 0.6903 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.4507, allocations: 76.09 kB / 0.6904 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004737/0.4554, allocations: 1.676 MB / 0.692 GB, free: 14.15 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.4554, allocations: 11.12 kB / 0.692 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.4554, allocations: 1.219 kB / 0.692 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.4554, allocations: 9.109 kB / 0.692 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004714/0.4601, allocations: 2.123 MB / 0.6941 GB, free: 12.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.4601, allocations: 0 / 0.6941 GB, free: 12.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003962/0.4605, allocations: 67.91 kB / 0.6942 GB, free: 12.63 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.004231/0.4648, allocations: 1.06 MB / 0.6952 GB, free: 11.56 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.245e-05/0.4648, allocations: 19.98 kB / 0.6952 GB, free: 11.54 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005582/0.4654, allocations: 104.7 kB / 0.6953 GB, free: 11.43 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.4654, allocations: 4 kB / 0.6953 GB, free: 11.43 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004619/0.47, allocations: 1.997 MB / 0.6973 GB, free: 9.406 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.4702, allocations: 79.39 kB / 0.6973 GB, free: 9.328 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.4703, allocations: 19.94 kB / 0.6974 GB, free: 9.309 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006027/0.4709, allocations: 51.94 kB / 0.6974 GB, free: 9.258 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002902/0.4712, allocations: 128.4 kB / 0.6975 GB, free: 9.133 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.014e-05/0.4713, allocations: 20 kB / 0.6975 GB, free: 9.113 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004395/0.4717, allocations: 358.8 kB / 0.6979 GB, free: 8.766 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4717, allocations: 0 / 0.6979 GB, free: 8.766 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007875/0.4725, allocations: 235.8 kB / 0.6981 GB, free: 8.535 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.005049/0.4775, allocations: 2.556 MB / 0.7006 GB, free: 5.941 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004157/0.4817, allocations: 1.382 MB / 0.702 GB, free: 4.539 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4817, allocations: 0 / 0.702 GB, free: 4.539 MB / 478.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:3566:9-3566: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:1569:5-1569:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:823:5-823: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: 3.28406242467463] Failed to read output from testmodel.py, exit status != 0: 0.490476556122303 0.505747458 0.12081615899999995 Calling exit ...