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-master/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-master/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-master/package.mo): time 0.08526/0.08526, allocations: 12.6 MB / 28.1 MB, free: 0.832 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.001091/0.001091, allocations: 107.5 kB / 31.69 MB, free: 3.965 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.434/1.434, allocations: 205.1 MB / 240.3 MB, free: 12.45 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.001738/0.001738, allocations: 184.5 kB / 290.5 MB, free: 13.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4658/0.4658, allocations: 78.51 MB / 419.2 MB, free: 11.35 MB / 302.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.003157/0.003157, allocations: 139.8 kB / 499.9 MB, free: 10.73 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.3535, allocations: 68.1 MB / 0.5547 GB, free: 32.51 MB / 398.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.006431/0.36, allocations: 4.409 MB / 0.559 GB, free: 29.3 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003042/0.363, allocations: 1.214 MB / 0.5602 GB, free: 28.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009638/0.364, allocations: 5.5 kB / 0.5602 GB, free: 28.42 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007187/0.3648, allocations: 144.9 kB / 0.5603 GB, free: 28.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001284/0.3661, allocations: 234.9 kB / 0.5605 GB, free: 28.17 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.3676, allocations: 0.5723 MB / 0.5611 GB, free: 27.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009788/0.3686, allocations: 0.7993 MB / 0.5619 GB, free: 27.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000346/0.3689, allocations: 195.5 kB / 0.5621 GB, free: 27.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003221/0.3693, allocations: 335.9 kB / 0.5624 GB, free: 26.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005154/0.3698, allocations: 419 kB / 0.5628 GB, free: 26.69 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.3699, allocations: 63 kB / 0.5628 GB, free: 26.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004102/0.3704, allocations: 129.4 kB / 0.563 GB, free: 26.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.3705, allocations: 168.3 kB / 0.5631 GB, free: 26.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003625/0.3709, allocations: 387.8 kB / 0.5635 GB, free: 26.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009899/0.3719, allocations: 0.9103 MB / 0.5644 GB, free: 25.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3719, allocations: 0 / 0.5644 GB, free: 25.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3719, allocations: 0 / 0.5644 GB, free: 25.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.3719, allocations: 0 / 0.5644 GB, free: 25.55 MB / 398.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.004449/0.3764, allocations: 1.567 MB / 0.5659 GB, free: 24.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.3764, allocations: 12.92 kB / 0.5659 GB, free: 24.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001209/0.3766, allocations: 96.86 kB / 0.566 GB, free: 24.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002691/0.3793, allocations: 429.3 kB / 0.5664 GB, free: 24.24 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006983/0.38, allocations: 0.504 MB / 0.5669 GB, free: 23.78 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002057/0.3802, allocations: 200.8 kB / 0.5671 GB, free: 23.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.3803, allocations: 52.25 kB / 0.5672 GB, free: 23.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.3817, allocations: 0.6899 MB / 0.5678 GB, free: 23.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3817, allocations: 1.188 kB / 0.5678 GB, free: 23.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.818e-05/0.3818, allocations: 24.83 kB / 0.5679 GB, free: 23.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.3818, allocations: 24.89 kB / 0.5679 GB, free: 23.14 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.3832, allocations: 0.668 MB / 0.5685 GB, free: 22.83 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003478/0.3867, allocations: 2.144 MB / 0.5706 GB, free: 21.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007665/0.3943, allocations: 2.264 MB / 0.5728 GB, free: 19.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009678/0.3953, allocations: 482.1 kB / 0.5733 GB, free: 19.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.768e-05/0.3954, allocations: 8.281 kB / 0.5733 GB, free: 19.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00113/0.3966, allocations: 0.5289 MB / 0.5738 GB, free: 19.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 3.026e-06/0.3966, allocations: 0 / 0.5738 GB, free: 19.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.006609/0.4032, allocations: 2.453 MB / 0.5762 GB, free: 17.03 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.4033, allocations: 60.06 kB / 0.5763 GB, free: 16.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005859/0.4039, allocations: 0.5109 MB / 0.5768 GB, free: 16.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.103e-05/0.4039, allocations: 41.7 kB / 0.5768 GB, free: 16.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/0.4041, allocations: 324.6 kB / 0.5771 GB, free: 16.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.4043, allocations: 252.3 kB / 0.5774 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.4045, allocations: 118.7 kB / 0.5775 GB, free: 15.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.289e-05/0.4046, allocations: 386.7 kB / 0.5778 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007553/0.4054, allocations: 409.8 kB / 0.5782 GB, free: 14.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007843/0.4062, allocations: 498.5 kB / 0.5787 GB, free: 14.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008227/0.4144, allocations: 2.522 MB / 0.5812 GB, free: 11.85 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.4145, allocations: 7.938 kB / 0.5812 GB, free: 11.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006649/0.4211, allocations: 2.216 MB / 0.5833 GB, free: 9.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.4212, allocations: 7.938 kB / 0.5834 GB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.4212, allocations: 4 kB / 0.5834 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003699/0.4249, allocations: 0.9932 MB / 0.5843 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005478/0.4255, allocations: 111.8 kB / 0.5844 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008643/0.4342, allocations: 4.512 MB / 0.5888 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009876/0.4352, allocations: 99.31 kB / 0.5889 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001372/0.4353, allocations: 28 kB / 0.589 GB, free: 3.707 MB / 398.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.0004728/0.4358, allocations: 198.8 kB / 0.5892 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002398/0.4361, allocations: 75.16 kB / 0.5892 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00443/0.4405, allocations: 1.702 MB / 0.5909 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.4405, allocations: 12 kB / 0.5909 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.4405, allocations: 3.938 kB / 0.5909 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.4406, allocations: 3.984 kB / 0.5909 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004492/0.4451, allocations: 2.429 MB / 0.5933 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.4451, allocations: 0 / 0.5933 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00039/0.4455, allocations: 67.89 kB / 0.5933 GB, free: 15.11 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.004207/0.4497, allocations: 1.077 MB / 0.5944 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.96e-05/0.4498, allocations: 15.98 kB / 0.5944 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005734/0.4504, allocations: 96.75 kB / 0.5945 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.4504, allocations: 0 / 0.5945 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004528/0.4549, allocations: 2.015 MB / 0.5965 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.4553, allocations: 152.1 kB / 0.5966 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001825/0.4555, allocations: 19.94 kB / 0.5966 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007363/0.4562, allocations: 55.94 kB / 0.5967 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003143/0.4566, allocations: 124.6 kB / 0.5968 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.732e-05/0.4566, allocations: 23.98 kB / 0.5968 GB, free: 11.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004605/0.4571, allocations: 350.8 kB / 0.5972 GB, free: 11.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4571, allocations: 0 / 0.5972 GB, free: 11.14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008909/0.458, allocations: 239.7 kB / 0.5974 GB, free: 10.9 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.005039/0.463, allocations: 2.581 MB / 0.5999 GB, free: 8.293 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004455/0.4675, allocations: 1.603 MB / 0.6015 GB, free: 6.633 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.4676, allocations: 4 kB / 0.6015 GB, free: 6.629 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:3521:9-3521: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:1548:5-1548:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]