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.0887/0.0887, allocations: 12.21 MB / 27.47 MB, free: 0.9297 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.000775/0.000775, allocations: 95.52 kB / 31 MB, free: 4.535 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.305/1.305, allocations: 205.4 MB / 239.8 MB, free: 13.53 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.001043/0.001043, allocations: 176.5 kB / 291 MB, free: 11.55 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4414/0.4414, allocations: 78.53 MB / 420.5 MB, free: 11.53 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.0008907/0.0008907, allocations: 31.98 kB / 0.4902 GB, free: 9.98 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2802, allocations: 69.24 MB / 0.5578 GB, free: 20.88 MB / 382.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003024/0.2833, allocations: 4.271 MB / 0.562 GB, free: 16.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.2848, allocations: 1.225 MB / 0.5632 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001724/0.285, allocations: 8 kB / 0.5632 GB, free: 15.35 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.2853, allocations: 111.3 kB / 0.5633 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003513/0.2857, allocations: 190.5 kB / 0.5635 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008619/0.2865, allocations: 0.5362 MB / 0.564 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004543/0.287, allocations: 0.7744 MB / 0.5648 GB, free: 13.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.2872, allocations: 165.1 kB / 0.5649 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001782/0.2874, allocations: 290.6 kB / 0.5652 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003163/0.2877, allocations: 382 kB / 0.5656 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.587e-05/0.2878, allocations: 36 kB / 0.5656 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002096/0.288, allocations: 99.91 kB / 0.5657 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.01e-05/0.2881, allocations: 139.3 kB / 0.5658 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002091/0.2883, allocations: 379.4 kB / 0.5662 GB, free: 12.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005191/0.2888, allocations: 0.8598 MB / 0.567 GB, free: 11.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2888, allocations: 0 / 0.567 GB, free: 11.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2889, allocations: 0 / 0.567 GB, free: 11.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.2889, allocations: 0 / 0.567 GB, free: 11.4 MB / 382.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.00349/0.2924, allocations: 1.447 MB / 0.5684 GB, free: 9.902 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.2924, allocations: 11.98 kB / 0.5685 GB, free: 9.891 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.2925, allocations: 98.7 kB / 0.5685 GB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002306/0.2948, allocations: 434.9 kB / 0.569 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004318/0.2953, allocations: 0.4981 MB / 0.5694 GB, free: 8.816 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001701/0.2955, allocations: 205.8 kB / 0.5696 GB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-05/0.2955, allocations: 56 kB / 0.5697 GB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.2967, allocations: 0.7287 MB / 0.5704 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.2968, allocations: 0 / 0.5704 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.037e-05/0.2968, allocations: 20 kB / 0.5704 GB, free: 7.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.2968, allocations: 19.94 kB / 0.5704 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.298, allocations: 0.7196 MB / 0.5711 GB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002806/0.3008, allocations: 2.172 MB / 0.5733 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007554/0.3084, allocations: 2.753 MB / 0.576 GB, free: 1.918 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008301/0.3093, allocations: 0.5108 MB / 0.5765 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.132e-05/0.3093, allocations: 16.58 kB / 0.5765 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009787/0.3103, allocations: 0.5704 MB / 0.577 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 3.025e-06/0.3103, allocations: 7.922 kB / 0.577 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of matching and sorting (n=73): time 0.007302/0.3176, allocations: 2.846 MB / 0.5798 GB, free: 13.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.3177, allocations: 60.06 kB / 0.5799 GB, free: 13.81 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000511/0.3182, allocations: 0.507 MB / 0.5804 GB, free: 13.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.331e-05/0.3183, allocations: 45.7 kB / 0.5804 GB, free: 13.24 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.3185, allocations: 320.6 kB / 0.5807 GB, free: 12.92 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002132/0.3187, allocations: 248.3 kB / 0.581 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.773e-05/0.3188, allocations: 61.69 kB / 0.581 GB, free: 12.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.319, allocations: 382.8 kB / 0.5814 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009271/0.3199, allocations: 453.7 kB / 0.5818 GB, free: 11.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009962/0.3209, allocations: 0.5376 MB / 0.5823 GB, free: 11.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009237/0.3302, allocations: 2.791 MB / 0.5851 GB, free: 8.402 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.3302, allocations: 3.938 kB / 0.5851 GB, free: 8.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007659/0.3379, allocations: 2.634 MB / 0.5876 GB, free: 5.742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.3379, allocations: 8 kB / 0.5876 GB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.3379, allocations: 0 / 0.5876 GB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004247/0.3422, allocations: 1.182 MB / 0.5888 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004825/0.3427, allocations: 107.8 kB / 0.5889 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009211/0.3519, allocations: 4.478 MB / 0.5933 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007312/0.3527, allocations: 119.3 kB / 0.5934 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.479e-05/0.3527, allocations: 27.94 kB / 0.5934 GB, free: 15.68 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.0003434/0.3531, allocations: 216.7 kB / 0.5936 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.3532, allocations: 75.06 kB / 0.5937 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005098/0.3583, allocations: 1.959 MB / 0.5956 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.3584, allocations: 8 kB / 0.5956 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.3584, allocations: 0 / 0.5956 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.3584, allocations: 7.984 kB / 0.5956 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004746/0.3631, allocations: 2.613 MB / 0.5982 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3632, allocations: 0 / 0.5982 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003671/0.3635, allocations: 71.89 kB / 0.5982 GB, free: 10.62 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.004471/0.368, allocations: 1.257 MB / 0.5995 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.815e-05/0.3681, allocations: 15.94 kB / 0.5995 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006047/0.3687, allocations: 128.7 kB / 0.5996 GB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3687, allocations: 0 / 0.5996 GB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004617/0.3733, allocations: 2.222 MB / 0.6018 GB, free: 6.969 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001668/0.3735, allocations: 152.2 kB / 0.6019 GB, free: 6.801 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.3736, allocations: 15.98 kB / 0.6019 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006381/0.3743, allocations: 75.94 kB / 0.602 GB, free: 6.711 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002754/0.3745, allocations: 120.5 kB / 0.6021 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.054e-05/0.3746, allocations: 23.98 kB / 0.6021 GB, free: 6.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003641/0.375, allocations: 358.8 kB / 0.6025 GB, free: 6.223 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.375, allocations: 0 / 0.6025 GB, free: 6.223 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006835/0.3757, allocations: 235.7 kB / 0.6027 GB, free: 5.992 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.004947/0.3806, allocations: 2.778 MB / 0.6054 GB, free: 3.176 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004114/0.3847, allocations: 1.748 MB / 0.6071 GB, free: 1.375 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3848, allocations: 4.438 kB / 0.6071 GB, free: 1.371 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:3399:9-3399: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:1497:5-1497:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:764:5-764:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]