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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1754/0.1754, allocations: 12.2 MB / 27.43 MB, free: 1.387 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002105/0.002105, allocations: 120.4 kB / 30.95 MB, free: 4.664 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.815/1.815, allocations: 205.1 MB / 239.4 MB, free: 10.94 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00269/0.00269, allocations: 192.5 kB / 289.6 MB, free: 15.86 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.5497/0.5497, allocations: 78.5 MB / 418.1 MB, free: 31.75 MB / 318.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.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.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.004418/0.004418, allocations: 131.8 kB / 498.5 MB, free: 468 kB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.612/0.6164, allocations: 68.04 MB / 0.5533 GB, free: 37.77 MB / 414.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.006321/0.6228, allocations: 4.697 MB / 0.5579 GB, free: 34.36 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002758/0.6256, allocations: 1.233 MB / 0.5591 GB, free: 33.46 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002676/0.6259, allocations: 9.844 kB / 0.5591 GB, free: 33.46 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00049/0.6264, allocations: 111.9 kB / 0.5592 GB, free: 33.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006085/0.6271, allocations: 190.8 kB / 0.5594 GB, free: 33.28 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.6284, allocations: 0.5262 MB / 0.5599 GB, free: 32.96 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008241/0.6292, allocations: 0.8019 MB / 0.5606 GB, free: 32.54 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004141/0.6297, allocations: 214.9 kB / 0.5609 GB, free: 32.44 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003402/0.63, allocations: 329.8 kB / 0.5612 GB, free: 32.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000509/0.6305, allocations: 412.4 kB / 0.5616 GB, free: 32.06 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.6306, allocations: 63.56 kB / 0.5616 GB, free: 32.06 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003503/0.631, allocations: 126.9 kB / 0.5617 GB, free: 32.04 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.6312, allocations: 170.1 kB / 0.5619 GB, free: 31.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003757/0.6315, allocations: 394.2 kB / 0.5623 GB, free: 31.67 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.6326, allocations: 0.9026 MB / 0.5632 GB, free: 31.25 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.836e-06/0.6326, allocations: 3.281 kB / 0.5632 GB, free: 31.25 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.6326, allocations: 2.812 kB / 0.5632 GB, free: 31.25 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.6326, allocations: 0 / 0.5632 GB, free: 31.25 MB / 414.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.004152/0.6368, allocations: 1.562 MB / 0.5647 GB, free: 30.42 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.6368, allocations: 12.98 kB / 0.5647 GB, free: 30.42 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001231/0.637, allocations: 97.31 kB / 0.5648 GB, free: 30.34 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002397/0.6394, allocations: 433.3 kB / 0.5652 GB, free: 30.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007017/0.6401, allocations: 0.5007 MB / 0.5657 GB, free: 29.86 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002392/0.6403, allocations: 195.5 kB / 0.5659 GB, free: 29.68 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.6404, allocations: 52.09 kB / 0.5659 GB, free: 29.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.6419, allocations: 0.6903 MB / 0.5666 GB, free: 29.4 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.6419, allocations: 0 / 0.5666 GB, free: 29.4 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.432e-05/0.642, allocations: 20.69 kB / 0.5666 GB, free: 29.39 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.642, allocations: 17.22 kB / 0.5666 GB, free: 29.38 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.6434, allocations: 0.6737 MB / 0.5673 GB, free: 29.16 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003621/0.6471, allocations: 2.145 MB / 0.5694 GB, free: 27.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007417/0.6545, allocations: 2.27 MB / 0.5716 GB, free: 27.01 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009116/0.6554, allocations: 482.1 kB / 0.5721 GB, free: 26.83 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.59e-05/0.6555, allocations: 12.77 kB / 0.5721 GB, free: 26.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001241/0.6568, allocations: 0.5317 MB / 0.5726 GB, free: 26.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=73): time 3.446e-06/0.6568, allocations: 0 / 0.5726 GB, free: 26.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=73): time 0.007527/0.6643, allocations: 2.447 MB / 0.575 GB, free: 25.69 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.594e-05/0.6644, allocations: 63.73 kB / 0.5751 GB, free: 25.62 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009196/0.6654, allocations: 0.5153 MB / 0.5756 GB, free: 25.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.382e-05/0.6654, allocations: 38.45 kB / 0.5756 GB, free: 25.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003311/0.6658, allocations: 323.4 kB / 0.5759 GB, free: 25.08 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003088/0.6661, allocations: 251.1 kB / 0.5761 GB, free: 24.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002856/0.6664, allocations: 124.1 kB / 0.5763 GB, free: 24.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.6666, allocations: 385.3 kB / 0.5766 GB, free: 24.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001019/0.6676, allocations: 398.9 kB / 0.577 GB, free: 24.33 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.6686, allocations: 0.4954 MB / 0.5775 GB, free: 24.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009765/0.6784, allocations: 2.527 MB / 0.58 GB, free: 23.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/0.6785, allocations: 3.938 kB / 0.58 GB, free: 23.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.008251/0.6867, allocations: 2.208 MB / 0.5821 GB, free: 22.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.335e-05/0.6868, allocations: 7.25 kB / 0.5821 GB, free: 22.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.6868, allocations: 4.297 kB / 0.5821 GB, free: 22.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004913/0.6918, allocations: 0.9974 MB / 0.5831 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008331/0.6926, allocations: 108.9 kB / 0.5832 GB, free: 22.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01116/0.7038, allocations: 4.516 MB / 0.5876 GB, free: 19.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.7049, allocations: 98.61 kB / 0.5877 GB, free: 19.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.897e-05/0.705, allocations: 27.27 kB / 0.5877 GB, free: 19.81 MB / 414.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.0004685/0.7055, allocations: 209 kB / 0.5879 GB, free: 19.63 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.7057, allocations: 78.34 kB / 0.588 GB, free: 19.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004977/0.7106, allocations: 1.692 MB / 0.5897 GB, free: 18.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.7107, allocations: 8.062 kB / 0.5897 GB, free: 18.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.7107, allocations: 3.938 kB / 0.5897 GB, free: 18.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.7107, allocations: 5.641 kB / 0.5897 GB, free: 18.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004827/0.7155, allocations: 2.44 MB / 0.5921 GB, free: 17.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.7156, allocations: 0 / 0.5921 GB, free: 17.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004193/0.716, allocations: 73.97 kB / 0.5921 GB, free: 17.02 MB / 414.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.004138/0.7201, allocations: 1.072 MB / 0.5932 GB, free: 16.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.788e-05/0.7202, allocations: 19.09 kB / 0.5932 GB, free: 16.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005609/0.7208, allocations: 106.1 kB / 0.5933 GB, free: 16.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.7208, allocations: 0 / 0.5933 GB, free: 16.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004662/0.7255, allocations: 2.005 MB / 0.5953 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001969/0.7257, allocations: 152.1 kB / 0.5954 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.7258, allocations: 19.94 kB / 0.5954 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005898/0.7264, allocations: 55.92 kB / 0.5955 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003169/0.7267, allocations: 120.5 kB / 0.5956 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.205e-05/0.7268, allocations: 16 kB / 0.5956 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004113/0.7272, allocations: 362.8 kB / 0.596 GB, free: 14.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.7272, allocations: 0 / 0.596 GB, free: 14.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008846/0.7281, allocations: 235.7 kB / 0.5962 GB, free: 14.2 MB / 414.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.004074/0.7322, allocations: 2.57 MB / 0.5987 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003898/0.7361, allocations: 1.612 MB / 0.6003 GB, free: 9.934 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.7361, allocations: 4 kB / 0.6003 GB, free: 9.93 MB / 414.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:3470:9-3470: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:1543:5-1543:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:798:5-798:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]