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: 244 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 107.5 kB / 31.7 MB, free: 3.496 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.391/1.391, allocations: 205.1 MB / 240.3 MB, free: 12.44 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.001593/0.001593, allocations: 196.4 kB / 290.6 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.4266/0.4266, allocations: 78.51 MB / 419.2 MB, free: 11.34 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.002994/0.002994, allocations: 144.6 kB / 499.9 MB, free: 10.73 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3066, allocations: 68.1 MB / 0.5547 GB, free: 32.53 MB / 398.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.00565/0.3123, allocations: 4.407 MB / 0.559 GB, free: 29.33 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002715/0.315, allocations: 1.202 MB / 0.5602 GB, free: 28.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007053/0.3158, allocations: 5.062 kB / 0.5602 GB, free: 28.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005754/0.3164, allocations: 145.9 kB / 0.5603 GB, free: 28.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009826/0.3174, allocations: 245.4 kB / 0.5605 GB, free: 28.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.3189, allocations: 0.5703 MB / 0.5611 GB, free: 27.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.32, allocations: 0.7928 MB / 0.5619 GB, free: 27.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003584/0.3204, allocations: 203.8 kB / 0.5621 GB, free: 27.2 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004508/0.3208, allocations: 335.1 kB / 0.5624 GB, free: 27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006252/0.3215, allocations: 422.9 kB / 0.5628 GB, free: 26.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002423/0.3217, allocations: 62.94 kB / 0.5628 GB, free: 26.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005219/0.3222, allocations: 126.3 kB / 0.563 GB, free: 26.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001923/0.3224, allocations: 172.4 kB / 0.5631 GB, free: 26.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004187/0.3229, allocations: 390.5 kB / 0.5635 GB, free: 26.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009052/0.3238, allocations: 0.8986 MB / 0.5644 GB, free: 25.58 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3238, allocations: 1.156 kB / 0.5644 GB, free: 25.58 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3238, allocations: 0 / 0.5644 GB, free: 25.58 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.3238, allocations: 0 / 0.5644 GB, free: 25.58 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.004117/0.3279, allocations: 1.57 MB / 0.5659 GB, free: 24.53 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.328, allocations: 13.36 kB / 0.5659 GB, free: 24.52 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001027/0.3281, allocations: 100.6 kB / 0.566 GB, free: 24.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002465/0.3306, allocations: 429.3 kB / 0.5664 GB, free: 24.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005724/0.3312, allocations: 0.5002 MB / 0.5669 GB, free: 23.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001975/0.3314, allocations: 196.5 kB / 0.5671 GB, free: 23.62 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.3315, allocations: 55.84 kB / 0.5672 GB, free: 23.6 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.3328, allocations: 0.6915 MB / 0.5678 GB, free: 23.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.3329, allocations: 0 / 0.5678 GB, free: 23.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-05/0.3329, allocations: 20.69 kB / 0.5679 GB, free: 23.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.333, allocations: 20.47 kB / 0.5679 GB, free: 23.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.3344, allocations: 0.6761 MB / 0.5685 GB, free: 22.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003708/0.3381, allocations: 2.143 MB / 0.5706 GB, free: 21.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007711/0.3458, allocations: 2.271 MB / 0.5728 GB, free: 19.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.3469, allocations: 485 kB / 0.5733 GB, free: 19.58 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.277e-05/0.347, allocations: 8.25 kB / 0.5733 GB, free: 19.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.3482, allocations: 0.5244 MB / 0.5738 GB, free: 19.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 2.996e-06/0.3482, allocations: 1.25 kB / 0.5738 GB, free: 19.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.006696/0.3549, allocations: 2.459 MB / 0.5762 GB, free: 16.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.355, allocations: 56.06 kB / 0.5763 GB, free: 16.85 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005655/0.3556, allocations: 0.507 MB / 0.5768 GB, free: 16.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.617e-05/0.3557, allocations: 45.69 kB / 0.5768 GB, free: 16.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.3559, allocations: 324.6 kB / 0.5771 GB, free: 15.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00021/0.3561, allocations: 248.3 kB / 0.5774 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000216/0.3563, allocations: 134.6 kB / 0.5775 GB, free: 15.58 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.699e-05/0.3564, allocations: 374.8 kB / 0.5779 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007696/0.3572, allocations: 401.8 kB / 0.5782 GB, free: 14.81 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008029/0.358, allocations: 0.4985 MB / 0.5787 GB, free: 14.28 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008209/0.3662, allocations: 2.51 MB / 0.5812 GB, free: 11.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.156e-06/0.3663, allocations: 11.94 kB / 0.5812 GB, free: 11.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006665/0.3729, allocations: 2.208 MB / 0.5833 GB, free: 9.504 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.373, allocations: 4 kB / 0.5833 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.373, allocations: 8 kB / 0.5834 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003772/0.3768, allocations: 1.009 MB / 0.5843 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005372/0.3774, allocations: 99.89 kB / 0.5844 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008568/0.3859, allocations: 4.514 MB / 0.5888 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009962/0.387, allocations: 99.31 kB / 0.5889 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.3871, allocations: 20 kB / 0.589 GB, free: 3.609 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.0004551/0.3876, allocations: 202.8 kB / 0.5892 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002117/0.3878, allocations: 75.14 kB / 0.5892 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004328/0.3921, allocations: 1.698 MB / 0.5909 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.3922, allocations: 8 kB / 0.5909 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.3922, allocations: 3.938 kB / 0.5909 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.3922, allocations: 3.984 kB / 0.5909 GB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004448/0.3967, allocations: 2.445 MB / 0.5933 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.3967, allocations: 0 / 0.5933 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003912/0.3971, allocations: 71.84 kB / 0.5934 GB, free: 14.99 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.004258/0.4014, allocations: 1.069 MB / 0.5944 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.502e-05/0.4015, allocations: 15.98 kB / 0.5944 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005822/0.4021, allocations: 96.75 kB / 0.5945 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.706e-06/0.4021, allocations: 0 / 0.5945 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004474/0.4066, allocations: 2.011 MB / 0.5965 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002669/0.4069, allocations: 152.1 kB / 0.5966 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.407, allocations: 15.94 kB / 0.5966 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006884/0.4077, allocations: 55.94 kB / 0.5967 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002919/0.408, allocations: 120.5 kB / 0.5968 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.404e-05/0.4081, allocations: 28 kB / 0.5968 GB, free: 11.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004084/0.4085, allocations: 346.8 kB / 0.5972 GB, free: 11.04 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4085, allocations: 4 kB / 0.5972 GB, free: 11.04 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007898/0.4093, allocations: 235.7 kB / 0.5974 GB, free: 10.8 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.004755/0.4141, allocations: 2.581 MB / 0.5999 GB, free: 8.199 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00424/0.4183, allocations: 1.615 MB / 0.6015 GB, free: 6.527 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4184, allocations: 0 / 0.6015 GB, free: 6.527 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]