Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.00107/0.00107, allocations: 105.1 kB / 17.05 MB, free: 6.027 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.001138/0.001138, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1741/0.1741, allocations: 37.98 MB / 309.2 MB, free: 5.969 MB / 254.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.001384/0.001384, allocations: 63.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09361/0.095, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004828/0.09987, allocations: 3.473 MB / 490.1 MB, free: 5.352 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.1019, allocations: 1.54 MB / 491.6 MB, free: 3.801 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.1021, allocations: 8 kB / 491.6 MB, free: 3.793 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000791/0.1029, allocations: 266.9 kB / 491.9 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005639/0.1034, allocations: 267 kB / 492.1 MB, free: 3.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003119/0.1038, allocations: 135.6 kB / 492.3 MB, free: 3.137 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003958/0.1042, allocations: 339 kB / 492.6 MB, free: 2.805 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002617/0.1044, allocations: 134.4 kB / 492.7 MB, free: 2.676 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.1047, allocations: 151.4 kB / 492.9 MB, free: 2.527 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.1049, allocations: 155.5 kB / 493 MB, free: 2.375 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.586e-05/0.105, allocations: 15.98 kB / 493 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004788/0.1055, allocations: 339.1 kB / 493.4 MB, free: 2.027 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.1056, allocations: 95.75 kB / 493.5 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.1057, allocations: 107.5 kB / 493.6 MB, free: 1.828 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004558/0.1062, allocations: 363.2 kB / 493.9 MB, free: 1.473 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1062, allocations: 0 / 493.9 MB, free: 1.473 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1062, allocations: 0 / 493.9 MB, free: 1.473 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.1062, allocations: 0 / 493.9 MB, free: 1.473 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006478/0.1068, allocations: 0.5219 MB / 494.5 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1069, allocations: 11.89 kB / 494.5 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.437e-05/0.1069, allocations: 54.72 kB / 494.5 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008513/0.1078, allocations: 88.64 kB / 494.6 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003498/0.1082, allocations: 267.8 kB / 494.9 MB, free: 452 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.1082, allocations: 20.38 kB / 494.9 MB, free: 432 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.996e-05/0.1082, allocations: 20.36 kB / 494.9 MB, free: 412 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004487/0.1087, allocations: 325.4 kB / 495.2 MB, free: 64 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.1087, allocations: 4 kB / 495.2 MB, free: 60 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.273e-05/0.1087, allocations: 7.984 kB / 495.2 MB, free: 52 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.374e-05/0.1088, allocations: 20 kB / 495.3 MB, free: 32 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00041/0.1092, allocations: 287.8 kB / 495.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.1109, allocations: 1.264 MB / 496.8 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004137/0.1113, allocations: 233 kB / 497 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.1114, allocations: 97.67 kB / 497.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.1115, allocations: 8 kB / 497.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.1115, allocations: 38.5 kB / 497.2 MB, free: 14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.1115, allocations: 0 / 497.2 MB, free: 14 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007741/0.1123, allocations: 436.4 kB / 497.6 MB, free: 13.56 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.1124, allocations: 89.09 kB / 497.7 MB, free: 13.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.1125, allocations: 194.7 kB / 497.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.1126, allocations: 29.7 kB / 497.9 MB, free: 13.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.982e-05/0.1127, allocations: 160 kB / 498.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.516e-05/0.1127, allocations: 55.2 kB / 498.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.354e-05/0.1128, allocations: 49.7 kB / 498.2 MB, free: 12.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.1129, allocations: 330.8 kB / 498.5 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.1131, allocations: 83.95 kB / 498.6 MB, free: 12.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001665/0.1132, allocations: 161.6 kB / 498.7 MB, free: 12.35 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003126/0.1135, allocations: 276.1 kB / 499 MB, free: 12.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1136, allocations: 0 / 499 MB, free: 12.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004011/0.114, allocations: 285.5 kB / 499.3 MB, free: 11.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.114, allocations: 8.031 kB / 499.3 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.114, allocations: 7.938 kB / 499.3 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.114, allocations: 7.938 kB / 499.3 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002459/0.1143, allocations: 63.88 kB / 499.4 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.1143, allocations: 3.984 kB / 499.4 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001388/0.1144, allocations: 19.98 kB / 499.4 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.1145, allocations: 11.94 kB / 499.4 MB, free: 11.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.1146, allocations: 157.8 kB / 499.5 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.178e-05/0.1147, allocations: 23.72 kB / 499.6 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003543/0.115, allocations: 227.3 kB / 499.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.115, allocations: 0 / 499.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.115, allocations: 4 kB / 499.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1151, allocations: 0 / 499.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/0.1163, allocations: 0.9557 MB / 0.489 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.1163, allocations: 4 kB / 0.489 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001419/0.1165, allocations: 39.92 kB / 0.4891 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.1165, allocations: 4 kB / 0.4891 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.1165, allocations: 7.938 kB / 0.4891 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.882e-06/0.1165, allocations: 8 kB / 0.4891 GB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.1165, allocations: 7.938 kB / 0.4891 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003915/0.1169, allocations: 417.3 kB / 0.4895 GB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.522e-05/0.117, allocations: 96.92 kB / 0.4896 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.245e-05/0.117, allocations: 11.92 kB / 0.4896 GB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.1172, allocations: 16 kB / 0.4896 GB, free: 9.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.555e-05/0.1173, allocations: 27.84 kB / 0.4896 GB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.1173, allocations: 12 kB / 0.4896 GB, free: 9.441 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001227/0.1174, allocations: 147 kB / 0.4898 GB, free: 9.297 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1174, allocations: 0 / 0.4898 GB, free: 9.297 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003555/0.1178, allocations: 56 kB / 0.4898 GB, free: 9.242 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007318/0.1185, allocations: 0.9559 MB / 0.4908 GB, free: 8.211 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000331/0.1189, allocations: 223.6 kB / 0.491 GB, free: 7.992 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1189, allocations: 0 / 0.491 GB, free: 7.992 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.119, allocations: 104.5 kB / 0.4911 GB, free: 7.891 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.1195, allocations: 48.38 kB / 0.4911 GB, free: 7.844 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002764/0.1222, allocations: 2.683 MB / 0.4937 GB, free: 4.926 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.1226, allocations: 0.7593 MB / 0.4945 GB, free: 4.137 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000133/0.1227, allocations: 49.5 kB / 0.4945 GB, free: 4.086 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.1228, allocations: 71.34 kB / 0.4946 GB, free: 4.016 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1228, allocations: 0 / 0.4946 GB, free: 4.016 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01966/0.1425, allocations: 4.168 MB / 0.4987 GB, free: 15.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.583/7.725, allocations: 15.91 kB / 0.4987 GB, free: 15.78 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1)