Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.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/Complex 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/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine",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.0009364/0.0009363, allocations: 91.77 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008921/0.0008919, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.364/1.364, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05793/0.05793, allocations: 14.17 MB / 284.6 MB, free: 7.133 MB / 238.1 MB 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: Performance of FrontEnd - loaded program: time 0.0004597/0.0004597, allocations: 12 kB / 346.3 MB, free: 19.76 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0904/0.09087, allocations: 51.12 MB / 397.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine): time 0.005974/0.09689, allocations: 6.557 MB / 403.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004858/0.1018, allocations: 3.256 MB / 407.2 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005376/0.1024, allocations: 23.94 kB / 407.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009037/0.1033, allocations: 306.4 kB / 407.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003094/0.1064, allocations: 1.259 MB / 408.8 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009344/0.1073, allocations: 489 kB / 409.3 MB, free: 4.695 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002467/0.1098, allocations: 1.751 MB / 411 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003374/0.1102, allocations: 110.4 kB / 411.1 MB, free: 2.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009214/0.1111, allocations: 477.6 kB / 411.6 MB, free: 2.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008548/0.1119, allocations: 0.5017 MB / 412.1 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.1121, allocations: 24 kB / 412.1 MB, free: 1.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001058/0.1132, allocations: 347.7 kB / 412.4 MB, free: 1.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.1133, allocations: 115.3 kB / 412.6 MB, free: 1.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003624/0.1137, allocations: 205.3 kB / 412.8 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001385/0.1151, allocations: 1.013 MB / 413.8 MB, free: 148 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1151, allocations: 4 kB / 413.8 MB, free: 144 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1151, allocations: 0 / 413.8 MB, free: 144 kB / 302.1 MB Notification: Performance of Transformations before backend: time 3.639e-05/0.1152, allocations: 4 kB / 413.8 MB, free: 140 kB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.005367/0.1205, allocations: 1.512 MB / 415.3 MB, free: 14.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.765e-05/0.1206, allocations: 12.02 kB / 415.3 MB, free: 14.56 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002941/0.1209, allocations: 118.6 kB / 415.4 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006869/0.1216, allocations: 154.7 kB / 415.6 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.1229, allocations: 0.6287 MB / 416.2 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.222e-05/0.1229, allocations: 54 kB / 416.3 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.392e-05/0.123, allocations: 72 kB / 416.3 MB, free: 13.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.1243, allocations: 0.7654 MB / 417.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.1243, allocations: 0 / 417.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.125e-05/0.1244, allocations: 32 kB / 417.1 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.1244, allocations: 24 kB / 417.1 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001172/0.1256, allocations: 0.7026 MB / 417.8 MB, free: 11.93 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00524/0.1308, allocations: 4.682 MB / 422.5 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001723/0.1326, allocations: 0.959 MB / 423.5 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005166/0.1331, allocations: 299.8 kB / 423.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.648e-05/0.1332, allocations: 12.64 kB / 423.8 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.268e-05/0.1332, allocations: 47.2 kB / 423.8 MB, free: 5.379 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 2.885e-06/0.1332, allocations: 0 / 423.8 MB, free: 5.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002983/0.1362, allocations: 1.233 MB / 425.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.1363, allocations: 64 kB / 425.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007403/0.1371, allocations: 495 kB / 425.6 MB, free: 3.551 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.9e-05/0.1371, allocations: 33.7 kB / 425.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003503/0.1375, allocations: 367.8 kB / 426 MB, free: 3.145 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003072/0.1378, allocations: 276.1 kB / 426.3 MB, free: 2.871 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.641e-05/0.1378, allocations: 16 kB / 426.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002358/0.1381, allocations: 374.7 kB / 426.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004354/0.1385, allocations: 213.9 kB / 426.9 MB, free: 2.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004861/0.139, allocations: 324.3 kB / 427.2 MB, free: 1.918 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004442/0.1395, allocations: 274.9 kB / 427.5 MB, free: 1.652 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1395, allocations: 0 / 427.5 MB, free: 1.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001492/0.141, allocations: 0.8564 MB / 428.3 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.141, allocations: 4 kB / 428.3 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.1411, allocations: 4.312 kB / 428.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005595/0.1416, allocations: 184.7 kB / 428.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007395/0.1424, allocations: 191.8 kB / 428.7 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2117/0.3541, allocations: 2.32 MB / 431 MB, free: 34.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007321/0.3549, allocations: 61.16 kB / 431.1 MB, free: 34.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.998e-05/0.3549, allocations: 26.91 kB / 431.1 MB, free: 34.51 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003768/0.3553, allocations: 222.2 kB / 431.3 MB, free: 34.4 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.3554, allocations: 75.02 kB / 431.4 MB, free: 34.39 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00159/0.357, allocations: 0.7956 MB / 432.2 MB, free: 34.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.357, allocations: 11.53 kB / 432.2 MB, free: 34.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3571, allocations: 2.406 kB / 432.2 MB, free: 34.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.3571, allocations: 4.703 kB / 432.2 MB, free: 34.32 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003012/0.3601, allocations: 1.731 MB / 433.9 MB, free: 33.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.3601, allocations: 1.031 kB / 433.9 MB, free: 33.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007624/0.3609, allocations: 159.7 kB / 434.1 MB, free: 33.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005584/0.3615, allocations: 169.1 kB / 434.3 MB, free: 33.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.755e-05/0.3615, allocations: 19.38 kB / 434.3 MB, free: 33.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002585/0.3641, allocations: 2.321 MB / 436.6 MB, free: 31.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3641, allocations: 0 / 436.6 MB, free: 31.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.3654, allocations: 0.8505 MB / 437.4 MB, free: 31.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002886/0.3657, allocations: 202.2 kB / 437.6 MB, free: 31.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.585e-05/0.3658, allocations: 20.38 kB / 437.7 MB, free: 31.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003766/0.3662, allocations: 28.83 kB / 437.7 MB, free: 31.29 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.515e-05/0.3663, allocations: 57.69 kB / 437.7 MB, free: 31.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-05/0.3663, allocations: 17.55 kB / 437.8 MB, free: 31.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004491/0.3668, allocations: 343.4 kB / 438.1 MB, free: 31.11 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3668, allocations: 0 / 438.1 MB, free: 31.11 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009481/0.3677, allocations: 275.4 kB / 438.4 MB, free: 31.07 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001588/0.3693, allocations: 1.472 MB / 439.8 MB, free: 30.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001486/0.3708, allocations: 0.807 MB / 440.6 MB, free: 29.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3709, allocations: 0 / 440.6 MB, free: 29.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007522/0.3716, allocations: 0.5185 MB / 441.2 MB, free: 29.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006118/0.3722, allocations: 84.83 kB / 441.2 MB, free: 29.39 MB / 318.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is set to 'isProtected' (=false) by default. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00638/0.3786, allocations: 3.927 MB / 445.2 MB, free: 27.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005963/0.3793, allocations: 0.9361 MB / 446.1 MB, free: 26.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005047/0.3798, allocations: 95.95 kB / 446.2 MB, free: 26.53 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003303/0.3801, allocations: 266.4 kB / 446.5 MB, free: 26.34 MB / 318.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3801, allocations: 0 / 446.5 MB, free: 26.34 MB / 318.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 577.3502691896258, 0.0). [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 641.5002990995843, 0.0).