Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json 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 4.0.0+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 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 239.2 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 184.5 kB / 289.5 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4531/0.4531, allocations: 78.53 MB / 418.2 MB, free: 3.184 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 83.89 kB / 497.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1214, allocations: 68.18 MB / 0.5525 GB, free: 2.113 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2349/0.3563, allocations: 4.356 MB / 0.5567 GB, free: 37.33 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002703/0.3591, allocations: 1.235 MB / 0.5579 GB, free: 36.95 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003675/0.3595, allocations: 8 kB / 0.5579 GB, free: 36.95 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004114/0.3599, allocations: 148.7 kB / 0.5581 GB, free: 36.94 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005326/0.3605, allocations: 232.8 kB / 0.5583 GB, free: 36.9 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.3616, allocations: 0.5674 MB / 0.5589 GB, free: 36.79 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006791/0.3623, allocations: 0.7995 MB / 0.5596 GB, free: 36.75 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000299/0.3626, allocations: 198.6 kB / 0.5598 GB, free: 36.7 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002679/0.3629, allocations: 329.9 kB / 0.5601 GB, free: 36.63 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004075/0.3633, allocations: 420.2 kB / 0.5605 GB, free: 36.52 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.245e-05/0.3634, allocations: 65.09 kB / 0.5606 GB, free: 36.52 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003033/0.3637, allocations: 125.1 kB / 0.5607 GB, free: 36.51 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.3638, allocations: 169.7 kB / 0.5609 GB, free: 36.47 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000263/0.3641, allocations: 388.9 kB / 0.5613 GB, free: 36.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006953/0.3648, allocations: 0.9096 MB / 0.5622 GB, free: 36.13 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.3648, allocations: 3.688 kB / 0.5622 GB, free: 36.13 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3648, allocations: 0.6562 kB / 0.5622 GB, free: 36.13 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.3649, allocations: 0 / 0.5622 GB, free: 36.13 MB / 430.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.003993/0.3689, allocations: 1.563 MB / 0.5637 GB, free: 35.47 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.3689, allocations: 9.281 kB / 0.5637 GB, free: 35.47 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.369, allocations: 97.14 kB / 0.5638 GB, free: 35.43 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002441/0.3715, allocations: 431.6 kB / 0.5642 GB, free: 35.38 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005676/0.3721, allocations: 0.493 MB / 0.5647 GB, free: 35.08 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.3723, allocations: 200.7 kB / 0.5649 GB, free: 34.93 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.982e-05/0.3724, allocations: 52.36 kB / 0.5649 GB, free: 34.93 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.3736, allocations: 0.6915 MB / 0.5656 GB, free: 34.88 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.3736, allocations: 0 / 0.5656 GB, free: 34.88 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.567e-05/0.3737, allocations: 21.12 kB / 0.5656 GB, free: 34.88 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.3737, allocations: 18.78 kB / 0.5656 GB, free: 34.87 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001241/0.375, allocations: 0.6774 MB / 0.5663 GB, free: 34.87 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003132/0.3781, allocations: 2.149 MB / 0.5684 GB, free: 34.36 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007355/0.3855, allocations: 2.272 MB / 0.5706 GB, free: 33.75 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009055/0.3864, allocations: 482.8 kB / 0.5711 GB, free: 33.74 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.897e-05/0.3865, allocations: 8.531 kB / 0.5711 GB, free: 33.74 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.3875, allocations: 0.526 MB / 0.5716 GB, free: 33.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 2.766e-06/0.3875, allocations: 2.625 kB / 0.5716 GB, free: 33.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006657/0.3942, allocations: 2.449 MB / 0.574 GB, free: 33.25 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.3943, allocations: 67.44 kB / 0.5741 GB, free: 33.19 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005268/0.3948, allocations: 0.5094 MB / 0.5745 GB, free: 33.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.557e-05/0.3949, allocations: 40.86 kB / 0.5746 GB, free: 33.04 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.3951, allocations: 324.5 kB / 0.5749 GB, free: 32.88 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001823/0.3952, allocations: 250.7 kB / 0.5751 GB, free: 32.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/0.3955, allocations: 124.3 kB / 0.5753 GB, free: 32.7 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.54e-05/0.3956, allocations: 381.2 kB / 0.5756 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007661/0.3963, allocations: 405 kB / 0.576 GB, free: 32.38 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008143/0.3971, allocations: 0.4946 MB / 0.5765 GB, free: 32.28 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0084/0.4056, allocations: 2.527 MB / 0.579 GB, free: 31.51 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.4056, allocations: 3.938 kB / 0.579 GB, free: 31.51 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007131/0.4127, allocations: 2.205 MB / 0.5811 GB, free: 30.93 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.852e-05/0.4128, allocations: 10.56 kB / 0.5811 GB, free: 30.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.4128, allocations: 2.078 kB / 0.5811 GB, free: 30.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003952/0.4168, allocations: 0.9998 MB / 0.5821 GB, free: 30.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005762/0.4174, allocations: 111 kB / 0.5822 GB, free: 30.72 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009086/0.4265, allocations: 4.5 MB / 0.5866 GB, free: 28.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008651/0.4274, allocations: 102.5 kB / 0.5867 GB, free: 28.08 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.715e-05/0.4274, allocations: 23.61 kB / 0.5867 GB, free: 28.07 MB / 430.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.000357/0.4278, allocations: 207.7 kB / 0.5869 GB, free: 27.91 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.4279, allocations: 71.12 kB / 0.587 GB, free: 27.87 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004457/0.4324, allocations: 1.691 MB / 0.5886 GB, free: 27.32 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.4324, allocations: 8.781 kB / 0.5886 GB, free: 27.32 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.4324, allocations: 5.094 kB / 0.5887 GB, free: 27.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.4324, allocations: 9.281 kB / 0.5887 GB, free: 27.32 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004519/0.437, allocations: 2.439 MB / 0.591 GB, free: 26.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.437, allocations: 1 kB / 0.591 GB, free: 26.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003818/0.4374, allocations: 74.42 kB / 0.5911 GB, free: 26.11 MB / 430.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.004318/0.4417, allocations: 1.068 MB / 0.5922 GB, free: 25.89 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-05/0.4418, allocations: 12.53 kB / 0.5922 GB, free: 25.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005716/0.4424, allocations: 101.8 kB / 0.5923 GB, free: 25.86 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4424, allocations: 0 / 0.5923 GB, free: 25.86 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004357/0.4467, allocations: 2.008 MB / 0.5942 GB, free: 25.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002342/0.447, allocations: 148.6 kB / 0.5944 GB, free: 24.88 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.4471, allocations: 21.89 kB / 0.5944 GB, free: 24.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006055/0.4477, allocations: 53.33 kB / 0.5944 GB, free: 24.85 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003158/0.448, allocations: 125.1 kB / 0.5946 GB, free: 24.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.197e-05/0.4481, allocations: 19.36 kB / 0.5946 GB, free: 24.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004048/0.4485, allocations: 354.4 kB / 0.5949 GB, free: 24.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4485, allocations: 0 / 0.5949 GB, free: 24.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00074/0.4493, allocations: 237.9 kB / 0.5951 GB, free: 24.62 MB / 430.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.004451/0.4537, allocations: 2.577 MB / 0.5977 GB, free: 23.22 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00415/0.4579, allocations: 1.615 MB / 0.5992 GB, free: 22.49 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.4579, allocations: 3.344 kB / 0.5992 GB, free: 22.49 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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]